Re: Need help connecting spdif input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Ursprungligt meddelande-----
> Från: Clemens Ladisch [mailto:cladisch@xxxxxxxxxxxxxx] 
> Skickat: den 13 februari 2009 09:27
> Till: reklam@xxxxxxxxxxxxxx
> Kopia: alsa-user@xxxxxxxxxxxxxxxxxxxxx
> Ämne: Re:  Need help connecting spdif input
> 
> reklam@xxxxxxxxxxxxxx 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


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux