summaryrefslogtreecommitdiffstats
path: root/sound/firewire/bebob/bebob.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2021-06-11 12:50:03 +0900
committerTakashi Iwai <tiwai@suse.de>2021-06-11 10:30:16 +0200
commit93cd12d6e88a4c6f9204633ff07781cde741e89e (patch)
treea644f20b83b2adf7928d18101ca6b53fc9a4833b /sound/firewire/bebob/bebob.h
parent82fb3bf92c0fb6cd471295ba9c774a47c7d64c8c (diff)
downloadlinux-93cd12d6e88a4c6f9204633ff07781cde741e89e.tar.bz2
ALSA: bebob: code refactoring for model-dependent quirks
This commit adds enumeration and structure member as code refactoring regarding to model-dependent quirks. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20210611035003.26852-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/bebob/bebob.h')
-rw-r--r--sound/firewire/bebob/bebob.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/firewire/bebob/bebob.h b/sound/firewire/bebob/bebob.h
index fc2b9b36159c..dff8e25c6ca3 100644
--- a/sound/firewire/bebob/bebob.h
+++ b/sound/firewire/bebob/bebob.h
@@ -75,6 +75,11 @@ struct snd_bebob_spec {
const struct snd_bebob_meter_spec *meter;
};
+enum snd_bebob_quirk {
+ SND_BEBOB_QUIRK_INITIAL_DISCONTINUOUS_DBC,
+ SND_BEBOB_QUIRK_WRONG_DBC,
+};
+
struct snd_bebob {
struct snd_card *card;
struct fw_unit *unit;
@@ -84,6 +89,7 @@ struct snd_bebob {
spinlock_t lock;
const struct snd_bebob_spec *spec;
+ unsigned int quirks; // Combination of snd_bebob_quirk enumerations.
unsigned int midi_input_ports;
unsigned int midi_output_ports;
@@ -109,8 +115,6 @@ struct snd_bebob {
/* for M-Audio special devices */
void *maudio_special_quirk;
- bool discontinuity_quirk;
-
struct amdtp_domain domain;
};