]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ice1712: Fix boundary checks in PCM pointer ops
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Apr 2014 14:58:34 +0000 (16:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Apr 2014 14:58:34 +0000 (16:58 +0200)
commiteed07180c69c1b6bf8d4e7ed9b853e0ebc8b9d79
treeac00fa04d730f553a397a1aa93e9b035cd01da47
parent7bd0087cef8753d3ef86f1a38547c2b21c85569c
ALSA: ice1712: Fix boundary checks in PCM pointer ops

PCM pointer callbacks in ice1712 driver check the buffer size boundary
wrongly between bytes and frames.  This leads to PCM core warnings
like:
   snd_pcm_update_hw_ptr0: 105 callbacks suppressed
   ALSA pcm_lib.c:352 BUG: pcmC3D0c:0, pos = 5461, buffer size = 5461, period size = 2730

This patch fixes these checks to be placed after the proper unit
conversions.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/ice1712.c