<div class="gmail_quote">On Thu, Feb 28, 2008 at 10:27 AM, Robert Jones &lt;<a href="mailto:kaosfere@gmail.com">kaosfere@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, everyone.<br><br>I decided yesterday that I was going to do away with my standalone DVD<br>player and allow myth to take over that role in my entertainment<br>
center. &nbsp;However, I ran into some bizarre issues getting audio to<br>passthrough to my home theater receiver.<br><br>I&#39;m currently running Ubuntu Gutsy, tracking the Mythbuntu weekly<br>builds of the svn trunk. &nbsp;My system has MCP51 onboard audio, using the<br>
hda-intel drivers manually updated to the latest ALSA beta (although<br>this also occured with earlier versions).<br>I&#39;m pulling digital out via S/PDIF.<br><br>My audio out and digital passthrough are both currently set to ALSA:iec958.<br>
<br>I can get full dolby digital to my amp using mplayer, by routing sound<br>to ALSA:iec958 and forcing hwac3. &nbsp;However, when I try to play the<br>same DVD through myth, the audio I get is raw digital noise. &nbsp;It&#39;s<br>
almost as though the bitstream is being sent down the wire as plain<br>PCM audio.<br><br>I have tried jiggering the output devices. &nbsp;using ALSA:plug:iec958<br>doesn&#39;t change anything. &nbsp;Nor do any of the AESx hex incantations that<br>
I have seen scattered about -- they either break audio entirely, or do<br>nothing to change the presentation of raw digital noise. &nbsp;Accessing<br>hw:0,1 doesn&#39;t help, either.<br><br>(And, yes, I&#39;m set to AC3 and DTS passthrough, and &quot;use video as<br>
timebase&quot; is off.)<br><br>For reference, here&#39;s the output of aplay -l:<br><br>**** List of PLAYBACK Hardware Devices ****<br>card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]<br>&nbsp;Subdevices: 1/1<br>
&nbsp;Subdevice #0: subdevice #0<br>card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]<br>&nbsp;Subdevices: 1/1<br>&nbsp;Subdevice #0: subdevice #0<br><br><br><br><br><br>Here&#39;s aplay -L:<br><br>default:CARD=NVidia<br>
&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;Default Audio Device<br>front:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;Front speakers<br>surround40:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;4.0 Surround output to Front and Rear speakers<br>
surround41:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;4.1 Surround output to Front, Rear and Subwoofer speakers<br>surround50:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;5.0 Surround output to Front, Center and Rear speakers<br>
surround51:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;5.1 Surround output to Front, Center, Rear and Subwoofer speakers<br>surround71:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Analog<br>&nbsp; &nbsp;7.1 Surround output to Front, Center, Side, Rear and Woofer speakers<br>
iec958:CARD=NVidia,DEV=0<br>&nbsp; &nbsp;HDA NVidia, AD198x Digital<br>&nbsp; &nbsp;IEC958 (S/PDIF) Digital Audio Output<br>null<br>&nbsp; &nbsp;Discard all samples (playback) or generate zero samples (capture)<br><br><br><br><br>And here&#39;s a portion of my frontend log (from a title screen, so it&#39;s<br>
only 2-channel AC3, but 6-channel looks similar, and both sound the<br>same), with -v audio turned on.:<br><br><br><br>2008-02-28 02:45:40.997 AFD: Opened codec 0xaa6ef030, id(AC3) type(Audio)<br>2008-02-28 02:45:40.998 AFD: Audio Track #1 is A/V stream #1 and has 0<br>
channels in the Undetermined language(7695972).<br>2008-02-28 02:45:41.007 AFD: Selected track 1: Undetermined LIBA52 2ch<br>(A/V Stream #1)<br>2008-02-28 02:45:41.008 AFD: Initializing audio parms from audio track #1<br>
2008-02-28 02:45:41.008 AFD: Audio format changed digital passthrough<br>id( AC3) 48000Hz &nbsp;2ch &nbsp;16bps pt<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from id(NONE) &nbsp; &nbsp;-1Hz -1ch &nbsp; 0bps &nbsp; &nbsp;;<br>id(NONE) &nbsp; &nbsp;-1Hz -1ch &nbsp; 0bps<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;to &nbsp; id( AC3) 48000Hz &nbsp;2ch &nbsp;16bps pt ; id(<br>
AC3) 48000Hz &nbsp;2ch &nbsp;16bps pt<br>2008-02-28 02:45:41.019 AO: Needs upmix<br>2008-02-28 02:45:41.019 AO: Killing AudioOutputDSP<br>2008-02-28 02:45:41.019 Opening audio device &#39;plug:iec958&#39;. ch 6(2) sr 48000<br>2008-02-28 02:45:41.020 Opening ALSA audio device &#39;plug:iec958&#39;.<br>
2008-02-28 02:45:41.032 in SetParameters(format=2, channels=6,<br>rate=48000, buffer_time=100000, period_time=25000)<br>2008-02-28 02:45:41.034 get_buffer_size returned 4800<br>2008-02-28 02:45:41.034 set_period_time_near returned 20000<br>
2008-02-28 02:45:41.034 get_period_size returned 960<br>2008-02-28 02:45:41.050 AO: Audio fragment size: 19200<br>2008-02-28 02:45:41.052 AO: create upmixer<br>2008-02-28 02:45:42.135 AO: create upmixer done with surround mode 2<br>
2008-02-28 02:45:42.136 AO: Audio Stretch Factor: 1<br>2008-02-28 02:45:42.136 Audio Codec Used: not set<br>2008-02-28 02:45:42.136 AO: Ending reconfigure<br>2008-02-28 02:45:42.136 NVP: Enabling Audio<br>2008-02-28 02:45:42.136 AO: Killing AudioOutputDSP<br>
2008-02-28 02:45:42.136 AO: kickoffOutputAudioLoop: pid = 16227<br>2008-02-28 02:45:42.136 AO: OutputAudioLoop: Stop Event<br>2008-02-28 02:45:42.136 AO: kickoffOutputAudioLoop exiting<br><br><br><br>I can provide more extensive logs if necessary, but I feel as though<br>
I&#39;m missing something glaringly obvious. :(</blockquote>
<div>&nbsp;</div>
<div>I *think* since you are seeing upmixer notes in your logs that you are running a very recent SVN version?&nbsp; If this is the case, I think you need to set your upmix settings to passthrough or something like that (I haven&#39;t updated but I saw some messages regarding this).&nbsp; See if you can find that setting.</div>

<div>&nbsp;</div>
<div>Kevin</div></div>