aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 09:45:05 -0400
committerTakashi Iwai <tiwai@suse.de>2014-05-26 08:25:00 -0400
commit697022391e46614184101c59e46c9671598026db (patch)
tree184134a0b33f09ac49d8301f534dc9e83f61c2a8 /sound/firewire/amdtp.h
parentc8bdf49b9935cdeec917347df00a5434d58e9df0 (diff)
ALSA: fireworks/firewire-lib: Add a quirk for wrong dbs in tx packets
One of Fireworks firmware, named as 'AudioFire9', seems to transmit packets with wrong value of dbs. It's always 0x11 but actual size of data block is different. This commit adds a flag for this quirk and some codes to calculate correct size. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp.h')
-rw-r--r--sound/firewire/amdtp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h
index 1ca1a193bbc0..f334ae51e44f 100644
--- a/sound/firewire/amdtp.h
+++ b/sound/firewire/amdtp.h
@@ -21,6 +21,8 @@
21 * @CIP_EMPTY_WITH_TAG0: Only for in-stream. Empty in-packets have TAG0. 21 * @CIP_EMPTY_WITH_TAG0: Only for in-stream. Empty in-packets have TAG0.
22 * @CIP_DBC_IS_END_EVENT: Only for in-stream. The value of dbc in an in-packet 22 * @CIP_DBC_IS_END_EVENT: Only for in-stream. The value of dbc in an in-packet
23 * corresponds to the end of event in the packet. Out of IEC 61883. 23 * corresponds to the end of event in the packet. Out of IEC 61883.
24 * @CIP_WRONG_DBS: Only for in-stream. The value of dbs is wrong in in-packets.
25 * The value of data_block_quadlets is used instead of reported value.
24 */ 26 */
25enum cip_flags { 27enum cip_flags {
26 CIP_NONBLOCKING = 0x00, 28 CIP_NONBLOCKING = 0x00,
@@ -28,6 +30,7 @@ enum cip_flags {
28 CIP_SYNC_TO_DEVICE = 0x02, 30 CIP_SYNC_TO_DEVICE = 0x02,
29 CIP_EMPTY_WITH_TAG0 = 0x04, 31 CIP_EMPTY_WITH_TAG0 = 0x04,
30 CIP_DBC_IS_END_EVENT = 0x08, 32 CIP_DBC_IS_END_EVENT = 0x08,
33 CIP_WRONG_DBS = 0x10,
31}; 34};
32 35
33/** 36/**