diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-22 16:41:56 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-22 16:42:03 +0300 |
commit | 744f51e863462192727f9118642563d46fa81393 (patch) | |
tree | 43e87ed54550a523396283f126d81907e5c4e524 /sound/usb/mixer_quirks.c | |
parent | 051c78af14fcd74a22b5af45548ad9d588247cc7 (diff) | |
parent | b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a (diff) | |
download | linux-744f51e863462192727f9118642563d46fa81393.tar.xz |
Merge branch 'topic/usb-validation' into for-next
Pull USB validation patches. It's based on the latest 5.3 development
branch, so we shall catch up the whole things.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer_quirks.c')
-rw-r--r-- | sound/usb/mixer_quirks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 70805c15b0b5..39e27ae6c597 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -1156,17 +1156,17 @@ void snd_emuusb_set_samplerate(struct snd_usb_audio *chip, { struct usb_mixer_interface *mixer; struct usb_mixer_elem_info *cval; - int unitid = 12; /* SamleRate ExtensionUnit ID */ + int unitid = 12; /* SampleRate ExtensionUnit ID */ list_for_each_entry(mixer, &chip->mixer_list, list) { - cval = mixer_elem_list_to_info(mixer->id_elems[unitid]); - if (cval) { + if (mixer->id_elems[unitid]) { + cval = mixer_elem_list_to_info(mixer->id_elems[unitid]); snd_usb_mixer_set_ctl_value(cval, UAC_SET_CUR, cval->control << 8, samplerate_id); snd_usb_mixer_notify_id(mixer, unitid); + break; } - break; } } |