diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2021-05-18 17:45:54 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-05-18 12:23:39 +0200 |
commit | a092f000b9b0ac7d0889a6b0674335affea289d3 (patch) | |
tree | 9c96736fcae9816c87d4640b6f1e4f381ecafe7d /sound/firewire/oxfw/oxfw.c | |
parent | 95d0c24d39552d38c14d12893271e723611b85ec (diff) | |
download | lwn-a092f000b9b0ac7d0889a6b0674335affea289d3.tar.gz lwn-a092f000b9b0ac7d0889a6b0674335affea289d3.zip |
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.c')
-rw-r--r-- | sound/firewire/oxfw/oxfw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/oxfw/oxfw.c b/sound/firewire/oxfw/oxfw.c index 9a9c84bc811a..90a66e1312fe 100644 --- a/sound/firewire/oxfw/oxfw.c +++ b/sound/firewire/oxfw/oxfw.c @@ -86,6 +86,9 @@ static int name_card(struct snd_oxfw *oxfw) goto end; be32_to_cpus(&firmware); + if (firmware >> 20 == 0x970) + oxfw->quirks |= SND_OXFW_QUIRK_JUMBO_PAYLOAD; + /* to apply card definitions */ if (oxfw->entry->vendor_id == VENDOR_GRIFFIN || oxfw->entry->vendor_id == VENDOR_LACIE) { |