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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:51:40 +0000 (07:51 -0700)
commitf4a8f6c0d3970daa2634475ce43d04310127272d
treec9b3a2d85f4a9ab169786fe62615a96eae532125
parentb7b38eb3f20b2cd88c41f6b05aa2e3f2f1b3b878
ALSA: ice1712: Fix boundary checks in PCM pointer ops

commit 4f8e940095536bc002a81666a4107a581c84e9b9 upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/ice1712/ice1712.c