Commit 61ed1dca authored by Nickolai Zeldovich's avatar Nickolai Zeldovich Committed by Takashi Iwai

ALSA: au88x0: fix incorrect left shift

vortex_wt_setdsout performs bit-negation on the bit position (wt&0x1f)
rather than on the resulting bitmask.  This code is never actually
invoked (vortex_wt_setdsout is always called with en=1), so this does
not currently cause any problem, and this patch is simply cleanup.
Signed-off-by: default avatarNickolai Zeldovich <nickolai@csail.mit.edu>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent dc30a436
...@@ -58,7 +58,7 @@ static void vortex_wt_setdsout(vortex_t * vortex, u32 wt, int en) ...@@ -58,7 +58,7 @@ static void vortex_wt_setdsout(vortex_t * vortex, u32 wt, int en)
if (en) if (en)
temp |= (1 << (wt & 0x1f)); temp |= (1 << (wt & 0x1f));
else else
temp &= (1 << ~(wt & 0x1f)); temp &= ~(1 << (wt & 0x1f));
hwwrite(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0), temp); hwwrite(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0), temp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment