diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-22 15:41:56 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-22 15:42:03 +0200 |
commit | 744f51e863462192727f9118642563d46fa81393 (patch) | |
tree | 43e87ed54550a523396283f126d81907e5c4e524 /sound/usb/mixer_quirks.c | |
parent | ALSA: hda/realtek - Blacklist PC beep for Lenovo ThinkCentre M73/93 (diff) | |
parent | ALSA: usb-audio: Remove superfluous bLength checks (diff) | |
download | linux-744f51e863462192727f9118642563d46fa81393.tar.xz linux-744f51e863462192727f9118642563d46fa81393.zip |
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; } } |