ALSA: ice1712: Fix boundary checks in PCM pointer ops
Takashi Iwai authored
commit 4f8e9400

 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: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
f4a8f6c0
Name Last commit Last update
..
aoa ALSA: aoa: Convert onyx and tas codec drivers to module_i2c_driver
arm ALSA: pxa2xx: Fix unlocked snd_pcm_stop() call
atmel dmaengine/dw_dmac: Fix dw_dmac user drivers to adapt to slave_config changes
core ALSA: compress: Pass through return value of open ops callback
drivers ALSA: pcsp: Fix the order of input device unregistration
firewire Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
i2c ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info()
isa ALSA: msnd: Avoid duplicated driver name
mips ALSA: Convert mips directory to module_platform_driver
oss sound: Fix make allmodconfig on MIPS correctly
parisc ALSA: sound/parisc: Move dereference after NULL test
pci ALSA: ice1712: Fix boundary checks in PCM pointer ops
pcmcia ALSA: module_param: make bool parameters really bool
ppc Merge branch 'topic/misc' into for-linus
sh ALSA: module_param: make bool parameters really bool
soc ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLE
sparc ALSA: module_param: make bool parameters really bool
spi ALSA: Convert at73c213 to module_spi_driver
synth sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed
usb ALSA: 6fire: make buffers DMA-able (midi)
Kconfig um: switch to use of drivers/Kconfig
Makefile ALSA: add LaCie FireWire Speakers/Griffin FireWave Surround driver
ac97_bus.c sound: Fixed line limit issue in sound/ac97_bus.c
last.c ALSA: workaround: change the timing of alsa_sound_last_init()
sound_core.c switch device_get_devnode() and ->devnode() to umode_t *
sound_firmware.c sound: read i_size with i_size_read()