]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Less restriction for low-latency playback mode
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 Oct 2021 10:36:50 +0000 (12:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Oct 2021 12:32:46 +0000 (14:32 +0200)
commit58d9b0d86bcf96c4420abd9c40d2fe54d8172eea
treea74735bf09aa103b55a1f948c1bf173c03177e30
parenteef582467bec4370ea2f703c32404a88e472ff91
ALSA: usb-audio: Less restriction for low-latency playback mode

The recent support for the improved low-latency playback mode applied
the SNDRV_PCM_INFO_EXPLICIT_SYNC flag for the target streams, but this
was a slight overkill.  The use of the flag above disables effectively
both PCM status and control mmaps, while basically what we want to
track is only about the appl_ptr update.

For less restriction, use a more proper flag,
SNDRV_PCM_INFO_SYNC_APPLPTR instead, which disables only the control
mmap.

Fixes: 0b519cc81b98 ("ALSA: usb-audio: Improved lowlatency playback support")
Link: https://lore.kernel.org/r/20211011103650.10182-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c