diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-08-29 09:38:30 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-08-29 09:41:27 +0200 |
commit | 4801bee7d5a36c199b734a28cde5259183aff822 (patch) | |
tree | 106e13cacf6d6263316ff0147734465037e90cd8 /sound/usb/usbaudio.h | |
parent | ALSA: usb-audio: Work around for XRUN with low latency playback (diff) | |
download | linux-4801bee7d5a36c199b734a28cde5259183aff822.tar.xz linux-4801bee7d5a36c199b734a28cde5259183aff822.zip |
ALSA: usb-audio: Add lowlatency module option
For making user to switch back to the old playback mode, this patch
adds a new module option 'lowlatency' to snd-usb-audio driver.
When user face a regression due to the recent low-latency playback
support, they can test easily by passing lowlatency=0 option without
rebuilding the kernel.
Fixes: 307cc9baac5c ("ALSA: usb-audio: Reduce latency at playback start, take#2")
Link: https://lore.kernel.org/r/20210829073830.22686-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/usbaudio.h')
-rw-r--r-- | sound/usb/usbaudio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index 538831cbd925..8b70c9ea91b9 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h @@ -57,6 +57,7 @@ struct snd_usb_audio { bool generic_implicit_fb; /* from the 'implicit_fb' module param */ bool autoclock; /* from the 'autoclock' module param */ + bool lowlatency; /* from the 'lowlatency' module param */ struct usb_host_interface *ctrl_intf; /* the audio control interface */ struct media_device *media_dev; struct media_intf_devnode *ctl_intf_media_devnode; |