Re: [PATCH] ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits

2021-02-28 Thread Takashi Iwai
On Sat, 27 Feb 2021 01:15:27 +0100, Colin King wrote: > > From: Colin Ian King > > 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_ini

[PATCH] ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits

2021-02-26 Thread Colin King
From: Colin Ian King 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->