diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2021-05-18 11:45:54 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-05-18 13:23:39 +0300 |
commit | a092f000b9b0ac7d0889a6b0674335affea289d3 (patch) | |
tree | 9c96736fcae9816c87d4640b6f1e4f381ecafe7d /sound/firewire/oxfw/oxfw.h | |
parent | 95d0c24d39552d38c14d12893271e723611b85ec (diff) | |
download | linux-a092f000b9b0ac7d0889a6b0674335affea289d3.tar.xz |
ALSA: oxfw: code refactoring for jumbo-payload quirk in OXFW970
This commit adds enumeration to describe quirks of OXFW ASICs.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210518084557.102681-9-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/oxfw/oxfw.h')
-rw-r--r-- | sound/firewire/oxfw/oxfw.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/firewire/oxfw/oxfw.h b/sound/firewire/oxfw/oxfw.h index fa2d7f9e2dc3..07aa0d25e100 100644 --- a/sound/firewire/oxfw/oxfw.h +++ b/sound/firewire/oxfw/oxfw.h @@ -32,6 +32,12 @@ #include "../amdtp-am824.h" #include "../cmp.h" +enum snd_oxfw_quirk { + // Postpone transferring packets during handling asynchronous transaction. As a result, + // next isochronous packet includes more events than one packet can include. + SND_OXFW_QUIRK_JUMBO_PAYLOAD = 0x01, +}; + /* This is an arbitrary number for convinience. */ #define SND_OXFW_STREAM_FORMAT_ENTRIES 10 struct snd_oxfw { @@ -43,6 +49,8 @@ struct snd_oxfw { bool registered; struct delayed_work dwork; + // The combination of snd_oxfw_quirk enumeration-constants. + unsigned int quirks; bool wrong_dbs; bool has_output; bool has_input; |