[mythtv-users] spdif problem

Udo van den Heuvel udovdh at xs4all.nl
Sun Mar 22 16:16:19 UTC 2009


Hello,

Even more, for those unfamiliar with the audio on a VIA EN12000:

[root at recorder etc]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: V8237 [VIA 8237], device 0: VIA 8237 [VIA 8237]
   Subdevices: 4/4
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
card 0: V8237 [VIA 8237], device 1: VIA 8237 [VIA 8237]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
[root at recorder etc]# aplay -L
front:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     Front speakers
surround40:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     4.0 Surround output to Front and Rear speakers
surround41:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=V8237,DEV=0
     VIA 8237, VIA 8237
     IEC958 (S/PDIF) Digital Audio Output
null
     Discard all samples (playback) or generate zero samples (capture)

Note the names without cards.pcm.
I also tried the info from 
http://mythtv.org/wiki/Configuring_Digital_Sound but mythfrontend 
insists in changing e.g. iec958 into cards.pcm.iec958 which it cannot 
find but which aplay finds OK to play audio through. (!!)

Anybody here that knows what is wrong?

Kind regards,
Udo

Udo van den Heuvel wrote:
> Hello,
> 
> Oh, I forgot:
> This using this software:
> # mythfrontend --version
> Please include all output in bug reports.
> MythTV Version   : exported
> MythTV Branch    : branches/release-0-21-fixes
> Library API      : 0.21.20080304-1
> Network Protocol : 40
> Options compiled in:
>  linux release using_alsa using_backend using_dbox2 using_dvb 
> using_frontend using_hdhomerun using_iptv using_ivtv using_joystick_menu 
> using_lirc using_v4l using_x11 using_xrandr using_xv using_xvmc 
> using_xvmcw using_xvmc_vld using_bindings_perl using_bindings_python 
> using_opengl using_ffmpeg_threads using_live
> 
> Svn 20207.
> 
> When I use ALSA:iec958 in mythfrontend it says it cannot find 
> cards.pcm.iec958 but aplay -Dcards.pcm.iec958 works fine.
> So what is the cause of this problem?
> 
> 
> 
> Udo van den Heuvel wrote:
>> 'Suddenly' Mythtv balks about my spdif when starting playback of a 
>> recording:
>>
>> Opening ALSA audio device 'spdif'.
>> ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
>> 2009-03-22 16:13:36.815 AudioOutput Error: snd_pcm_open(spdif): No 
>> such file or directory
>>
>> I am using this asound.conf, taken from 
>> http://mythtv.org/wiki/index.php/Configuring_Digital_Sound_with_AC3_and_SPDIF 
>> and set up MythTV using that howto:
>>
>> pcm.!default {
>>  type plug
>>   slave {
>>     pcm "spdif"
>>     rate 48000
>>     format S16_LE
>>  }
>> }
>>
>> And aplay on the commandline works well:
>> [root at recorder ~]# aplay -Dspdif /home/udo/xine-out.wav
>> Playing WAVE '/home/udo/xine-out.wav' : Signed 16 bit Little Endian, 
>> Rate 48000 Hz, Stereo
>> ^CAborted by signal Interrupt...
>> [root at recorder ~]# aplay -Diec958 /home/udo/xine-out.wav
>> Playing WAVE '/home/udo/xine-out.wav' : Signed 16 bit Little Endian, 
>> Rate 48000 Hz, Stereo
>> ^CAborted by signal Interrupt...
>> [root at recorder ~]# aplay  /home/udo/xine-out.wav
>> Playing WAVE '/home/udo/xine-out.wav' : Signed 16 bit Little Endian, 
>> Rate 48000 Hz, Stereo
>> ^CAborted by signal Interrupt...
>>
>> Mythfrontend can't comprehend anymore and errors:
>>
>> 2009-03-22 16:13:36.727 Opening audio device 'spdif'. ch 2(2) sr 48000
>> 2009-03-22 16:13:36.731 Opening ALSA audio device 'spdif'.
>> ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
>> 2009-03-22 16:13:36.815 AudioOutput Error: snd_pcm_open(spdif): No 
>> such file or directory
>> 2009-03-22 16:13:36.815 NVP: Disabling Audio, reason is: 
>> snd_pcm_open(spdif): No such file or directory
>>
>> Then I tried the ALSA:digital that I can choose in the setup, but this 
>> gives a similar error.
>> So what must be wrong?
>> Anybody?
>>
>> This is on VIA Epia EN12000.
>>
>> Kind regards,
>> Udo
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 
> 
> 



More information about the mythtv-users mailing list