Lines Matching refs:unitid
101 find_map(const struct usbmix_name_map *p, int unitid, int control) in find_map() argument
107 if (p->id == unitid && in find_map()
154 static int check_mapped_selector_name(struct mixer_build *state, int unitid, in check_mapped_selector_name() argument
163 if (p->id == unitid && index < p->count) { in check_mapped_selector_name()
568 static int parse_audio_unit(struct mixer_build *state, int unitid);
1683 int unitid, int nameid, int readonly_mask) in __build_feature_ctl() argument
1698 map = find_map(imap, unitid, control); in __build_feature_ctl()
1705 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in __build_feature_ctl()
1777 "Feature %d", unitid); in __build_feature_ctl()
1827 snd_usb_mixer_fu_apply_quirk(mixer, cval, unitid, kctl); in __build_feature_ctl()
1853 struct usb_audio_term *iterm, int unitid, in build_feature_ctl() argument
1860 iterm, &state->oterm, unitid, nameid, readonly_mask); in build_feature_ctl()
1864 unsigned int ctl_mask, int control, int unitid, in build_feature_ctl_badd() argument
1868 NULL, NULL, unitid, 0, 0); in build_feature_ctl_badd()
1956 static int parse_clock_source_unit(struct mixer_build *state, int unitid, in parse_clock_source_unit() argument
2013 static int parse_audio_feature_unit(struct mixer_build *state, int unitid, in parse_audio_feature_unit() argument
2043 channels, unitid); in parse_audio_feature_unit()
2097 &iterm, unitid, 0); in parse_audio_feature_unit()
2100 &iterm, unitid, 0); in parse_audio_feature_unit()
2135 &iterm, unitid, ch_read_only); in parse_audio_feature_unit()
2138 &iterm, unitid, in parse_audio_feature_unit()
2185 int unitid, struct usb_audio_term *iterm) in build_mixer_unit_ctl() argument
2192 map = find_map(state->map, unitid, 0); in build_mixer_unit_ctl()
2200 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in build_mixer_unit_ctl()
2236 static int parse_audio_input_terminal(struct mixer_build *state, int unitid, in parse_audio_input_terminal() argument
2269 static int parse_audio_mixer_unit(struct mixer_build *state, int unitid, in parse_audio_mixer_unit() argument
2281 unitid); in parse_audio_mixer_unit()
2318 unitid, &iterm); in parse_audio_mixer_unit()
2491 static int build_audio_procunit(struct mixer_build *state, int unitid, in build_audio_procunit() argument
2540 map = find_map(state->map, unitid, valinfo->control); in build_audio_procunit()
2546 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in build_audio_procunit()
2648 static int parse_audio_processing_unit(struct mixer_build *state, int unitid, in parse_audio_processing_unit() argument
2655 return build_audio_procunit(state, unitid, raw_desc, in parse_audio_processing_unit()
2658 return build_audio_procunit(state, unitid, raw_desc, in parse_audio_processing_unit()
2663 static int parse_audio_extension_unit(struct mixer_build *state, int unitid, in parse_audio_extension_unit() argument
2670 return build_audio_procunit(state, unitid, raw_desc, extunits, true); in parse_audio_extension_unit()
2765 static int parse_audio_selector_unit(struct mixer_build *state, int unitid, in parse_audio_selector_unit() argument
2785 map = find_map(state->map, unitid, 0); in parse_audio_selector_unit()
2792 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in parse_audio_selector_unit()
2828 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit()
2901 static int parse_audio_unit(struct mixer_build *state, int unitid) in parse_audio_unit() argument
2906 if (test_and_set_bit(unitid, state->unitbitmap)) in parse_audio_unit()
2909 p1 = find_audio_control_unit(state, unitid); in parse_audio_unit()
2911 usb_audio_err(state->chip, "unit %d not found!\n", unitid); in parse_audio_unit()
2916 usb_audio_dbg(state->chip, "invalid unit %d\n", unitid); in parse_audio_unit()
2924 return parse_audio_input_terminal(state, unitid, p1); in parse_audio_unit()
2928 return parse_audio_mixer_unit(state, unitid, p1); in parse_audio_unit()
2931 return parse_clock_source_unit(state, unitid, p1); in parse_audio_unit()
2937 return parse_audio_selector_unit(state, unitid, p1); in parse_audio_unit()
2941 return parse_audio_feature_unit(state, unitid, p1); in parse_audio_unit()
2945 return parse_audio_processing_unit(state, unitid, p1); in parse_audio_unit()
2949 return parse_audio_extension_unit(state, unitid, p1); in parse_audio_unit()
2956 unitid, p1[2]); in parse_audio_unit()
3347 static int delegate_notify(struct usb_mixer_interface *mixer, int unitid, in delegate_notify() argument
3353 return unitid; in delegate_notify()
3356 if (map->id == unitid) { in delegate_notify()
3364 return unitid; in delegate_notify()
3367 void snd_usb_mixer_notify_id(struct usb_mixer_interface *mixer, int unitid) in snd_usb_mixer_notify_id() argument
3371 unitid = delegate_notify(mixer, unitid, NULL, NULL); in snd_usb_mixer_notify_id()
3373 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_notify_id()
3415 int unitid; in snd_usb_mixer_proc_read() local
3423 for (unitid = 0; unitid < MAX_ID_ELEMS; unitid++) { in snd_usb_mixer_proc_read()
3424 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_proc_read()
3442 __u8 unitid = (index >> 8) & 0xff; in snd_usb_mixer_interrupt_v2() local
3454 unitid = delegate_notify(mixer, unitid, &control, &channel); in snd_usb_mixer_interrupt_v2()
3456 for_each_mixer_elem(list, mixer, unitid) in snd_usb_mixer_interrupt_v2()
3462 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_interrupt_v2()
3756 int unitid) in snd_usb_mixer_elem_init_std() argument
3759 list->id = unitid; in snd_usb_mixer_elem_init_std()