From: Takashi Iwai <tiwai@suse.de>
To: Gregoire Favre <greg@ulima.unil.ch>
Cc: Benny Sjostrand <gorm@cucumelo.org>,
James Courtier-Dutton <James@superbug.demon.co.uk>,
alsa-devel@lists.sourceforge.net
Subject: Re: How to put 16bit none audio PCM data stream into a 32bit none audio S/P-DIF transport stream?
Date: Wed, 09 Apr 2003 15:11:49 +0200 [thread overview]
Message-ID: <s5h4r57rf1m.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030409114312.GE14489@ulima.unil.ch>
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]
At Wed, 9 Apr 2003 13:43:12 +0200,
Gregoire Favre wrote:
>
> On Wed, Apr 09, 2003 at 01:09:12PM +0200, Takashi Iwai wrote:
>
> > i can hear ac3 5.1 output over spdif with a terratec xfire 1024
> > without problems. i guess it's not the choice of receiver but the
> > card itself. there are differences between the cards even with the
> > same cs46xx chip depending on the hardware implementation.
>
> Well, I can't speak about ALSA, but for DVB card, it only works with
> receivers that detect the encapsulated stream (a lots of DVB users have
> tested different receivers).
> So I ask if it's really not a problem with some receivers here too...
> When I plug my 5.1 to my standalone DVD player, I have two choice:
>
> * SPDIF/RAW
> * SPDIF/PCM
>
> And if I choose SPDIF/PCM it don't work, but SPDIF/RAW works perfectly.
hmm, then your receiver needs explicitly the non-audio bit.
i guess that my receiver reads the signature bytes for each spdif
frame. i tested 44.1kHZ ac3 from diatons, and it works on mine.
> > yes it should be a driver bug.
> > but note that without the real (problematic) hardware, it's difficult
> > to check (especially if the system of developers do really work :) ...
>
> So I only have the choice to change either the card, or my receier...
before giving up: could you try the attached patch (to cvs version)?
Takashi
[-- Attachment #2: cs46xx-spdif-bits.dif --]
[-- Type: application/octet-stream, Size: 986 bytes --]
Index: alsa-kernel/pci/cs46xx/cs46xx_lib.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/cs46xx/cs46xx_lib.c,v
retrieving revision 1.53
diff -u -r1.53 cs46xx_lib.c
--- alsa-kernel/pci/cs46xx/cs46xx_lib.c 2 Apr 2003 14:33:48 -0000 1.53
+++ alsa-kernel/pci/cs46xx/cs46xx_lib.c 9 Apr 2003 13:08:02 -0000
@@ -2162,12 +2162,11 @@
int change;
down (&chip->spos_mutex);
- val = _wrap_all_bits(((u32)ucontrol->value.iec958.status[0] << 24)) |
- _wrap_all_bits(((u32)ucontrol->value.iec958.status[1] << 16)) |
- _wrap_all_bits( (u32)ucontrol->value.iec958.status[3]) |
+ val = ((u32)_wrap_all_bits(ucontrol->value.iec958.status[0]) << 24) |
+ ((u32)_wrap_all_bits(ucontrol->value.iec958.status[1]) << 16) |
+ (u32)_wrap_all_bits(ucontrol->value.iec958.status[3]) |
/* left and right validity bit */
(1 << 13) | (1 << 12);
-
change = ins->spdif_csuv_stream != val;
ins->spdif_csuv_stream = val;
next prev parent reply other threads:[~2003-04-09 13:11 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 14:02 How to put 16bit none audio PCM data stream into a 32bit none audio S/P-DIF transport stream? Gregoire Favre
2003-04-08 14:28 ` Paul Davis
2003-04-08 15:50 ` Takashi Iwai
2003-04-08 16:42 ` Gregoire Favre
2003-04-08 20:30 ` James Courtier-Dutton
2003-04-08 20:44 ` Gregoire Favre
2003-04-09 10:34 ` James Courtier-Dutton
2003-04-09 11:06 ` Gregoire Favre
2003-04-09 16:50 ` James Courtier-Dutton
2003-04-09 17:58 ` Gregoire Favre
2003-04-10 17:43 ` James Courtier-Dutton
2003-04-08 21:39 ` Benny Sjostrand
2003-04-08 20:55 ` Gregoire Favre
2003-04-08 21:28 ` James Courtier-Dutton
2003-04-08 21:55 ` Gregoire Favre
2003-04-09 6:59 ` Benny Sjostrand
2003-04-09 8:28 ` Gregoire Favre
2003-04-09 11:09 ` Takashi Iwai
2003-04-09 11:43 ` Gregoire Favre
2003-04-09 13:11 ` Takashi Iwai [this message]
2003-04-09 17:58 ` Gregoire Favre
2003-04-10 11:21 ` James Courtier-Dutton
2003-04-10 11:26 ` Gregoire Favre
2003-04-13 11:41 ` Benny Sjostrand
2003-04-13 17:05 ` Gregoire Favre
2003-04-13 18:21 ` Benny Sjostrand
2003-04-13 18:30 ` Gregoire Favre
2003-04-13 23:23 ` Benny Sjostrand
2003-04-14 19:06 ` Gregoire Favre
2003-04-14 22:20 ` Benny Sjostrand
2003-04-14 21:27 ` Gregoire Favre
2003-04-14 23:00 ` Benny Sjostrand
2003-04-14 22:14 ` Gregoire Favre
2003-04-09 21:17 ` Benny Sjostrand
2003-04-09 20:38 ` Gregoire Favre
-- strict thread matches above, loose matches on Subject: below --
2003-04-08 23:33 Peter Heatwole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h4r57rf1m.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=James@superbug.demon.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=gorm@cucumelo.org \
--cc=greg@ulima.unil.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.