@@ -68,6 +68,7 @@ static int pid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 };
6868static int device_setup [SNDRV_CARDS ]; /* device parameter for this card */
6969static bool ignore_ctl_error ;
7070static bool autoclock = true;
71+ static bool lowlatency = true;
7172static char * quirk_alias [SNDRV_CARDS ];
7273static char * delayed_register [SNDRV_CARDS ];
7374static bool implicit_fb [SNDRV_CARDS ];
@@ -93,6 +94,8 @@ MODULE_PARM_DESC(ignore_ctl_error,
9394 "Ignore errors from USB controller for mixer interfaces." );
9495module_param (autoclock , bool , 0444 );
9596MODULE_PARM_DESC (autoclock , "Enable auto-clock selection for UAC2 devices (default: yes)." );
97+ module_param (lowlatency , bool , 0444 );
98+ MODULE_PARM_DESC (lowlatency , "Enable low latency playback (default: yes)." );
9699module_param_array (quirk_alias , charp , NULL , 0444 );
97100MODULE_PARM_DESC (quirk_alias , "Quirk aliases, e.g. 0123abcd:5678beef." );
98101module_param_array (delayed_register , charp , NULL , 0444 );
@@ -623,6 +626,7 @@ static int snd_usb_audio_create(struct usb_interface *intf,
623626 chip -> setup = device_setup [idx ];
624627 chip -> generic_implicit_fb = implicit_fb [idx ];
625628 chip -> autoclock = autoclock ;
629+ chip -> lowlatency = lowlatency ;
626630 atomic_set (& chip -> active , 1 ); /* avoid autopm during probing */
627631 atomic_set (& chip -> usage_count , 0 );
628632 atomic_set (& chip -> shutdown , 0 );
0 commit comments