diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-02-27 03:15:27 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-02-28 11:12:41 +0300 |
commit | 26a9630c72ebac7c564db305a6aee54a8edde70e (patch) | |
tree | f539ba3874ac4145b61858219a13384245f7ac43 /Documentation/sound | |
parent | 5f5e6a3e8b1df52f79122e447855cffbf1710540 (diff) | |
download | linux-26a9630c72ebac7c564db305a6aee54a8edde70e.tar.xz |
ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits
Currently the mask operation on variable conf is just 3 bits so
the switch statement case value of 8 is unreachable dead code.
The function daio_mgr_dao_init can be passed a 4 bit value,
function dao_rsc_init calls it with conf set to:
conf = (desc->msr & 0x7) | (desc->passthru << 3);
so clearly when desc->passthru is set to 1 then conf can be
at least 8.
Fix this by changing the mask to 0xf.
Fixes: 8cc72361481f ("ALSA: SB X-Fi driver merge")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210227001527.1077484-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
0 files changed, 0 insertions, 0 deletions