Re: [Alsa-user] Need help connecting spdif input
Brought to you by:
perex
From: Mårten G. <re...@ho...> - 2009-02-23 00:21:45
|
> -----Ursprungligt meddelande----- > Från: Clemens Ladisch [mailto:cla...@go...] > Skickat: den 13 februari 2009 09:27 > Till: re...@ho... > Kopia: als...@li... > Ämne: Re: [Alsa-user] Need help connecting spdif input > > re...@ho... wrote: > > I have been searching the web for an example of how to get > sourround > > sound from my toslink input [...] I realise that an a52 > filter should > > be used, > > The a52 plugin encodes PCM data into Dolby data, and as a > plugin, it is only used when an application uses the > specified sound device. > > What you want to do is to record from the digital input > device, convert the data from Dolby to PCM, then output this > to the analog output device. > > It should be possible to do this by using arecord to capture > raw data, then piping it into ac3dec. > > untested, assuming card 0: > arecord -D spdif:0 -f dat -t raw | ac3dec -D hw:0 -6 > > HTH > Clemens > Hi Clemes I have tested, but no success, this is what I get: more10@linux-hyfd:~> arecord -D spdif:0 -f dat -t raw | ac3dec -D hw:0 -6 Recording raw data 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo 2.0 Mode 48.0 KHz 32 kbps Complete Main Audio Service unsupported 1/1 channels 6 I have tested various combinations of parameters, all with the same result. I have also tested with other sound card. It seems that ac3dec thinks my soundcard has only got 2 channels. I have installed latest alsa modules from opensuse repositories. I guess I get a lesser version on the driver becaus it is bound to the kernel, right? Do you have any ideas? Some debug info: # rpm -q -a | grep alsa alsa-plugins-pulse-1.0.19.git20090218-1.3 alsa-tools-1.0.19.git20090120-1.11 alsa-oss-32bit-1.0.17.git20080715-2.20 alsa-tools-devel-1.0.19.git20090120-1.11 cairo-dock-alsaMixer-1.6.3.1-3.pm.20081207 alsa-plugins-32bit-1.0.19.git20090218-1.3 alsa-utils-1.0.19.git20090221-1.1 alsa-oss-1.0.17.git20080715-2.20 alsa-firmware-1.0.19.git20090120-1.1 alsa-plugins-pulse-32bit-1.0.19.git20090218-1.3 alsa-1.0.19.git20090218-1.1 alsa-plugins-1.0.19.git20090218-1.3 # ac3dec -v ac3dec version 0.6.1 # cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.17. linux-hyfd:/home/more10 # cat /proc/asound/modules 0 snd_oxygen 1 snd_intel8x0 linux-hyfd:/home/more10 # cat /proc/asound/cards 0 [CMI8788 ]: CMI8788 - C-Media CMI8788 C-Media Oxygen HD Audio (rev 2) at 0xa000, irq 17 1 [CK804 ]: NFORCE - NVidia CK804 NVidia CK804 with ALC850 at irq 23 # uname -a Linux linux-hyfd 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64 x86_64 x86_64 GNU/Linux By the way, I am very pleased with the oxygen driver (and my razer barracuda ac-1 card), playing cds on my machine sounds better than any stereo I have listened to up do date. I am using a DYI amp from www.41hz.com, this is my amp: http://www.41hz.com/forums/topic.asp?TOPIC_ID=2381. Mårten |