ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2016 13:23:08 +0000 (15:23 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:37:17 +0000 (22:37 +0100)
commita620c002d0a7c101f8e5790a6f57aa62209693f4
treedcbcced871fd3369d86510c39f50ab929cad38ff
parent16e7b8c95fa6f8e57d9ab73597e31e3396f0c00d
ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()

commit 62db7152c924e4c060e42b34a69cd39658e8a0dc upstream.

vortex_wtdma_bufshift() function does calculate the page index
wrongly, first masking then shift, which always results in zero.
The proper computation is to first shift, then mask.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/pci/au88x0/au88x0_core.c