mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
ALSA: bebob: Fix bit flag quirk constants
The quirking bit-flags are currently set as contiguous integer enum values
and so currently SND_BEBOB_QUIRK_INITIAL_DISCONTINUOUS_DBC is zero and so
he quirking never getting set or tested correctly for this quirk. Fix this
by setting the quirking constants as shifted bit values.
Addresses-Coverity: ("Bitwise-and with zero")
Fixes: 93cd12d6e8
("ALSA: bebob: code refactoring for model-dependent quirks")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210615142048.59900-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
80b9c1be56
commit
36d1a6729b
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ struct snd_bebob_spec {
|
|||
};
|
||||
|
||||
enum snd_bebob_quirk {
|
||||
SND_BEBOB_QUIRK_INITIAL_DISCONTINUOUS_DBC,
|
||||
SND_BEBOB_QUIRK_WRONG_DBC,
|
||||
SND_BEBOB_QUIRK_INITIAL_DISCONTINUOUS_DBC = (1 << 0),
|
||||
SND_BEBOB_QUIRK_WRONG_DBC = (1 << 1),
|
||||
};
|
||||
|
||||
struct snd_bebob {
|
||||
|
|
Loading…
Add table
Reference in a new issue