All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: SPDIF and cs46xx ?
@ 2003-03-16 22:56 Peter Heatwole
  2003-03-17  0:10 ` Benny Sjostrand
  0 siblings, 1 reply; 33+ messages in thread
From: Peter Heatwole @ 2003-03-16 22:56 UTC (permalink / raw)
  To: Benny Sjostrand; +Cc: alsa-devel

Benny Sjostrand wrote:
> - The magic status bit's, I'm not sure if the current implementation in
> the cs46xx that set's the IEC958 is correct. I have not found any way to
> verify

   If I may ask, what are the "magic status bits"?  Are they the same as the
AES bits?  Speaking of which, what's the use of the AES# bits?  I looked on the
internet but couldn't find what these bits mean.  

If AES# aren't the same as the magic bits, is there anything in there I can try
playing with?

(don't think you need these, but hey)
xine with dolby passthru: iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
ac3dec with -C:   iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
ac3dec with -P:   iec958:AES0=0x87,AES1=0x0,AES2=0x0,AES3=0x0


   On a sidenote, ac3dec never makes the clicking noise; only xine does that.
But, I noticed that ac3dec always makes a click when I first start playing.
Could this be a result of the different AES# configuration?

   BTW, I am using a Cambridge Soundworks DTT2500 digital receiver.  Another
user suggested switching to digital input _after_ starting the stream.  Well, I
can't select digital or analog, but I can select analog or auto, so I leave it
on auto.
   This done, I tried playing a stream in xine _before_ turning the receiver on,
I don't get the clicking sound.  The only sounds I hear then are a click/hiss
when I change chapters on the DVD.

   Question: does the first bit of the stream have to "setup" the receiver to
receive an AC3 stream?  Some sort of "header"?


-- Peter Heatwole
"Murphy was just a well known pessimist."



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: SPDIF and cs46xx ?
@ 2003-03-16 23:11 Peter Heatwole
  0 siblings, 0 replies; 33+ messages in thread
From: Peter Heatwole @ 2003-03-16 23:11 UTC (permalink / raw)
  To: Benny Sjostrand; +Cc: alsa-devel

Peter Heatwole wrote:
>    On a sidenote, ac3dec never makes the clicking noise; only xine does that.
> But, I noticed that ac3dec always makes a click when I first start playing.
> Could this be a result of the different AES# configuration?

   Never mind that question.  I just noticed that it's only during the DVD menu
("Air Force One" DVD) that I hear the clicking.  Once I get into the movie only
changing chapters clicks/hisses and is quiet.


-- Peter Heatwole
"Murphy was just a well known pessimist."



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: SPDIF and cs46xx ?
@ 2003-03-16 21:31 Peter Heatwole
  2003-03-16 23:23 ` Benny Sjostrand
  0 siblings, 1 reply; 33+ messages in thread
From: Peter Heatwole @ 2003-03-16 21:31 UTC (permalink / raw)
  To: alsa-devel

Hello,

   I have also been attempting to use Dolby Digital passthru with my Turtle
Beach Santa Cruz.  Unfortunately I have not yet been successful.
   For these tests I am using todays (March 16) CVS of alsa-kernel, alsa-driver
and alsa-lib.  For xine I'm using xine-lib-1-beta8, compiled with todays ALSA
CVS.

   In my tests I have had two different results:

1) No sound
2) A clicking sound (described by another user as "cards in a bike")  For the
   times I get this sound, it's normally about 4-6 beats-per-second (or so), but
   if I unmute "IEC958 Input" it nearly doubles (about 8-12 beats-per-second).

------------------

   Here's the relevant console output from xine when I start playing a movie:

liba52:No accelerated IMDCT transform found
audio_alsa_out: Audio Device name = iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
audio_alsa_out: Number of channels = 2
audio_alsa_out:open pause_resume=0
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 2
rate         : 48000
exact rate   : 48000 (48000/1)
msbits       : 16
buffer_size  : 16384
period_size  : 512
period_time  : 10666
tick_time    : 10000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 512
xfer_align   : 1
start_threshold  : 512
stop_threshold   : 16384
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
start_mode: DATA
xrun_mode: STOP
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 512
xfer_align: 1
silence_threshold: 0
silence_size: 0
boundary: 1073741824
metronom: fixing sound card drift by -1544 pts
audio_alsa_out:write:BAD STATE, state = 1
audio_alsa_out:write:BAD STATE2, state = 1, going to try XRUN
audio_alsa_out:write:BAD STATE, state = 1
audio_alsa_out:write:BAD STATE2, state = 1, going to try XRUN

------------------

   Here's my syslog output when I start and stop a AC3 stream (with either xine
or ac3dec [-C/-P]):

Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:
1430: open raw iec958 channel
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:226: cs46xx_dsp_proc_free_scb_desc: freeing PCMSerialInput_II
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:226: cs46xx_dsp_proc_free_scb_desc: freeing AsynchFGTxSCB
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:290: dsp_spos: creating SCB <AsynchFGTxSCB>
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:1178: IEC958 pass through
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:1243: dsp_spos: creating SRC "SrcTask_SCB0"
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:597: dsp_spos: setting SrcTask_SCB0 rate to 48000
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:290: dsp_spos: creating SCB <SrcTask_SCB0>
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:1268: dsp_spos: creating PCM "PCMReader_SCB0" (5)
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:290: dsp_spos: creating SCB <PCMReader_SCB0>
Mar 16 12:54:17 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:
1001: period_size (2048), periods (32) buffer_size(65536)
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:
1446: close raw iec958 channel
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:226: cs46xx_dsp_proc_free_scb_desc: freeing PCMReader_SCB0
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:226: cs46xx_dsp_proc_free_scb_desc: freeing SrcTask_SCB0
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:226: cs46xx_dsp_proc_free_scb_desc: freeing AsynchFGTxSCB
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:290: dsp_spos: creating SCB <AsynchFGTxSCB>
Mar 16 12:54:27 darkstar kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_
lib.c:290: dsp_spos: creating SCB <PCMSerialInput_II>

------------------

   TIA for any advice or help with this.  And thanks for all your great work,
Benny.

-- Peter Heatwole
"Murphy was just a well known pessimist."



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 33+ messages in thread
[parent not found: <20030313132536.GB11388@ulima.unil.ch>]
* SPDIF and cs46xx ?
@ 2003-03-08 14:41 Gregoire Favre
  2003-03-08 17:28 ` Benny Sjostrand
  0 siblings, 1 reply; 33+ messages in thread
From: Gregoire Favre @ 2003-03-08 14:41 UTC (permalink / raw)
  To: alsa-devel

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:greg@ulima.unil.ch


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2003-04-07 16:45 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-16 22:56 SPDIF and cs46xx ? Peter Heatwole
2003-03-17  0:10 ` Benny Sjostrand
  -- strict thread matches above, loose matches on Subject: below --
2003-03-16 23:11 Peter Heatwole
2003-03-16 21:31 Peter Heatwole
2003-03-16 23:23 ` Benny Sjostrand
2003-03-29 14:20   ` Gregoire Favre
2003-03-30  1:11     ` Benny Sjostrand
2003-03-30 14:46       ` Gregoire Favre
2003-03-30 19:35         ` Benny Sjostrand
2003-03-30 18:42           ` Gregoire Favre
     [not found]           ` <20030331115057.GB3187@wotan.suse.de>
2003-03-31 13:58             ` Benny Sjostrand
     [not found]         ` <20030331114752.GA3187@wotan.suse.de>
2003-04-04 11:46           ` Gregoire Favre
2003-04-04 18:01             ` Benny Sjostrand
2003-04-04 17:25               ` Gregoire Favre
2003-04-05 18:46                 ` Benny Sjostrand
2003-04-05 18:29                   ` Gregoire Favre
2003-04-05 21:48                     ` Benny Sjostrand
     [not found]             ` <20030407091749.GA7661@wotan.suse.de>
2003-04-07 16:45               ` Gregoire Favre
     [not found] <20030313132536.GB11388@ulima.unil.ch>
2003-03-14 10:55 ` Ronny V. Vindenes
2003-03-14 21:29   ` Benny Sjostrand
2003-03-14 22:04     ` Christian Esken
2003-03-08 14:41 Gregoire Favre
2003-03-08 17:28 ` Benny Sjostrand
2003-03-08 17:52   ` Gregoire Favre
2003-03-10 14:42     ` Takashi Iwai
2003-03-10 14:46       ` Gregoire Favre
2003-03-10 14:52         ` Takashi Iwai
2003-03-10 15:34           ` Gregoire Favre
2003-03-10 21:15           ` Gregoire Favre
2003-03-11 16:54             ` Takashi Iwai
2003-03-11 23:35               ` Gregoire Favre
2003-03-12 11:08                 ` Ronny V. Vindenes
2003-03-12 11:50                   ` Gregoire Favre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.