Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-10 Thread Takashi Iwai
At Tue, 09 Sep 2008 22:53:50 +0200,
Ruediger Dohmhardt wrote:
 
 Vedran Miletić schrieb:
  Why don't you just pull the entire Takashi's tree with git and compile
  it? That would probably require the least effort, because you won't
  need to do any patching at all.

 Ok! I did it. *The good news*:
 Building sound-unstable-2.6.git with kernel 2.6.26.3 made the VT1708B 
 chip on my ASUS-M3N78-VM flawlessly working (at least I don't hear 
 distortion).

Good to hear.  Yes, some fixes have been added for VIA stuff pretty
recently.

 The alsa parts in
 
 (1) the kernel SUSE 11.0 ( 2.6.25.11-0.1-default)
 (2) the latest stable version 2.6.26.3 as well as 
 (3) the alsa-driver-1.0.18rc1
 
 made a lot of distortion. You could stand it for a while listening to 
 48kHz (DVB and DVD), but it was terrible with 44,1kHz (Wav files and CD).
 The distortion with the VT1708B was actually the reason buying the 
 Creative X-Fi Xtreme Audio PCIe card.
 
 *The bad news:*
 The PCIe card does not work. The driver snd_hda_intel loads fine, but 
 when running
 
 aplay -Dhw:0,1 /usr/share/sounds/alsa/test.wav
 -Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit 
 Little Endian, Rate 44100 Hz, Stereo
 
 the output 10s later is:
 -aplay: pcm_write:1394: write error: Eingabe-/Ausgabefehler 
 (Translation: Input-/Output Error)
 
 According to /proc/interrupts, there are approx. 10 interrupts while 
 playing test.wav.
 
 
 But there is no sound at the front speaker-output. I haven't tested the 
 optical SPDIF output yet, but will do so the next week.
 No log in /var/log/messages.
 
 Prior to doing the tests and creating the logs I disabled  the VT1708B 
 in the BIOS. Therefore it is not listed below.
  
 /Output of aplay -L /
 aplay -L
 default:CARD=Intel
 HDA Intel, CA0110 Analog
 Default Audio Device
 front:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 Front speakers
 surround40:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 4.0 Surround output to Front and Rear speakers
 surround41:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 4.1 Surround output to Front, Rear and Subwoofer speakers
 surround50:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 5.0 Surround output to Front, Center and Rear speakers
 surround51:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
 surround71:CARD=Intel,DEV=0
 HDA Intel, CA0110 Analog
 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
 iec958:CARD=Intel,DEV=0
 HDA Intel, CA0110 Digital
 IEC958 (S/PDIF) Digital Audio Output
 hdmi:CARD=Intel,DEV=0
 HDA Intel
 HDMI Audio Output
 null
 Discard all samples (playback) or generate zero samples (capture)
 
 /hwinfo --sound***/
 
 hwinfo --sound
 10: PCI 500.0: 0403 Audio device   
   [Created at pci.310]
   UDI: /org/freedesktop/Hal/devices/pci_1102_9
   Unique ID: Ddhb.YhraNp3EzIA
   Parent ID: YmUS.Ty6MHw35u4D
   SysFS ID: /devices/pci:00/:00:12.0/:04:00.0/:05:00.0
   SysFS BusID: :05:00.0
   Hardware Class: sound
   Model: Creative [SB X-Fi Xtreme Audio] CA0110-IBG
   Vendor: pci 0x1102 Creative Labs
   Device: pci 0x0009 [SB X-Fi Xtreme Audio] CA0110-IBG
   SubVendor: pci 0x1102 Creative Labs
   SubDevice: pci 0x0018
   Driver: HDA Intel
   Driver Modules: snd_hda_intel
   Memory Range: 0xfebfc000-0xfebf (rw,non-prefetchable)
   IRQ: 18 (1144 events)
   Module Alias: pci:v1102d0009sv1102sd0018bc04sc03i00
   Driver Info #0:
 Driver Status: snd_hda_intel is active
 Driver Activation Cmd: modprobe snd_hda_intel
   Config Status: cfg=no, avail=yes, need=no, active=unknown
   Attached to: #11 (PCI bridge)
 
 
 /*** Installation of  sound-unstable-2.6.git ***/
 
 cd linux-2.6.25.10
 mv sound sound.org /* hide 
 original sound directory */
 git clone 
 git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git
 ln -s sound-unstable-2.6.git sound
 cd include/
 mv sound/ sound.org/* rescue 
 linux-2.6.26.3/include/sound */ 
 ln -s ../sound-unstable-2.6/include/sound/
 cd ..
 make xconfig
 make /* 
 and it compiles fine */
 
 
 I appreciate any hints

Thanks for checking.  It's a bit hard right now for me debugging this
since I've been (and will be) in a series of conferences.
Will check after returning.

One thing you can try is to add a delay in the codec communication
code.  Try the patch below, for example.


thanks,

Takashi

diff --git a/sound/pci/hda/patch_ca0110.c b/sound/pci/hda/patch_ca0110.c
index adc8387..4e0c1f4 100644
--- a/sound/pci/hda/patch_ca0110.c
+++ b/sound/pci/hda/patch_ca0110.c
@@ -502,6 +502,8 @@ int patch_ca0110(struct hda_codec *codec)
   

Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-09 Thread Ruediger Dohmhardt
Vedran Miletić schrieb:
 Why don't you just pull the entire Takashi's tree with git and compile
 it? That would probably require the least effort, because you won't
 need to do any patching at all.
   
Ok! I did it. *The good news*:
Building sound-unstable-2.6.git with kernel 2.6.26.3 made the VT1708B 
chip on my ASUS-M3N78-VM flawlessly working (at least I don't hear 
distortion).
The alsa parts in

(1) the kernel SUSE 11.0 ( 2.6.25.11-0.1-default)
(2) the latest stable version 2.6.26.3 as well as 
(3) the alsa-driver-1.0.18rc1

made a lot of distortion. You could stand it for a while listening to 
48kHz (DVB and DVD), but it was terrible with 44,1kHz (Wav files and CD).
The distortion with the VT1708B was actually the reason buying the 
Creative X-Fi Xtreme Audio PCIe card.

*The bad news:*
The PCIe card does not work. The driver snd_hda_intel loads fine, but 
when running

aplay -Dhw:0,1 /usr/share/sounds/alsa/test.wav
-Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit 
Little Endian, Rate 44100 Hz, Stereo

the output 10s later is:
-aplay: pcm_write:1394: write error: Eingabe-/Ausgabefehler 
(Translation: Input-/Output Error)

According to /proc/interrupts, there are approx. 10 interrupts while 
playing test.wav.


But there is no sound at the front speaker-output. I haven't tested the 
optical SPDIF output yet, but will do so the next week.
No log in /var/log/messages.

Prior to doing the tests and creating the logs I disabled  the VT1708B 
in the BIOS. Therefore it is not listed below.
 
/Output of aplay -L /
aplay -L
default:CARD=Intel
HDA Intel, CA0110 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, CA0110 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, CA0110 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=Intel,DEV=0
HDA Intel
HDMI Audio Output
null
Discard all samples (playback) or generate zero samples (capture)

/hwinfo --sound***/

hwinfo --sound
10: PCI 500.0: 0403 Audio device   
  [Created at pci.310]
  UDI: /org/freedesktop/Hal/devices/pci_1102_9
  Unique ID: Ddhb.YhraNp3EzIA
  Parent ID: YmUS.Ty6MHw35u4D
  SysFS ID: /devices/pci:00/:00:12.0/:04:00.0/:05:00.0
  SysFS BusID: :05:00.0
  Hardware Class: sound
  Model: Creative [SB X-Fi Xtreme Audio] CA0110-IBG
  Vendor: pci 0x1102 Creative Labs
  Device: pci 0x0009 [SB X-Fi Xtreme Audio] CA0110-IBG
  SubVendor: pci 0x1102 Creative Labs
  SubDevice: pci 0x0018
  Driver: HDA Intel
  Driver Modules: snd_hda_intel
  Memory Range: 0xfebfc000-0xfebf (rw,non-prefetchable)
  IRQ: 18 (1144 events)
  Module Alias: pci:v1102d0009sv1102sd0018bc04sc03i00
  Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: modprobe snd_hda_intel
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #11 (PCI bridge)


/*** Installation of  sound-unstable-2.6.git ***/

cd linux-2.6.25.10
mv sound sound.org /* hide 
original sound directory */
git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git
ln -s sound-unstable-2.6.git sound
cd include/
mv sound/ sound.org/* rescue 
linux-2.6.26.3/include/sound */ 
ln -s ../sound-unstable-2.6/include/sound/
cd ..
make xconfig
make /* 
and it compiles fine */


I appreciate any hints

Ciao Ruediger


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-09 Thread Ruediger Dohmhardt
Sorry!
In my last e-mail there was a mistake in the
installation description of sound-unstable-2.6.git
and the formatting was terrible. 

/*** Installation of  sound-unstable-2.6.git ***/

cd linux-2.6.26.3
mv sound sound.org  /* hide original sound directory */
git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git
ln -s sound-unstable-2.6.git sound
cd include/
mv sound/ sound.org /* rescue linux-2.6.26.3/include/sound 
*/ 
ln -s ../sound-unstable-2.6/include/sound/
cd ..
make xconfig/* Configure PCI-sound devices */  
make/* and it compiles fine*/
#make install   /* followed by reboot  */




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-08 Thread Vedran Miletić
Why don't you just pull the entire Takashi's tree with git and compile
it? That would probably require the least effort, because you won't
need to do any patching at all.

2008/9/8 Ruediger Dohmhardt [EMAIL PROTECTED]:
 Vedran Miletić schrieb:

 It should work with hda-intel of Takashi's sound-unstable-2.6 tree (it
 has the patch_ca0110.c file there). Have you tried compiling that?


 Thank you for the reply. I got the file patch_ca0110.c.
 I tried to add it to alsa-driver-1.0.18rc1.

 However, it requires too much effort i.e. modifications of Make- and
 Configfiles.
 So, up to now I didn't manage to get patch_ca0110.c compiled.

 Thanks Ruediger D.





-- 
Vedran Miletić
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-07 Thread Ruediger Dohmhardt
Vedran Miletić schrieb:
 There is another option, cheaper than Xonar DX. Creative has relaeased
 PCI Express version of Xtreme Audio, which isn't based on X-Fi chip
 but on CA0110. There is some support in Takashi's sound-unstable tree.
 I'm not sure how well it works (let alone in regard to SPDIF support),
 hopefully Takashi will be able to answer that part.
   
Dear Takashi,

I bought the PCIe Xtreme Audio simply for the reason I had no PCI Slot 
left anymore.
Unfortunately I can't make it work. Some people claim they got it 
running, but do not mention the used module.

You suggest in
http://mailman.alsa-project.org/pipermail/alsa-devel/2008-March/006644.html

to use hda-intel.ko, whereas the Creative card is mentioned ca0106_main.c.

I build different alsa-driver versions with

./configure --with-sequencer=yes --with-oss=yes 
--with-cards=ca0106,emu10k1,hda-intel

Then I did some modifications to ca0106_main.c. To the structure 
snd_ca0106_ids[] I added the line

   { 0x1102, 0x0009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },/* 
x-fi */

But when I do modprobe ca0106 I get

tail -f /var/log/messages

kernel: ACPI: PCI Interrupt :05:00.0[A] - Link [LN2A] - GSI 18 
(level, low) - IRQ 18
kernel: ACPI: PCI interrupt for device :05:00.0 disabled
kernel: cannot allocate the port
kernel: CA0106: probe of :05:00.0 failed with error -16

So, the kernel does not load the driver, because, I guess, I do 
something that is not supposed to work.

Please, could you, or James, give me some hints how to proceed here.
Or shall I use hda-intel.ko? Which parameters?


Below is the output of  hwinfo --sound


10: PCI 500.0: 0403 Audio device   
  [Created at pci.310]
  UDI: /org/freedesktop/Hal/devices/pci_1102_9
  Unique ID: Ddhb.YhraNp3EzIA
  Parent ID: YmUS.Ty6MHw35u4D
  SysFS ID: /devices/pci:00/:00:12.0/:04:00.0/:05:00.0
  SysFS BusID: :05:00.0
  Hardware Class: sound
  Model: Creative [SB X-Fi Xtreme Audio] CA0110-IBG
  Vendor: pci 0x1102 Creative Labs
  Device: pci 0x0009 [SB X-Fi Xtreme Audio] CA0110-IBG
  SubVendor: pci 0x1102 Creative Labs
  SubDevice: pci 0x0018
  Memory Range: 0xfebfc000-0xfebf (rw,non-prefetchable)
  IRQ: 11 (no events)
  Module Alias: pci:v1102d0009sv1102sd0018bc04sc03i00
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #11 (PCI bridge)


Ciao Ruediger D


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes/ ca0106.ko does not load

2008-09-07 Thread Vedran Miletić
It should work with hda-intel of Takashi's sound-unstable-2.6 tree (it
has the patch_ca0110.c file there). Have you tried compiling that?

2008/9/7 Ruediger Dohmhardt [EMAIL PROTECTED]:
 Vedran Miletić schrieb:

 There is another option, cheaper than Xonar DX. Creative has relaeased
 PCI Express version of Xtreme Audio, which isn't based on X-Fi chip
 but on CA0110. There is some support in Takashi's sound-unstable tree.
 I'm not sure how well it works (let alone in regard to SPDIF support),
 hopefully Takashi will be able to answer that part.


 Dear Takashi,

 I bought the PCIe Xtreme Audio simply for the reason I had no PCI Slot left
 anymore.
 Unfortunately I can't make it work. Some people claim they got it running,
 but do not mention the used module.

 You suggest in
 http://mailman.alsa-project.org/pipermail/alsa-devel/2008-March/006644.html

 to use hda-intel.ko, whereas the Creative card is mentioned ca0106_main.c.

 I build different alsa-driver versions with

 ./configure --with-sequencer=yes --with-oss=yes
 --with-cards=ca0106,emu10k1,hda-intel

 Then I did some modifications to ca0106_main.c. To the structure
 snd_ca0106_ids[] I added the line

  { 0x1102, 0x0009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },/* x-fi
 */

 But when I do modprobe ca0106 I get

 tail -f /var/log/messages

   kernel: ACPI: PCI Interrupt :05:00.0[A] - Link [LN2A] - GSI 18
 (level, low) - IRQ 18
   kernel: ACPI: PCI interrupt for device :05:00.0 disabled
   kernel: cannot allocate the port
   kernel: CA0106: probe of :05:00.0 failed with error -16

 So, the kernel does not load the driver, because, I guess, I do something
 that is not supposed to work.

 Please, could you, or James, give me some hints how to proceed here.
 Or shall I use hda-intel.ko? Which parameters?


 Below is the output of  hwinfo --sound


 10: PCI 500.0: 0403 Audio device[Created at
 pci.310]
  UDI: /org/freedesktop/Hal/devices/pci_1102_9
  Unique ID: Ddhb.YhraNp3EzIA
  Parent ID: YmUS.Ty6MHw35u4D
  SysFS ID: /devices/pci:00/:00:12.0/:04:00.0/:05:00.0
  SysFS BusID: :05:00.0
  Hardware Class: sound
  Model: Creative [SB X-Fi Xtreme Audio] CA0110-IBG
  Vendor: pci 0x1102 Creative Labs
  Device: pci 0x0009 [SB X-Fi Xtreme Audio] CA0110-IBG
  SubVendor: pci 0x1102 Creative Labs
  SubDevice: pci 0x0018
  Memory Range: 0xfebfc000-0xfebf (rw,non-prefetchable)
  IRQ: 11 (no events)
  Module Alias: pci:v1102d0009sv1102sd0018bc04sc03i00
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #11 (PCI bridge)


 Ciao Ruediger D





-- 
Vedran Miletić
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes

2008-09-04 Thread Vedran Miletić
There is another option, cheaper than Xonar DX. Creative has relaeased
PCI Express version of Xtreme Audio, which isn't based on X-Fi chip
but on CA0110. There is some support in Takashi's sound-unstable tree.
I'm not sure how well it works (let alone in regard to SPDIF support),
hopefully Takashi will be able to answer that part.

2008/9/3 Jason Gauthier [EMAIL PROTECTED]:

 Jason Gauthier wrote:
 I can't find many cards except for the Creative Labs X-Fi that seems
 to
 fit both.. and from what I read SPDIF passthrough doesn't work.I'm
 not 100% sure what that means. (Pretty new to this level of audio)

SPDIF was designed to transport two channels of 16-bit uncompressed
audio at 48 kHz (this is 192,000 bytes per second).  If you want to
transport more channels (4.0/5.1/7.1), the data has to be compressed
with a codec like Dolby Digital (AC-3) or DTS, and a special control
 bit
must be set in the SPDIF stream to indicated that the data is
compressed.  (Since nobody wants to pay for an encoder license, this is
mostly interesting for DVDs, which the audio data already in compressed
form.)


 Fantastic explanation!

 I'm not 100% sure where that leaves me with my surround sound project
 with Linux (and Myth) but it does leave me thinking quite a bit.

 Thanks,

 Jason

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user




-- 
Vedran Miletić
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes

2008-09-03 Thread Clemens Ladisch
Jason Gauthier wrote:
 I can't find many cards except for the Creative Labs X-Fi that seems to
 fit both.. and from what I read SPDIF passthrough doesn't work.I'm
 not 100% sure what that means. (Pretty new to this level of audio)

SPDIF was designed to transport two channels of 16-bit uncompressed
audio at 48 kHz (this is 192,000 bytes per second).  If you want to
transport more channels (4.0/5.1/7.1), the data has to be compressed
with a codec like Dolby Digital (AC-3) or DTS, and a special control bit
must be set in the SPDIF stream to indicated that the data is
compressed.  (Since nobody wants to pay for an encoder license, this is
mostly interesting for DVDs, which the audio data already in compressed
form.)

A sound card that can do SPDIF passthrough (usually called DTS/AC3
passthrough) can two things:
1) it does not modify the audio data in any way (every bit is needed for
   decoding), and
2) it allows to set the non-audio control bit.

You don't need this feature if all you want is stereo.

 Does anyone have any recommended cards that fit both PCI Express, USB,
 or firewire and SPDIF out?

USB:  There are many devices with SPDIF output, but there isn't any one
that does support passthrough in Linux.

PCI-E:  The X-Fi has SPDIF, and it should not take more than another few
years before Creative adds passthrough support to the driver.  The Asus
Xonar DX and D2X cards do support passthrough, but you need a recent
enough kernel; see
http://www.alsa-project.org/main/index.php/Matrix:Vendor-Asus.

Firewire:  don't know, there is probably nothing that would be cheaper
than the Xonar DX.


HTH
Clemens

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] SPDIF woes

2008-09-03 Thread Jason Gauthier

Jason Gauthier wrote:
 I can't find many cards except for the Creative Labs X-Fi that seems
to
 fit both.. and from what I read SPDIF passthrough doesn't work.I'm
 not 100% sure what that means. (Pretty new to this level of audio)

SPDIF was designed to transport two channels of 16-bit uncompressed
audio at 48 kHz (this is 192,000 bytes per second).  If you want to
transport more channels (4.0/5.1/7.1), the data has to be compressed
with a codec like Dolby Digital (AC-3) or DTS, and a special control
bit
must be set in the SPDIF stream to indicated that the data is
compressed.  (Since nobody wants to pay for an encoder license, this is
mostly interesting for DVDs, which the audio data already in compressed
form.)


Fantastic explanation!

I'm not 100% sure where that leaves me with my surround sound project
with Linux (and Myth) but it does leave me thinking quite a bit.

Thanks,

Jason

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user