diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2021-05-18 11:45:48 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-05-18 13:21:52 +0300 |
commit | ffe66bbee1526cd7abd4e77eb3ff27527aace8f6 (patch) | |
tree | ec3efc6e03009eb0755c15ebfed86800af54da56 /sound/firewire/motu | |
parent | 5d6fb80a142b5994355ce675c517baba6089d199 (diff) | |
download | linux-ffe66bbee1526cd7abd4e77eb3ff27527aace8f6.tar.xz |
ALSA: firewire-lib/motu: use int type for the value of bitwise OR with enumerator-constant
It brings some inconvenience in practice to use enumerated type for
variable to which bitwise OR with enumerator constant is assigned.
This commit replaces declarations of enumerated type with int type.
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210518084557.102681-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu')
-rw-r--r-- | sound/firewire/motu/motu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/firewire/motu/motu.h b/sound/firewire/motu/motu.h index 3d0236ee6716..92effb6e6c96 100644 --- a/sound/firewire/motu/motu.h +++ b/sound/firewire/motu/motu.h @@ -106,7 +106,8 @@ enum snd_motu_protocol_version { struct snd_motu_spec { const char *const name; enum snd_motu_protocol_version protocol_version; - enum snd_motu_spec_flags flags; + // The combination of snd_motu_spec_flags enumeration-constants. + unsigned int flags; unsigned char tx_fixed_pcm_chunks[3]; unsigned char rx_fixed_pcm_chunks[3]; |