]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2016 13:23:08 +0000 (15:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2016 13:26:12 +0000 (15:26 +0200)
commite37ac8b6408cd878aa6e7bbf7a7f6005299061c9
treea6c344f3ae277352df3f06b24a8b6eb6c9f30663
parent4b0da52cf0236140dbf1fa8d3ae15ca6ce885724
ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0_core.c