* [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/
@ 2014-05-31 7:15 Takashi Sakamoto
2014-05-31 7:35 ` Clemens Ladisch
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Sakamoto @ 2014-05-31 7:15 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel@alsa-project.org
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
Hi Clemens,
Would I request you to comment this patch?
I don't touch this label issue with my patchset because there is a bit
possibility to cause a regression. But now, I have a confidence that
this modification is reasonable. In detail, please see an attached patch.
Regards
Takashi Sakamoto
o-takashi@sakamocchi.jp
[-- Attachment #2: 0001-firewire-lib-Use-IEC-61883-6-compliant-labels-for-Ra.patch --]
[-- Type: text/x-diff, Size: 1591 bytes --]
>From 7aa1bd8e3ba3a1217cba14ba3a1be322874b29a2 Mon Sep 17 00:00:00 2001
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Date: Sat, 31 May 2014 15:56:32 +0900
Subject: [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio
data
According to AM824 in IEC 61883-6:2002, 2 bits in LSB of label for Raw Audio
data means Valid Length Code (VBL). Ths value is:
- b00 for 24 bits sample (label is 0x40)
- b01 for 20 bits sample (label is 0x41)
- b10 for 16 bits sample (label is 0x42)
But current firewire-lib apply 24 bits label for both of 16/24 bits samples.
As long as I investigate with BeBoB/Fireworks and OXFW, all of them have a
behaviour to ignore this label, it can generate correct sound even if
firewire-lib gives 0xff for the label. This is also confirmed to IEC 60958
data channel as I described to this comment:
ALSA: bebob: Improve comments about stream format
51fa31d462f32e1ffdf957802dcab1dc20d2f243
So I believe there're no regressions.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
sound/firewire/amdtp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c
index 31dd1cf..f96bf4c 100644
--- a/sound/firewire/amdtp.c
+++ b/sound/firewire/amdtp.c
@@ -418,7 +418,7 @@ static void amdtp_write_s16(struct amdtp_stream *s,
for (i = 0; i < frames; ++i) {
for (c = 0; c < channels; ++c) {
buffer[s->pcm_positions[c]] =
- cpu_to_be32((*src << 8) | 0x40000000);
+ cpu_to_be32((*src << 8) | 0x42000000);
src++;
}
buffer += s->data_block_quadlets;
--
1.8.3.2
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/
2014-05-31 7:15 [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/ Takashi Sakamoto
@ 2014-05-31 7:35 ` Clemens Ladisch
2014-05-31 7:51 ` Takashi Sakamoto
0 siblings, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2014-05-31 7:35 UTC (permalink / raw)
To: Takashi Sakamoto; +Cc: alsa-devel
Takashi Sakamoto wrote:
> I don't touch this label issue with my patchset because there is a bit
> possibility to cause a regression. But now, I have a confidence that
> this modification is reasonable. In detail, please see an attached patch.
> According to AM824 in IEC 61883-6:2002, 2 bits in LSB of label for Raw Audio
> data means Valid Length Code (VBL). Ths value is:
> - b00 for 24 bits sample (label is 0x40)
> - b01 for 20 bits sample (label is 0x41)
> - b10 for 16 bits sample (label is 0x42)
>
> But current firewire-lib apply 24 bits label for both of 16/24 bits samples.
>
> As long as I investigate with BeBoB/Fireworks and OXFW, all of them have a
> behaviour to ignore this label
Same for DICE.
Acked-by: Clemens Ladisch <clemens@ladisch.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/
2014-05-31 7:35 ` Clemens Ladisch
@ 2014-05-31 7:51 ` Takashi Sakamoto
2014-06-01 6:23 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Sakamoto @ 2014-05-31 7:51 UTC (permalink / raw)
To: Clemens Ladisch, Takashi Iwai; +Cc: alsa-devel
(May 31 2014 16:35), Clemens Ladisch wrote:
> Takashi Sakamoto wrote:
>> I don't touch this label issue with my patchset because there is a bit
>> possibility to cause a regression. But now, I have a confidence that
>> this modification is reasonable. In detail, please see an attached patch.
>
>> According to AM824 in IEC 61883-6:2002, 2 bits in LSB of label for Raw Audio
>> data means Valid Length Code (VBL). Ths value is:
>> - b00 for 24 bits sample (label is 0x40)
>> - b01 for 20 bits sample (label is 0x41)
>> - b10 for 16 bits sample (label is 0x42)
>>
>> But current firewire-lib apply 24 bits label for both of 16/24 bits samples.
>>
>> As long as I investigate with BeBoB/Fireworks and OXFW, all of them have a
>> behaviour to ignore this label
>
> Same for DICE.
It's nice information for Dice developers.
> Acked-by: Clemens Ladisch <clemens@ladisch.de>
Thanks.
Iwai-san, could you please apply this patch to for-next?
Regards
Takashi Sakamoto
o-takashi@sakamocchi.jp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/
2014-05-31 7:51 ` Takashi Sakamoto
@ 2014-06-01 6:23 ` Takashi Iwai
2014-06-01 15:07 ` Takashi Sakamoto
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2014-06-01 6:23 UTC (permalink / raw)
To: Takashi Sakamoto; +Cc: alsa-devel, Clemens Ladisch
At Sat, 31 May 2014 16:51:52 +0900,
Takashi Sakamoto wrote:
>
> (May 31 2014 16:35), Clemens Ladisch wrote:
> > Takashi Sakamoto wrote:
> >> I don't touch this label issue with my patchset because there is a bit
> >> possibility to cause a regression. But now, I have a confidence that
> >> this modification is reasonable. In detail, please see an attached patch.
> >
> >> According to AM824 in IEC 61883-6:2002, 2 bits in LSB of label for Raw Audio
> >> data means Valid Length Code (VBL). Ths value is:
> >> - b00 for 24 bits sample (label is 0x40)
> >> - b01 for 20 bits sample (label is 0x41)
> >> - b10 for 16 bits sample (label is 0x42)
> >>
> >> But current firewire-lib apply 24 bits label for both of 16/24 bits samples.
> >>
> >> As long as I investigate with BeBoB/Fireworks and OXFW, all of them have a
> >> behaviour to ignore this label
> >
> > Same for DICE.
>
> It's nice information for Dice developers.
>
> > Acked-by: Clemens Ladisch <clemens@ladisch.de>
>
> Thanks.
>
> Iwai-san, could you please apply this patch to for-next?
If you'd like it to be merged, just resend without RFC tag (and with
ack tags).
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/
2014-06-01 6:23 ` Takashi Iwai
@ 2014-06-01 15:07 ` Takashi Sakamoto
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Sakamoto @ 2014-06-01 15:07 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel, Clemens Ladisch
(Jun 1 2014 15:23), Takashi Iwai wrote:
> If you'd like it to be merged, just resend without RFC tag (and with
> ack tags).
I'm OK. Thanks
Takashi Sakamoto
o-takashi@sakamocchi.jp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-01 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-31 7:15 [RFC] [PATCH] firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio/ Takashi Sakamoto
2014-05-31 7:35 ` Clemens Ladisch
2014-05-31 7:51 ` Takashi Sakamoto
2014-06-01 6:23 ` Takashi Iwai
2014-06-01 15:07 ` Takashi Sakamoto
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.