|
|
@@ -1167,17 +1167,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;
|
|
|
}
|
|
|
}
|
|
|
|