[mythtv] Set "non-audio" SPDIF bit change breaks passthru
Martin Ebourne
lists at ebourne.me.uk
Thu Mar 2 01:13:59 UTC 2006
r8941 from this ticket:
Set "non-audio" SPDIF bit
http://svn.mythtv.org/trac/ticket/1105
breaks passthru on my sound card.
I get the following from mythfrontend:
2006-03-02 00:43:09.195 Opening audio device 'hw:1'.
ALSA lib pcm_hw.c:1305:(_snd_pcm_hw_open) Invalid value for card
2006-03-02 00:43:09.231 AudioOutput Error: snd_pcm_open(hw:1): No such
device
The lines that break it are the two lines of the patch that do the work.
>From audiooutputalsa.cpp:49:
if (audio_passthru)
real_device.append(":{ AES0 0x02 }");
If I remove those it works again. Clearly my alsa driver does not
understand the extra flags here. I am using a Creative Technology SB
Live! 24-bit External, which is a USB soundcard with optical out. This
uses the snd_usb_audio driver.
An obvious solution would be to try opening with the extra device
parameters and then fallback without in the case of failure. Sound ok or
any better suggestions?
Cheers,
Martin.
More information about the mythtv-dev
mailing list