ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2016 13:23:08 +0000 (15:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 15:42:22 +0000 (08:42 -0700)
commit7d4e6bea615ad52878775104f1103d7c63697c2d
treefaddbc7160bb1fd888fd37f37e3bf2b15894a1a8
parent15cda2ef2aae50f1b00822dbc8f110e46b87e668
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/au88x0/au88x0_core.c