android_kernel_xiaomi_sm8350/drivers/media/video/saa7134
Alexander E. Patrakov 32d111a9f0 V4L/DVB (6506): saa7134-alsa: Fix mmap support
Trent Piepho wrote:
> I do not think the saa7134-alsa driver supports mmap.  The cx88-alsa driver
> also claimed to support mmap, but it never worked until I fixed it.  It's
> pretty clear that the code in saa7134-alsa was based on the same code as
> cx88-alsa, so it's likely it has the same bug.

You are right. The patch below (based on your cx88 patch, but I don't
really understand it) fixes mmap support in saa7134-alsa for me.
Recording via mmap (arecord -M -f S16_LE -c 2 -r 32000 -D hw:1) didn't
work at all before, works now, tested for at least 20 minutes (but,
unfortunately, with one overrun at least 0.719 ms long).

Signed-off-by: Alexander E. Patrakov <patrakov@ums.usu.ru>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-04 21:41:26 -02:00
..
Kconfig V4L/DVB (6479): use input functions, should depend on INPUT 2007-11-04 21:41:23 -02:00
Makefile V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings 2007-02-21 13:35:11 -02:00
saa6752hs.c V4L/DVB (6321): Remove obsolete VIDIOC_S/G_MPEGCOMP ioctls 2007-10-22 12:01:30 -02:00
saa7134-alsa.c V4L/DVB (6506): saa7134-alsa: Fix mmap support 2007-11-04 21:41:26 -02:00
saa7134-cards.c V4L/DVB (6406): saa7134: fix analog audio in on medion md8800 quadro 2007-11-04 21:41:20 -02:00
saa7134-core.c V4L/DVB (6382): saa7134: fix NULL dereference at suspend time for cards without IR receiver 2007-10-22 12:01:53 -02:00
saa7134-dvb.c V4L/DVB (6252): Adapt drivers to use the newer videobuf modules 2007-10-09 22:14:55 -03:00
saa7134-empress.c V4L/DVB (6321): Remove obsolete VIDIOC_S/G_MPEGCOMP ioctls 2007-10-22 12:01:30 -02:00
saa7134-i2c.c i2c: Remove NOP i2c_algorithm.algo_control() methods 2007-10-13 23:56:32 +02:00
saa7134-input.c V4L/DVB (6379): patch which improves GotView Saa7135 remote control 2007-10-22 12:01:52 -02:00
saa7134-oss.c V4L/DVB (6314): saa7134: Replace list_for_each+list_entry with list_for_each_entry 2007-10-10 13:35:07 -03:00
saa7134-reg.h
saa7134-ts.c V4L/DVB (6271): V4L: Add basic support for suspend/resume for saa7134 2007-10-10 00:02:59 -03:00
saa7134-tvaudio.c V4L/DVB (6330): V4L: saa7134: Fix interaction between tvaudio thread and the freezer 2007-10-22 12:01:41 -02:00
saa7134-vbi.c V4L/DVB (6252): Adapt drivers to use the newer videobuf modules 2007-10-09 22:14:55 -03:00
saa7134-video.c V4L/DVB (6329): Additional Fixes for saa7134 suspend/resume 2007-10-22 12:01:41 -02:00
saa7134.h V4L/DVB (6330): V4L: saa7134: Fix interaction between tvaudio thread and the freezer 2007-10-22 12:01:41 -02:00