<br><br><div class="gmail_quote">On Mon, Jan 23, 2012 at 4:30 PM, Jean-Yves Avenard <span dir="ltr"><<a href="mailto:jyavenard@gmail.com">jyavenard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<div class="im"><br>
On 24 January 2012 04:36, James Orr <<a href="mailto:james.orr7@gmail.com">james.orr7@gmail.com</a>> wrote:<br>
> I just upgraded from 0.23 fixes to 0.24.1. If I have my audio set to 5.1 I<br>
> get buffer underruns, setting it to stereo the audio is ok.<br>
><br>
> This was not happening in 0.23.<br>
><br>
> Here's the output from the frontend log, any ideas?<br>
><br>
> <a href="tel:2012-01-23%2012" value="+12012012312">2012-01-23 12</a>:25:34.921 AFD: Opened codec 0x90fc720, id(MPEG2VIDEO)<br>
> type(Video)<br>
> <a href="tel:2012-01-23%2012" value="+12012012312">2012-01-23 12</a>:25:34.921 AFD: codec AC3 has 6 channels<br>
> <a href="tel:2012-01-23%2012" value="+12012012312">2012-01-23 12</a>:25:34.922 AFD: Opened codec 0x9103520, id(AC3) type(Audio)<br>
> <a href="tel:2012-01-23%2012" value="+12012012312">2012-01-23 12</a>:25:35.039 AO: Opening audio device 'iec958:CARD=SI7012,DEV=0'<br>
> ch 6(6) sr 48000 sf signed 16 bit reenc 1<br>
<br>
</div>something is not right here...<br>
<br>
it is trying to open the iec958 device in 6 channels mode, when a<br>
iec958 is 2 maximum.<br>
<br>
As there's no error when trying to open it, the issue is most likely<br>
in the ALSA driver reporting this device has having 6 channels...<br>
<br>
How did you select this audio device?<br>
<br>
Go into the Settings -> General -> Audio Settings, and press the Scan<br>
Audio Device button.<br>
Browse the list generated. What does it say in the comment text when<br>
you select iec958:CARD=SI7012,DEV=0<br></blockquote><div><br></div><div>In 0.23 it said something like ALSA:spdif.</div><div><br></div><div>After the upgrade and experiencing this problem I did do a scan audio device and that option disappeared. The comments for iec958 say ...</div>
<div><br></div><div>SiS SI7012, SiS SI7012</div><div>IEC958 (S/PDIF) Digital Audio Output</div><div>Device supports up to 5.1 (digital output, AC3, DTS, multi-channels LPCM)</div><div><br></div><div>This was the only item that mentioned S/PDIF, so it's the one I chose. Should I pick something else? </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
To get around this ALSA issue, go into A<br>
<div class="im"><br>
> <a href="tel:2012-01-23%2012" value="+12012012312">2012-01-23 12</a>:25:35.047 ALSA, Error: Unable to sufficiently increase ALSA<br>
> hardware buffer size - underruns are likely<br>
<br>
</div>Well, the log does tell you you're going to get uderruns !<br>
<br>
My guess is that this audio cards has only 64kB of hardware buffer,<br>
and it's already set to 64kB<br></blockquote><div><br></div><div>/proc/asound/card0/pcm0p/sub0/prealloc is set to 128</div><div>prealloc_max is also 128</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
run mythfrontend with -v audio<br>
<br>
re-run the settings, scan the audio devices, select iec958, then try<br>
to play some audio and post the whole log here.<br>
<br>
If you have selected that audio device through the generated audio<br>
device list, and it is indeed configuring iec958 as a 6 channels, then<br>
go into the Advanced Settings page, and check "StereoPCM"<br>
<br>
This should fix all your issues..<br>
Then raise a bug with ALSA, that the iec958 port on the SI7012 audio<br>
card let you open it in 6 channels mode when it shouldn't.<br></blockquote><div><br></div><div>StereoPCM resulted in no sound at all, but I seem to have it working now.</div><div><br></div><div>I changed my device to ALSA:default:CARD=SI7012 and everything seems to be working now. I guess I did pick the wrong one. Thrown off by it not mentioning S/PDIF I guess.</div>
<div><br></div><div>Thanks for the help!</div></div>