Author |
Message |
knappster
|
Posted: Mon Aug 25, 2008 8:14 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I'll check it out when I can Human. I doubt it will be before next weekend, though . Thanks for the info!
|
|
Top |
|
|
knappster
|
Posted: Wed Dec 10, 2008 8:31 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Wow, it's been almost 4 months already and I still haven't gotten back to this
I am hoping to try this out again this weekend. Suddenly my playback started freezing in the middle of live tv episodes in R5F27, which it didn't used to do. It seemed to quit doing that once I changed a few things (disabled glx in xorg, added acpi_use_timer_override to lilo and ran lilo -v), but now it appears to be doing the freezing in between programs much more frequently than before. And this issue is supposed to be resolved with mythtv .21.
So it's time to trade up one problem in R5F27 for a different one in R5.5 and see if I can get this one resolved. Look for me in IRC this weekend
|
|
Top |
|
|
knappster
|
Posted: Sat Dec 13, 2008 9:05 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Human wrote: In R5.5, I have a script that will configure the system for digital audio based on a combination of generic and hardware-specific settings. Code: twk_audio.pl --implement digital Please try it in R5.5 and let me know if it works or fails for you. In either case, please also post the results of these commands so I know how to detect your audio device in the scripts: Code: lspci -vv lspci -mn It is still happening. I have only seen in on analog sd channels so far. I have tried with extra audio buffering on and off. If I have it off I see a lot more prebuffering pauses in the log. lspci -vv (audio section only) Code: 00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2) Subsystem: ASUSTeK Computer Inc. Unknown device 81cb Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0 (500ns min, 1250ns max) Interrupt: pin B routed to IRQ 10 Region 0: Memory at fe028000 (32-bit, non-prefetchable) [size=16K] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable- Address: 0000000000000000 Data: 0000 Masking: 00000000 Pending: 00000000 Capabilities: [6c] HyperTransport: MSI Mapping
lspci -mn (corresponding to the audio address from above) Code: 00:10.1 "0403" "10de" "026c" -ra2 "1043" "81cb"
|
|
Top |
|
|
knappster
|
Posted: Sun Dec 14, 2008 8:11 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Just to provide a little bit more information, I have noticed that a lot of times when this happens, I will tune to a channel or click live tv on the menu, and I will get very quiet, slightly distorted sound. Then if I exit and click live tv again, it will be very quiet and muted again. Then if I do that again, it will be super loud and very distorted. Then if I exit again, it is usually fine for a while until this all happens again. Sometimes right before the video comes on there will be a popping sound coming out of the speakers.
I didn't see anything interesting in the frontend log. These are the offending records.
Quiet
Code: 2008-12-14 07:47:55.635 TV: Attempting to change from None to WatchingLiveTV 2008-12-14 07:47:55.636 Using protocol version 40 2008-12-14 07:47:58.365 AFD: Opened codec 0x92a6c00, id(MPEG2VIDEO) type(Video) 2008-12-14 07:47:58.365 AFD: codec MP2 has 2 channels 2008-12-14 07:47:58.365 AFD: Opened codec 0x8c51f10, id(MP2) type(Audio) 2008-12-14 07:47:58.423 Opening audio device 'spdif'. ch 2(2) sr 48000 2008-12-14 07:47:58.423 Opening ALSA audio device 'spdif'. 2008-12-14 07:47:58.518 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'2008-12-14 07:47:58.570 OSD Theme Dimensions W: 640 H: 480 2008-12-14 07:47:59.033 TV: Changing from None to WatchingLiveTV 2008-12-14 07:47:59.039 The realtime priority setting is not enabled. 2008-12-14 07:47:59.166 Video timing method: USleep with busy wait 2008-12-14 07:49:27.923 TV: Attempting to change from WatchingLiveTV to None 2008-12-14 07:49:28.160 TV: Changing from WatchingLiveTV to None QuietCode: 2008-12-14 07:49:32.376 TV: Attempting to change from None to WatchingLiveTV 2008-12-14 07:49:32.377 Using protocol version 40 2008-12-14 07:49:35.150 AFD: Opened codec 0x8c51f10, id(MPEG2VIDEO) type(Video) 2008-12-14 07:49:35.150 AFD: codec MP2 has 2 channels 2008-12-14 07:49:35.150 AFD: Opened codec 0x92a6c00, id(MP2) type(Audio) 2008-12-14 07:49:35.212 Opening audio device 'spdif'. ch 2(2) sr 48000 2008-12-14 07:49:35.212 Opening ALSA audio device 'spdif'. 2008-12-14 07:49:35.246 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'2008-12-14 07:49:35.283 OSD Theme Dimensions W: 640 H: 480 2008-12-14 07:49:35.738 TV: Changing from None to WatchingLiveTV 2008-12-14 07:49:35.745 The realtime priority setting is not enabled. 2008-12-14 07:49:35.845 Video timing method: USleep with busy wait 2008-12-14 07:49:44.811 TV: Attempting to change from WatchingLiveTV to None 2008-12-14 07:49:45.138 TV: Changing from WatchingLiveTV to None LOUDCode: 2008-12-14 07:49:46.008 TV: Attempting to change from None to WatchingLiveTV 2008-12-14 07:49:46.009 Using protocol version 40 2008-12-14 07:49:48.676 AFD: Opened codec 0x92a6c00, id(MPEG2VIDEO) type(Video) 2008-12-14 07:49:48.676 AFD: codec MP2 has 2 channels 2008-12-14 07:49:48.676 AFD: Opened codec 0x8c51f10, id(MP2) type(Audio) 2008-12-14 07:49:48.733 Opening audio device 'spdif'. ch 2(2) sr 48000 2008-12-14 07:49:48.733 Opening ALSA audio device 'spdif'. 2008-12-14 07:49:48.771 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'2008-12-14 07:49:48.808 OSD Theme Dimensions W: 640 H: 480 2008-12-14 07:49:49.220 TV: Changing from None to WatchingLiveTV 2008-12-14 07:49:49.227 The realtime priority setting is not enabled. 2008-12-14 07:49:49.327 Video timing method: USleep with busy wait 2008-12-14 07:49:49.329 WriteAudio: buffer underrun 2008-12-14 07:49:55.433 TV: Attempting to change from WatchingLiveTV to None 2008-12-14 07:49:55.773 TV: Changing from WatchingLiveTV to None
|
|
Top |
|
|
knappster
|
Posted: Sun Dec 14, 2008 9:46 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I think I have narrowed it down to being an issue with ALSA. I ran some recorded mpg files in mplayer and xine through an xterm window and they exhibited the same behavior of random audio issues. It seems to happen when alsa tries to initiate audio out the spdif. Any ideas on workarounds?
|
|
Top |
|
|
knappster
|
Posted: Sun Dec 14, 2008 7:57 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Temporary workaround:
While I am trying to sort this out, I turned a streamzap button into the "re-initialize audio" button. The blue button is now set to mute master and unmute it 5 seconds later. This has worked for the two times that the audio has been fubared since I added it.
The code is as follows:
add the following to /home/mythtv/.lircrc Code: begin prog = irexec button = BLUE config = ~/BLUE.sh end create the following file (as mythtv) /home/mythtv/BLUE.sh: Code: /usr/bin/amixer sset 'Master' mute > /dev/null /bin/sleep 5s /usr/bin/amixer sset 'Master' unmute > /dev/null be sure to run: Code: chmod 755 /home/mythtv/BLUE.sh
After a reboot pressing B at least allows me to restart the audio without the hassle of exiting to the menu and trying out live TV again. I would still like to find a fix for ALSA if anybody has any suggestions, because this is not optimal.
|
|
Top |
|
|
Girkers
|
Posted: Thu Dec 18, 2008 2:18 pm |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
Have you tried your audio without an asound.conf or .asound file. When doing research for my chipset ALC662 it said that you don't need these files and it works perfectly for me.
_________________ Girkers
|
|
Top |
|
|
knappster
|
Posted: Sat Dec 20, 2008 7:47 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Girkers wrote: Have you tried your audio without an asound.conf or .asound file. When doing research for my chipset ALC662 it said that you don't need these files and it works perfectly for me.
I don't see a .asound file so I moved asound.conf to asound.conf.orig and rebooted. There was no improvement.
Now that I have been using this more frequently, to further describe when the problem can occur:
Anytime that I transition from the menu to live or recorded SDTV
Anytime that I transition from live HDTV to SDTV
Anytime that I rewind live TV (and presumably FF live or recorded TV).
HDTV uses passthrough, so that's why I don't think I have seen an issue with it. It seems that all of the above situations cause my box to open an audio stream to my receiver and for some reason at random this is corrupted. It's very strange.
|
|
Top |
|
|
generica
|
Posted: Thu Jan 15, 2009 8:41 pm |
|
Joined: Thu Sep 14, 2006 3:33 pm
Posts: 5
|
knappster,
I posted earlier tonight about a different problem I am having with ALSA and the onboard MCP51 audio with this motherboard. I can't get AC3 passthrough to work at all, but DTS passthrough works. What is your current situation regarding passthrough settings and what works or doesn't work? This is the thread I started: http://knoppmyth.net/phpBB2/viewtopic.php?t=19434
But anyway... I had success getting my PCM audio to sound correct by setting up this as my .asoundrc:
Code: pcm.!default { type hw card 0 device 1 rate 44100 format s16_le }
I'm not sure if this is going to give you the desired effect, however..
knappster wrote: Girkers wrote: Have you tried your audio without an asound.conf or .asound file. When doing research for my chipset ALC662 it said that you don't need these files and it works perfectly for me. I don't see a .asound file so I moved asound.conf to asound.conf.orig and rebooted. There was no improvement. Now that I have been using this more frequently, to further describe when the problem can occur: Anytime that I transition from the menu to live or recorded SDTV Anytime that I transition from live HDTV to SDTV Anytime that I rewind live TV (and presumably FF live or recorded TV). HDTV uses passthrough, so that's why I don't think I have seen an issue with it. It seems that all of the above situations cause my box to open an audio stream to my receiver and for some reason at random this is corrupted. It's very strange. [url][/url]
|
|
Top |
|
|
donjski
|
Posted: Sat Jan 17, 2009 4:24 pm |
|
Joined: Sat Sep 16, 2006 8:08 am
Posts: 71
|
knappster wrote: Human wrote: In R5.5, I have a script that will configure the system for digital audio based on a combination of generic and hardware-specific settings. Code: twk_audio.pl --implement digital Please try it in R5.5 and let me know if it works or fails for you. In either case, please also post the results of these commands so I know how to detect your audio device in the scripts: Code: lspci -vv lspci -mn
R5.5
This tweak worked great for me. I have the nForce audio.
I only had sound on the TV, but not for video or streams.
Now my only need is sound on my music. What app plays the music?
|
|
Top |
|
|
donjski
|
Posted: Sat Jan 17, 2009 5:38 pm |
|
Joined: Sat Sep 16, 2006 8:08 am
Posts: 71
|
Update,
Music works now, just had to change to default in the general music settings on the frontend
|
|
Top |
|
|
knappster
|
Posted: Fri Feb 13, 2009 9:33 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Following up:
I just updated to:
alsa-driver 1.0.19
alsa-lib 1.0.19
alsa-utils 1.0.19
alsa-oss 1.0.17
all from source. The only thing that was non-standard was configuring alsa-utils I had to use the --disable-xmlto flag, otherwise I got an error when making it.
I have opened standard def recordings about 25 times with only one minor audio glitch. This is a major improvement over the once every 3 or 4 times. Unless I report back here, this must have just been a glitch between my computer hardware, alsa version, and surround sound system. I'll keep my fingers crossed because this was my only major issue with 5.5.
|
|
Top |
|
|
wasabi
|
Posted: Wed Mar 25, 2009 6:15 pm |
|
Joined: Mon Nov 15, 2004 4:05 pm
Posts: 15
Location:
Oregon, USA
|
Human, your twk_audio.pl script worked like a charm! I had been getting static output to the SPDIF when I played movies, after messing around with the devices.
The only additional change I had to make was for MythMusic, I set that to /dev/adsp to get output.
|
|
Top |
|
|