* Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF
@ 2008-07-30 20:37 Andrew Paprocki
2008-07-31 0:01 ` Rene Herman
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Paprocki @ 2008-07-30 20:37 UTC (permalink / raw)
To: ALSA development
I briefly checked the code for the Delta1010 (ice1712) to see if there
was a way from user space to force the SCMS copy prohibited bits on in
the S/PDIF stream. I see the driver initializes the bits to 0. Is
there already a way to do this from user space, or would I have to
modify the driver to force them on (or use a module parameter)?
Thanks,
-Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF
2008-07-30 20:37 Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF Andrew Paprocki
@ 2008-07-31 0:01 ` Rene Herman
2008-07-31 0:03 ` Andrew Paprocki
0 siblings, 1 reply; 5+ messages in thread
From: Rene Herman @ 2008-07-31 0:01 UTC (permalink / raw)
To: Andrew Paprocki; +Cc: ALSA development
On 30-07-08 22:37, Andrew Paprocki wrote:
> I briefly checked the code for the Delta1010 (ice1712) to see if there
> was a way from user space to force the SCMS copy prohibited bits on in
> the S/PDIF stream. I see the driver initializes the bits to 0. Is
> there already a way to do this from user space, or would I have to
> modify the driver to force them on (or use a module parameter)?
I can't try this myself right now, but try "man iecset".
Rene.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF
2008-07-31 0:01 ` Rene Herman
@ 2008-07-31 0:03 ` Andrew Paprocki
2008-07-31 0:09 ` Rene Herman
2008-07-31 9:59 ` Takashi Iwai
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Paprocki @ 2008-07-31 0:03 UTC (permalink / raw)
To: Rene Herman; +Cc: ALSA development
On Wed, Jul 30, 2008 at 8:01 PM, Rene Herman <rene.herman@keyaccess.nl> wrote:
> On 30-07-08 22:37, Andrew Paprocki wrote:
>
>> I briefly checked the code for the Delta1010 (ice1712) to see if there
>> was a way from user space to force the SCMS copy prohibited bits on in
>> the S/PDIF stream. I see the driver initializes the bits to 0. Is
>> there already a way to do this from user space, or would I have to
>> modify the driver to force them on (or use a module parameter)?
>
> I can't try this myself right now, but try "man iecset".
I actually found this code as well: http://www.cs.tut.fi/~ik/mpegspdif/output.c
It appears you can set the bits when opening the card by using a
device string like this:
sprintf(devstr, "iec958:AES0=0x%x,AES1=0x%x,AES2=0x%x,AES3=0x%x",
s[0], s[1], s[2], s[3]);
I'll look into both methods.
Thanks, -Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF
2008-07-31 0:03 ` Andrew Paprocki
@ 2008-07-31 0:09 ` Rene Herman
2008-07-31 9:59 ` Takashi Iwai
1 sibling, 0 replies; 5+ messages in thread
From: Rene Herman @ 2008-07-31 0:09 UTC (permalink / raw)
To: Andrew Paprocki; +Cc: ALSA development
On 31-07-08 02:03, Andrew Paprocki wrote:
> On Wed, Jul 30, 2008 at 8:01 PM, Rene Herman <rene.herman@keyaccess.nl> wrote:
>> On 30-07-08 22:37, Andrew Paprocki wrote:
>>
>>> I briefly checked the code for the Delta1010 (ice1712) to see if there
>>> was a way from user space to force the SCMS copy prohibited bits on in
>>> the S/PDIF stream. I see the driver initializes the bits to 0. Is
>>> there already a way to do this from user space, or would I have to
>>> modify the driver to force them on (or use a module parameter)?
>> I can't try this myself right now, but try "man iecset".
>
> I actually found this code as well: http://www.cs.tut.fi/~ik/mpegspdif/output.c
>
> It appears you can set the bits when opening the card by using a
> device string like this:
>
> sprintf(devstr, "iec958:AES0=0x%x,AES1=0x%x,AES2=0x%x,AES3=0x%x",
> s[0], s[1], s[2], s[3]);
>
> I'll look into both methods.
Yes, noticed that to (in /usr/share/alsa/pcm/iec958.conf) but couldn't
tell you what the %x were, so "iecset" seemed like better advice...
Rene.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF
2008-07-31 0:03 ` Andrew Paprocki
2008-07-31 0:09 ` Rene Herman
@ 2008-07-31 9:59 ` Takashi Iwai
1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2008-07-31 9:59 UTC (permalink / raw)
To: Andrew Paprocki; +Cc: Rene Herman, ALSA development
At Wed, 30 Jul 2008 20:03:40 -0400,
Andrew Paprocki wrote:
>
> On Wed, Jul 30, 2008 at 8:01 PM, Rene Herman <rene.herman@keyaccess.nl> wrote:
> > On 30-07-08 22:37, Andrew Paprocki wrote:
> >
> >> I briefly checked the code for the Delta1010 (ice1712) to see if there
> >> was a way from user space to force the SCMS copy prohibited bits on in
> >> the S/PDIF stream. I see the driver initializes the bits to 0. Is
> >> there already a way to do this from user space, or would I have to
> >> modify the driver to force them on (or use a module parameter)?
> >
> > I can't try this myself right now, but try "man iecset".
>
> I actually found this code as well: http://www.cs.tut.fi/~ik/mpegspdif/output.c
>
> It appears you can set the bits when opening the card by using a
> device string like this:
>
> sprintf(devstr, "iec958:AES0=0x%x,AES1=0x%x,AES2=0x%x,AES3=0x%x",
> s[0], s[1], s[2], s[3]);
These values are passed to the control element at PCM open time by
alsa-lib hook plugin. So, it may override the default setting by
iecset. You can still change the IEC958 status bits via iecset or
other utility (e.g. envy24control can change them) dynamically.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-31 9:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 20:37 Proper way to set SCMS copy prohibited bits on IEC958 S/PDIF Andrew Paprocki
2008-07-31 0:01 ` Rene Herman
2008-07-31 0:03 ` Andrew Paprocki
2008-07-31 0:09 ` Rene Herman
2008-07-31 9:59 ` Takashi Iwai
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.