Hello, I´ve been trying to get Dolby/DTS playback to work with my new media center for weeks. As it is, digital stereo sound works fine via toslink, but no Dolby/DTS. If play a testfile as follows: $ mplayer -ac hwdts SURROUNDTEST_011212.wav I get no sound, and mplayer says it can find a /proc/snd/pcmC0D1p. (see below for actual output). This is correct, because there is only a pcmC0D2p device. If I do a $ speaker-test -Dplug:spdif -c2 (or plug:iec958) I also get a message indicating: Playback open error: -2,No such file or directory. This is despite the fact the aplay -L tells me the spdif and iec758 should exist (see below for output). If I look in /proc/snd, there is a pcmC0D2p and no pcmC0D1p, and this is also consistent with the output of aadebug (see below). It looks to me, the somehow alsa tries to open the wrong device file, despite the fact that it seems to know what the correct file is. Or am I completely wrong? How does alsa know what to use for the spdif device? ++++++++++++++++++++++++++++++ mplayer output ++++++++++++++++++++++++++++++++ CPU: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (Family: 6, Model: 15, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. ..(some lines removed).. Playing SURROUNDTEST_011212.wav. Audio file file format detected. ========================================================================== Forced audio codec: hwdts Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 448000 bps, 48000 Hz a52: CRC check failed! AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000->192000) Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF) ========================================================================== [AO_ALSA] alsa-lib: pcm_hw.c:1248:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: No such file or directory [AO_ALSA] Playback open error: No such file or directory Could not open/initialize audio device -> no sound. Audio: no sound Video: no video ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++ aadebug output +++++++++++++++++++++++++++++++ ALSA Audio Debug v0.1.0 - za feb 10 13:03:56 CET 2007 http://alsa.opensrc.org/index.php?page=aadebug http://www.gnu.org/licenses/gpl.txt Kernel ---------------------------------------------------- Linux speeldoos 2.6.18-4-686 #1 SMP Fri Feb 2 15:10:49 UTC 2007 i686 GNU/Linux Loaded Modules -------------------------------------------- snd_hda_intel 17332 0 snd_hda_codec 137856 1 snd_hda_intel snd_pcm_oss 38368 0 snd_mixer_oss 15200 1 snd_pcm_oss snd_pcm 68676 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_seq_dummy 3844 0 snd_seq_oss 28768 0 snd_seq_midi 8192 0 snd_rawmidi 22560 1 snd_seq_midi snd_seq_midi_event 7008 2 snd_seq_oss,snd_seq_midi snd_seq 45680 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event snd_timer 20996 2 snd_pcm,snd_seq snd_seq_device 7820 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq snd 47012 10 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device snd_page_alloc 9640 2 snd_hda_intel,snd_pcm Modprobe Conf --------------------------------------------- alias char-major-116 snd alias char-major-116 snd alias char-major-14 soundcore alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 alias sound-slot-2 snd-card-2 alias sound-slot-3 snd-card-3 alias sound-slot-4 snd-card-4 alias sound-slot-5 snd-card-5 alias sound-slot-6 snd-card-6 alias sound-slot-7 snd-card-7 above sound-slot-0 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-1 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-2 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-3 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-4 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-5 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-6 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-7 snd-pcm-oss snd-mixer-oss snd-seq-oss alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss above snd-pcm snd-pcm-oss above snd-mixer snd-mixer-oss above snd-seq snd-seq-oss snd-seq-midi above snd-emu10k1 snd-emu10k1-synth above snd-via82xx snd-seq # Cause a script to be run after snd-*-synth module initialization post-install snd-emu8000-synth /lib/alsa/modprobe-post-install snd-emu8000-synth post-install snd-emu10k1-synth /lib/alsa/modprobe-post-install snd-emu10k1-synth post-install snd-ad1816a /lib/alsa/modprobe-post-install snd-ad1816a post-install snd-ad1848 /lib/alsa/modprobe-post-install snd-ad1848 post-install snd-adlib /lib/alsa/modprobe-post-install snd-adlib post-install snd-ad1889 /lib/alsa/modprobe-post-install snd-ad1889 post-install snd-ali5451 /lib/alsa/modprobe-post-install snd-ali5451 post-install snd-als100 /lib/alsa/modprobe-post-install snd-als100 post-install snd-als300 /lib/alsa/modprobe-post-install snd-als300 post-install snd-als4000 /lib/alsa/modprobe-post-install snd-als4000 post-install snd-aoa /lib/alsa/modprobe-post-install snd-aoa post-install snd-aoa-fabric-layout /lib/alsa/modprobe-post-install snd-aoa-fabric-layout post-install snd-aoa-onyx /lib/alsa/modprobe-post-install snd-aoa-onyx post-install snd-aoa-tas /lib/alsa/modprobe-post-install snd-aoa-tas post-install snd-aoa-toonie /lib/alsa/modprobe-post-install snd-aoa-toonie post-install snd-aoa-soundbus /lib/alsa/modprobe-post-install snd-aoa-soundbus post-install snd-aoa-soundbus-i2s /lib/alsa/modprobe-post-install snd-aoa-soundbus-i2s post-install snd-armaaci /lib/alsa/modprobe-post-install snd-armaaci post-install snd-asihpi /lib/alsa/modprobe-post-install snd-asihpi post-install snd-atiixp /lib/alsa/modprobe-post-install snd-atiixp post-install snd-au1x00 /lib/alsa/modprobe-post-install snd-au1x00 post-install snd-au8810 /lib/alsa/modprobe-post-install snd-au8810 post-install snd-au8820 /lib/alsa/modprobe-post-install snd-au8820 post-install snd-au8830 /lib/alsa/modprobe-post-install snd-au8830 post-install snd-azt2320 /lib/alsa/modprobe-post-install snd-azt2320 post-install snd-azt3328 /lib/alsa/modprobe-post-install snd-azt3328 post-install snd-ca0106 /lib/alsa/modprobe-post-install snd-ca0106 post-install snd-cmi8330 /lib/alsa/modprobe-post-install snd-cmi8330 post-install snd-cmipci /lib/alsa/modprobe-post-install snd-cmipci post-install snd-cs4231 /lib/alsa/modprobe-post-install snd-cs4231 post-install snd-cs4232 /lib/alsa/modprobe-post-install snd-cs4232 post-install snd-cs4236 /lib/alsa/modprobe-post-install snd-cs4236 post-install snd-cs4281 /lib/alsa/modprobe-post-install snd-cs4281 post-install snd-cs46xx /lib/alsa/modprobe-post-install snd-cs46xx post-install snd-cs5535audio /lib/alsa/modprobe-post-install snd-cs5535audio post-install snd-darla20 /lib/alsa/modprobe-post-install snd-darla20 post-install snd-darla24 /lib/alsa/modprobe-post-install snd-darla24 post-install snd-dt019x /lib/alsa/modprobe-post-install snd-dt019x post-install snd-echo3g /lib/alsa/modprobe-post-install snd-echo3g post-install snd-emu10k1x /lib/alsa/modprobe-post-install snd-emu10k1x post-install snd-ens1370 /lib/alsa/modprobe-post-install snd-ens1370 post-install snd-ens1371 /lib/alsa/modprobe-post-install snd-ens1371 post-install snd-es1688 /lib/alsa/modprobe-post-install snd-es1688 post-install snd-es18xx /lib/alsa/modprobe-post-install snd-es18xx post-install snd-es1938 /lib/alsa/modprobe-post-install snd-es1938 post-install snd-es1968 /lib/alsa/modprobe-post-install snd-es1968 post-install snd-es968 /lib/alsa/modprobe-post-install snd-es968 post-install snd-fm801 /lib/alsa/modprobe-post-install snd-fm801 post-install snd-fm801-tea575x /lib/alsa/modprobe-post-install snd-fm801-tea575x post-install snd-gina20 /lib/alsa/modprobe-post-install snd-gina20 post-install snd-gina24 /lib/alsa/modprobe-post-install snd-gina24 post-install snd-gusclassic /lib/alsa/modprobe-post-install snd-gusclassic post-install snd-gusextreme /lib/alsa/modprobe-post-install snd-gusextreme post-install snd-gusmax /lib/alsa/modprobe-post-install snd-gusmax post-install snd-harmony /lib/alsa/modprobe-post-install snd-harmony post-install snd-hda-intel /lib/alsa/modprobe-post-install snd-hda-intel post-install snd-hdsp /lib/alsa/modprobe-post-install snd-hdsp post-install snd-hdspm /lib/alsa/modprobe-post-install snd-hdspm post-install snd-ice1712 /lib/alsa/modprobe-post-install snd-ice1712 post-install snd-ice1724 /lib/alsa/modprobe-post-install snd-ice1724 post-install snd-indigo /lib/alsa/modprobe-post-install snd-indigo post-install snd-indigodj /lib/alsa/modprobe-post-install snd-indigodj post-install snd-indigoio /lib/alsa/modprobe-post-install snd-indigoio post-install snd-intel8x0 /lib/alsa/modprobe-post-install snd-intel8x0 post-install snd-interwave /lib/alsa/modprobe-post-install snd-interwave post-install snd-interwave-stb /lib/alsa/modprobe-post-install snd-interwave-stb post-install snd-korg1212 /lib/alsa/modprobe-post-install snd-korg1212 post-install snd-layla20 /lib/alsa/modprobe-post-install snd-layla20 post-install snd-layla24 /lib/alsa/modprobe-post-install snd-layla24 post-install snd-maestro3 /lib/alsa/modprobe-post-install snd-maestro3 post-install snd-mia /lib/alsa/modprobe-post-install snd-mia post-install snd-miro /lib/alsa/modprobe-post-install snd-miro post-install snd-mixart /lib/alsa/modprobe-post-install snd-mixart post-install snd-mona /lib/alsa/modprobe-post-install snd-mona post-install snd-mpu401 /lib/alsa/modprobe-post-install snd-mpu401 post-install snd-msnd-pinnacle /lib/alsa/modprobe-post-install snd-msnd-pinnacle post-install snd-mtpav /lib/alsa/modprobe-post-install snd-mtpav post-install snd-mts64 /lib/alsa/modprobe-post-install snd-mts64 post-install snd-nm256 /lib/alsa/modprobe-post-install snd-nm256 post-install snd-opl3sa2 /lib/alsa/modprobe-post-install snd-opl3sa2 post-install snd-opti92x-ad1848 /lib/alsa/modprobe-post-install snd-opti92x-ad1848 post-install snd-opti92x-cs4231 /lib/alsa/modprobe-post-install snd-opti92x-cs4231 post-install snd-opti93x /lib/alsa/modprobe-post-install snd-opti93x post-install snd-pc98-cs4232 /lib/alsa/modprobe-post-install snd-pc98-cs4232 post-install snd-pcsp /lib/alsa/modprobe-post-install snd-pcsp post-install snd-pcxhr /lib/alsa/modprobe-post-install snd-pcxhr post-install snd-pdaudiocf /lib/alsa/modprobe-post-install snd-pdaudiocf post-install snd-pdplus /lib/alsa/modprobe-post-install snd-pdplus post-install snd-portman2x4 /lib/alsa/modprobe-post-install snd-portman2x4 post-install snd-powermac /lib/alsa/modprobe-post-install snd-powermac post-install snd-pxa2xx-ac97 /lib/alsa/modprobe-post-install snd-pxa2xx-ac97 post-install snd-pxa2xx-i2sound /lib/alsa/modprobe-post-install snd-pxa2xx-i2sound post-install snd-riptide /lib/alsa/modprobe-post-install snd-riptide post-install snd-rme32 /lib/alsa/modprobe-post-install snd-rme32 post-install snd-rme96 /lib/alsa/modprobe-post-install snd-rme96 post-install snd-rme9652 /lib/alsa/modprobe-post-install snd-rme9652 post-install snd-s3c2410 /lib/alsa/modprobe-post-install snd-s3c2410 post-install snd-sa11xx-uda1341 /lib/alsa/modprobe-post-install snd-sa11xx-uda1341 post-install snd-sb16 /lib/alsa/modprobe-post-install snd-sb16 post-install snd-sb8 /lib/alsa/modprobe-post-install snd-sb8 post-install snd-sbawe /lib/alsa/modprobe-post-install snd-sbawe post-install snd-serial-u16550 /lib/alsa/modprobe-post-install snd-serial-u16550 post-install snd-sgalaxy /lib/alsa/modprobe-post-install snd-sgalaxy post-install snd-sonicvibes /lib/alsa/modprobe-post-install snd-sonicvibes post-install snd-sscape /lib/alsa/modprobe-post-install snd-sscape post-install snd-sun-amd7930 /lib/alsa/modprobe-post-install snd-sun-amd7930 post-install snd-sun-cs4231 /lib/alsa/modprobe-post-install snd-sun-cs4231 post-install snd-sun-dbri /lib/alsa/modprobe-post-install snd-sun-dbri post-install snd-trident /lib/alsa/modprobe-post-install snd-trident post-install snd-usb-audio /lib/alsa/modprobe-post-install snd-usb-audio post-install snd-usb-usx2y /lib/alsa/modprobe-post-install snd-usb-usx2y post-install snd-vx222 /lib/alsa/modprobe-post-install snd-vx222 post-install snd-vxpocket /lib/alsa/modprobe-post-install snd-vxpocket post-install snd-wavefront /lib/alsa/modprobe-post-install snd-wavefront post-install snd-ymfpci /lib/alsa/modprobe-post-install snd-ymfpci options snd-bt87x index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 # alias snd-atiixp-modem off # alias snd-intel8x0m off # alias snd-via82xx-modem off ### update-modules: start processing /etc/modutils/linux-sound-base_noOSS alias sound off alias dmasound_core off alias dmasound_pmac off alias soundcard off ### update-modules: end processing /etc/modutils/linux-sound-base_noOSS Proc Asound ----------------------------------------------- Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC). 0 [VT82xx ]: HDA-Intel - HDA VIA VT82xx HDA VIA VT82xx at 0xdfafc000 irq 233 0: [ 0] : control 1: : sequencer 16: [ 0- 0]: digital audio playback 18: [ 0- 2]: digital audio playback 24: [ 0- 0]: digital audio capture 25: [ 0- 1]: digital audio capture 26: [ 0- 2]: digital audio capture 33: : timer 00-02: ALC883 Digital : ALC883 Digital : playback 1 : capture 1 00-01: ALC883 Analog : ALC883 Analog : capture 2 00-00: ALC883 Analog : ALC883 Analog : playback 1 : capture 2 Client info cur clients : 3 peak clients : 3 max clients : 192 Client 0 : "System" [Kernel] Port 0 : "Timer" (Rwe-) Port 1 : "Announce" (R-e-) Connecting To: 15:0 Client 14 : "Midi Through" [Kernel] Port 0 : "Midi Through Port-0" (RWe-) Client 15 : "OSS sequencer" [Kernel] Port 0 : "Receiver" (-we-) Connected From: 0:1 Dev Snd --------------------------------------------------- controlC0 pcmC0D0c pcmC0D0p pcmC0D1c pcmC0D2c pcmC0D2p seq timer CPU ------------------------------------------------------- model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz cpu MHz : 1862.115 model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz cpu MHz : 1862.115 RAM ------------------------------------------------------- MemTotal: 1035516 kB SwapTotal: 1951888 kB Hardware -------------------------------------------------- 00:00.0 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:00.1 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:00.2 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:00.3 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:00.4 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:00.6 Host bridge: VIA Technologies, Inc. P4M890 Security Device 00:00.7 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge 00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller 07:09.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d1) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++aplay -L output+++++++++++++++++++++++++++++++++++++ PCM list: hw { @args.0 CARD @args.1 DEV @args.2 SUBDEV @args.CARD { type string default { @func getenv vars { 0 ALSA_PCM_CARD 1 ALSA_CARD } default { @func refer name 'defaults.pcm.card' } } } @args.DEV { type integer default { @func igetenv vars { 0 ALSA_PCM_DEVICE } default { @func refer name 'defaults.pcm.device' } } } @args.SUBDEV { type integer default { @func refer name 'defaults.pcm.subdevice' } } type hw card $CARD device $DEV subdevice $SUBDEV } plughw { @args.0 CARD @args.1 DEV @args.2 SUBDEV @args.CARD { type string default { @func getenv vars { 0 ALSA_PCM_CARD 1 ALSA_CARD } default { @func refer name 'defaults.pcm.card' } } } @args.DEV { type integer default { @func igetenv vars { 0 ALSA_PCM_DEVICE } default { @func refer name 'defaults.pcm.device' } } } @args.SUBDEV { type integer default { @func refer name 'defaults.pcm.subdevice' } } type plug slave.pcm { type hw card $CARD device $DEV subdevice $SUBDEV } } plug { @args.0 SLAVE @args.SLAVE { type string } type plug slave.pcm $SLAVE } shm { @args.0 SOCKET @args.1 PCM @args.SOCKET { type string } @args.PCM { type string } type shm server $SOCKET pcm $PCM } tee { @args.0 SLAVE @args.1 FILE @args.2 FORMAT @args.SLAVE { type string } @args.FILE { type string } @args.FORMAT { type string default raw } type file slave.pcm $SLAVE file $FILE format $FORMAT } file { @args.0 FILE @args.1 FORMAT @args.FILE { type string } @args.FORMAT { type string default raw } type file slave.pcm null file $FILE format $FORMAT } null { type null } cards 'cards.pcm' front 'cards.pcm.front' rear 'cards.pcm.rear' center_lfe 'cards.pcm.center_lfe' side 'cards.pcm.side' surround40 'cards.pcm.surround40' surround41 'cards.pcm.surround41' surround50 'cards.pcm.surround50' surround51 'cards.pcm.surround51' surround71 'cards.pcm.surround71' iec958 'cards.pcm.iec958' spdif 'cards.pcm.iec958' modem 'cards.pcm.modem' phoneline 'cards.pcm.phoneline' default 'cards.pcm.default' dmix 'cards.pcm.dmix' dsnoop 'cards.pcm.dsnoop' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user