Skip to contentSkip to conversation

SPDIF and cs46xx ?

DISCUSSION Gregoire Favre 4 participants 12 messages Mar 8, 2003 – Mar 12, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

reading this ml, I see there were some change to the CVS regarding cs46xx and SPDIF, so I do:

./cvscompile --with-sequencer=yes --with-cards=cs46xx --with-isapnp=no make install

And then, my DVB-s card is connected to the first CD-in of my Digifire 7.1, I can hear it with the analog out, but not with the SPDIF... Maybe I don't know how to change the mixer right?

And if I use the
http://prdownloads.sourceforge.net/sourceforge/bitstreamout/
I get:

Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: Period size not available: Invalid argument
Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: unable to establish BitStreamOut for none audio PCM 
Mar  8 15:31:16 localhost vdr[6790]: INSTREAM: can't open spdif interface

Also with ac3play:

./ac3play /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3
ac3play: Unable to update the IEC958 control: No such file or directory
ac3play: Period size not available: Invalid argument Segmentation fault
Exit 139

mplayer also (with -ao alsa9):

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: unable to set periodsize: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound

I have done some try with xine, but it's not better...

Should I do something differently?

Thank you very much,

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#1 lore raw
Quoted 5 lines

Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: Period size not available: Invalid argument
Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: unable to establish BitStreamOut for none audio PCM Mar  8 15:31:16 localhost vdr[6790]: INSTREAM: can't open spdif interface
Quoted 8 lines

Also with ac3play:

./ac3play /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3 ac3play: Unable to update the IEC958 control: No such file or directory
ac3play: Period size not available: Invalid argument
Segmentation fault
Exit 139

Sure you are using the latest and greatest alsa-lib? course: "ac3play: Unable to update the IEC958 control: No such file or directory", should not happen.

Quoted 12 lines

mplayer also (with -ao alsa9):

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: unable to set periodsize: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound

The only period sizes supported by the cs46xx hw are:

    2048 bytes
    1024 bytes
      512 bytes
      256 bytes
      128 bytes
        64 bytes
        32 bytes

Try check which period size the programs wants, as something related to the period_size seems to be the problem.

Quoted 4 lines

I have done some try with xine, but it's not better...

Should work fine with xine, almost as it is, out of the box without any special configuration.

/Benny

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#2 lore raw
Quoted 3 lines · Benny Sjostrand

Sure you are using the latest and greatest alsa-lib? course: "ac3play:
Unable to update the IEC958 control: No such file or directory", should not happen.

I wasn't sure, but know I am: I use the latest CVS lib also... So the error come from another point???

Quoted 10 lines

The only period sizes supported by the cs46xx hw are:

    2048 bytes
    1024 bytes
      512 bytes
      256 bytes
      128 bytes
        64 bytes
        32 bytes

Try check which period size the programs wants, as something related to the period_size seems to be the problem.

I suppose it's the -format option of mplayer, if I lauch it that way, mplayer -ao alsa9 -channels 6 -format 1024 -dvd 1 I got:

Checking audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/8bit...
AF_pre: af format: 2 bps, 6 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 6ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 6 channels, AC3
alsa-init: soundcard set to surround51
ALSA lib pcm.c:1739:(snd_pcm_open_conf) Invalid type for PCM surround51 definition (id: surround51, value: cards.pcm.surround51)
alsa-init: playback open error: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound

And with mplayer -ao alsa9 -format 1024 I got:
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, AC3
alsa-init: soundcard set to iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
alsa-init: unable to set periodsize: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound

Well, now I don't think it's the -format...

Quoted 2 lines

Should work fine with xine, almost as it is, out of the box without any special configuration.

Well, I would really like that too ;-)

Thank you very much for your answer,

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#3 lore raw

At Sat, 8 Mar 2003 18:52:44 +0100,

Quoted 21 lines · Gregoire Favre
Quoted 3 lines · Benny Sjostrand

Sure you are using the latest and greatest alsa-lib? course: "ac3play:
Unable to update the IEC958 control: No such file or directory", should not happen.

I wasn't sure, but know I am: I use the latest CVS lib also... So the error come from another point???

Quoted 10 lines

The only period sizes supported by the cs46xx hw are:

    2048 bytes
    1024 bytes
      512 bytes
      256 bytes
      128 bytes
        64 bytes
        32 bytes

Try check which period size the programs wants, as something related to the period_size seems to be the problem.

Quoted 2 lines

I suppose it's the -format option of mplayer, if I lauch it that way, mplayer -ao alsa9 -channels 6 -format 1024 -dvd 1 I got:

did you install the latest alsa-lib, too?
only installing alsa-driver doesn't suffice.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#4 lore raw
Quoted 2 lines · Takashi Iwai

did you install the latest alsa-lib, too?
only installing alsa-driver doesn't suffice.

Yes, from CVS also...
Is there an easy way to test 5.1 with alsa?

Thank you very much,

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#5 lore raw

At Mon, 10 Mar 2003 15:46:08 +0100,

Quoted 8 lines · Gregoire Favre
Quoted 2 lines · Takashi Iwai

did you install the latest alsa-lib, too?
only installing alsa-driver doesn't suffice.

Yes, from CVS also...
Is there an easy way to test 5.1 with alsa?

ah, now got the point.

surround51 pcm is for ANALOG 5.1 output. and it's NOT supported on cs46xx yet.

the easiest way to check is to use ac3dec in alsa-utils. run with -C option for AC3-passthru mode.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#6 lore raw
Quoted 4 lines · Takashi Iwai

ah, now got the point.

surround51 pcm is for ANALOG 5.1 output. and it's NOT supported on cs46xx yet.

Well, I don't need any analog 5.1, all I want is the SPDIF...

Quoted 2 lines

the easiest way to check is to use ac3dec in alsa-utils. run with -C option for AC3-passthru mode.

Great, I should do it tonight at home :-)

Thank you very much, I did try with ac3play without success, let's see if it would play better with ac3play...

And do you know what I should do to play files with mplayer?

And why I can't use a plugin with VDR
http://prdownloads.sourceforge.net/sourceforge/bitstreamout/
I get:

Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: Period size not available: Invalid argument
Mar  8 15:31:16 localhost vdr[6790]: S/P-DIF: unable to establish BitStreamOut for none audio PCM
Mar  8 15:31:16 localhost vdr[6790]: INSTREAM: can't open spdif interface

Thank you very much,

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#7 lore raw
In reply to Takashi Iwai
Quoted 7 lines · Takashi Iwai

ah, now got the point.

surround51 pcm is for ANALOG 5.1 output. and it's NOT supported on cs46xx yet.

the easiest way to check is to use ac3dec in alsa-utils. run with -C option for AC3-passthru mode.

;-)
With -C I don't hear anything with my file, so with -P, but with -R I can hear the sound, but my receiver only tell me about stereo, no 5.1.

Something I really don't understand:

./ac3dec -C /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3 Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2' AC3 Stream 44.1 KHz 256 kbps

Don't gives me any sound, but
./ac3dec -D iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2 /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3 5.1 Mode 44.1 KHz 256 kbps Complete Main Audio Service
Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2'
does (stereo only).

Where could I find info about those?

Oh, just for the info, for playing with mplayer, the abs option is really cool:

mplayer -dvd 1 -ao alsa9 -channels 2 -abs 3
allow me to hear stereo sound with alsa:
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa9: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

And with mplayer -dvd 1 -ao alsa9:iec958 -channels 2 -abs 3 I have also great stereo sound:
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: soundcard set to iec958
alsa9: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

But with
mplayer -dvd 1 -ao alsa9:iec958 -channels 6 -abs 3:
Checking audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit...
AF_pre: af format: 2 bps, 6 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 6ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 6 channels, Signed 16-bit (Little-Endian)
alsa-init: soundcard set to iec958
alsa-init: unable to set channels: Invalid argument Could not open/initialize audio device -> no sound.
Audio: no sound

Any idea?
And yes, the DVD I have tried are 5.1 (also DTS)...

Thank you very much,

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#8 lore raw

At Mon, 10 Mar 2003 22:15:40 +0100,

Quoted 15 lines · Gregoire Favre
Quoted 7 lines · Takashi Iwai

ah, now got the point.

surround51 pcm is for ANALOG 5.1 output. and it's NOT supported on cs46xx yet.

the easiest way to check is to use ac3dec in alsa-utils. run with -C option for AC3-passthru mode.

;-)
With -C I don't hear anything with my file, so with -P, but with -R I can hear the sound, but my receiver only tell me about stereo, no 5.1.

Quoted 7 lines

Something I really don't understand:

./ac3dec -C /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3 Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2' AC3 Stream 44.1 KHz 256 kbps

Don't gives me any sound,

44.1kHz ac3 ? then it likely doesn't work because ac3dec assumes 48k only.

Quoted 5 lines

but
./ac3dec -D iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2 /data/linux/dvb/from_beyond_the_edge_44k_256kbps.ac3 5.1 Mode 44.1 KHz 256 kbps Complete Main Audio Service
Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2'
does (stereo only).

without -C option, it's not sent as a raw data.

Quoted 5 lines

Where could I find info about those?

Oh, just for the info, for playing with mplayer, the abs option is really cool:

Quoted 10 lines

mplayer -dvd 1 -ao alsa9 -channels 2 -abs 3
allow me to hear stereo sound with alsa:
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0

                                       ^^^^^^

the spdif device is hw:0,2.
i guess ther is an option in mplayer to specify the pcm name for ALSA. use "spdif" there instead of "hw:0,2".

ciao,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

#9 lore raw
Quoted 2 lines · Takashi Iwai

44.1kHz ac3 ? then it likely doesn't work because ac3dec assumes 48k only.

OK :-(
So I made another ac3 files recording Pro-7 and using ds.jar:
./ac3dec -6 -R /video2/esa1.ac3
2.0 Mode 48.0 KHz 448 kbps Complete Main Audio Service Using PCM device 'iec958:AES0=0x0,AES1=0x82,AES2=0x0,AES3=0x2'

And I can hear in only in stereo... maybe the -6 option is not the right one?

So I take a DVD with which I am really sure have 5.1, with ds.jar I demux it and with -R I can hear, but only stereo and with the other option I can't???

Quoted 3 lines

the spdif device is hw:0,2.
i guess ther is an option in mplayer to specify the pcm name for ALSA. use "spdif" there instead of "hw:0,2".

Well:

mplayer -vo null -ao alsa9:spdif -abs 1 -channels 2 gives me:

Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  8750.0 kbps (1093.8

kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 720x576 => 1024x576 Mpeg PES [fs]
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: soundcard set to spdif
alsa9: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

And I could hear great stereo sound just before, but mplayer -vo null -ao alsa9:spdif -abs 1 -channels 6 gives me:

MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.00 fps 8750.0 kbps (1093.8 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, 16 bit (0x10), ratio: 56000->576000 (448.0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 720x576 => 1024x576 Mpeg PES [fs]
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit...
AF_pre: af format: 2 bps, 6 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 6ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 6 channels, Signed 16-bit (Little-Endian)
alsa-init: soundcard set to spdif
alsa-init: unable to set channels: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound

And all I can hear is a sound like "cards on a bike"...

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

#10 lore raw
Quoted 11 lines · Gregoire Favre
Quoted 2 lines · Takashi Iwai

44.1kHz ac3 ? then it likely doesn't work because ac3dec assumes 48k only.

OK :-(
So I made another ac3 files recording Pro-7 and using ds.jar:
./ac3dec -6 -R /video2/esa1.ac3
2.0 Mode 48.0 KHz 448 kbps Complete Main Audio Service Using PCM device 'iec958:AES0=0x0,AES1=0x82,AES2=0x0,AES3=0x2'

Quoted 6 lines

And I can hear in only in stereo... maybe the -6 option is not the right one?

So I take a DVD with which I am really sure have 5.1, with ds.jar I demux it and with -R I can hear, but only stereo and with the other option I can't???

The -R option tells ac3dec to decode the stream to a stereo pcm stream, you want to use -C or -P and not include -4/-6

Quoted 7 lines
Quoted 4 lines

the spdif device is hw:0,2.
i guess ther is an option in mplayer to specify the pcm name for ALSA. use "spdif" there instead of "hw:0,2".

Well:

Quoted 7 lines

mplayer -vo null -ao alsa9:spdif -abs 1 -channels 2 gives me:

Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  8750.0 kbps (1093.8

kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52

                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I think you need to pass -ac hwac3 to mplayer to enable ac3 pass-thru

Quoted 29 lines

Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 720x576 => 1024x576 Mpeg PES [fs]
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: soundcard set to spdif
alsa9: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

Quoted 3 lines

And I could hear great stereo sound just before, but mplayer -vo null -ao alsa9:spdif -abs 1 -channels 6 gives me:

I haven't tested the latest cs46xx driver but in rc7 something was wrong with the way it initalized spdif, that prevented my amplififer (denon avr1802) from recognising ac3 streams if input was set to spdif before playing a file. Starting a dvd in xine and after a couple of seconds turning the amplifier input to spdif would usually work fine.

Signature · 9 lines
Ronny V. Vindenes <[email protected]>



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
#11 lore raw
Quoted 2 lines · Ronny V. Vindenes

The -R option tells ac3dec to decode the stream to a stereo pcm stream, you want to use -C or -P and not include -4/-6

;-)
OK, but I don't hear anything with -C or -P (with and without -4/-6), so what do you suggest?

Quoted 1 line

I think you need to pass -ac hwac3 to mplayer to enable ac3 pass-thru

Great, I'll try tonight!!!

Quoted 5 lines

I haven't tested the latest cs46xx driver but in rc7 something was wrong with the way it initalized spdif, that prevented my amplififer (denon avr1802) from recognising ac3 streams if input was set to spdif before playing a file. Starting a dvd in xine and after a couple of seconds turning the amplifier input to spdif would usually work fine.

Thank you very much for the hint, I will try that way!!!

Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en