ALSA: au88x0: fix .pointer callback
commit3fd43858c7937801134bd70ef1d411e44f9c0c1c
authorJaroslav Kysela <perex@perex.cz>
Thu, 28 May 2009 12:12:27 +0000 (28 14:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2009 06:15:57 +0000 (29 08:15 +0200)
tree01469fbd03e06e4705d1e7cf2537cc76f3d8cea9
parentcd86a536c81e9300d984327517548ca0652eebf9
ALSA: au88x0: fix .pointer callback

Appearently, the used mask in the .pointer callback is invalid. It should
be in period_bytes range. The period_bytes is pow(2), so simple bitwise
operation is used.

Idea was taken from ALSA bug#4455.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0_core.c