Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53451b6

Browse files
committed
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: d5f871f ("ALSA: usb-audio: Improved lowlatency playback support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 6d27788 commit 53451b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static int snd_usb_pcm_open(struct snd_pcm_substream *substream)
11021102
/* need an explicit sync to catch applptr update in low-latency mode */
11031103
if (direction == SNDRV_PCM_STREAM_PLAYBACK &&
11041104
as->chip->lowlatency)
1105-
runtime->hw.info |= SNDRV_PCM_INFO_EXPLICIT_SYNC;
1105+
runtime->hw.info |= SNDRV_PCM_INFO_SYNC_APPLPTR;
11061106
runtime->private_data = subs;
11071107
subs->pcm_substream = substream;
11081108
/* runtime PM is also done there */

0 commit comments

Comments
 (0)