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()
150 static int check_mapped_selector_name(struct mixer_build *state, int unitid, in check_mapped_selector_name() argument
158 if (p->id == unitid && index < p->count) in check_mapped_selector_name()
563 static int parse_audio_unit(struct mixer_build *state, int unitid);
1578 int unitid, int nameid, int readonly_mask) in __build_feature_ctl() argument
1593 map = find_map(imap, unitid, control); in __build_feature_ctl()
1600 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in __build_feature_ctl()
1672 "Feature %d", unitid); in __build_feature_ctl()
1722 snd_usb_mixer_fu_apply_quirk(mixer, cval, unitid, kctl); in __build_feature_ctl()
1748 struct usb_audio_term *iterm, int unitid, in build_feature_ctl() argument
1755 iterm, &state->oterm, unitid, nameid, readonly_mask); in build_feature_ctl()
1759 unsigned int ctl_mask, int control, int unitid, in build_feature_ctl_badd() argument
1763 NULL, NULL, unitid, 0, 0); in build_feature_ctl_badd()
1838 static int parse_clock_source_unit(struct mixer_build *state, int unitid, in parse_clock_source_unit() argument
1897 static int parse_audio_feature_unit(struct mixer_build *state, int unitid, in parse_audio_feature_unit() argument
1974 &iterm, unitid, 0); in parse_audio_feature_unit()
1977 &iterm, unitid, 0); in parse_audio_feature_unit()
2012 &iterm, unitid, ch_read_only); in parse_audio_feature_unit()
2015 &iterm, unitid, in parse_audio_feature_unit()
2062 int unitid, struct usb_audio_term *iterm) in build_mixer_unit_ctl() argument
2069 map = find_map(state->map, unitid, 0); in build_mixer_unit_ctl()
2077 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in build_mixer_unit_ctl()
2113 static int parse_audio_input_terminal(struct mixer_build *state, int unitid, in parse_audio_input_terminal() argument
2146 static int parse_audio_mixer_unit(struct mixer_build *state, int unitid, in parse_audio_mixer_unit() argument
2158 unitid); in parse_audio_mixer_unit()
2195 unitid, &iterm); in parse_audio_mixer_unit()
2366 static int build_audio_procunit(struct mixer_build *state, int unitid, in build_audio_procunit() argument
2415 map = find_map(state->map, unitid, valinfo->control); in build_audio_procunit()
2421 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in build_audio_procunit()
2523 static int parse_audio_processing_unit(struct mixer_build *state, int unitid, in parse_audio_processing_unit() argument
2530 return build_audio_procunit(state, unitid, raw_desc, in parse_audio_processing_unit()
2533 return build_audio_procunit(state, unitid, raw_desc, in parse_audio_processing_unit()
2538 static int parse_audio_extension_unit(struct mixer_build *state, int unitid, in parse_audio_extension_unit() argument
2545 return build_audio_procunit(state, unitid, raw_desc, extunits, true); in parse_audio_extension_unit()
2638 static int parse_audio_selector_unit(struct mixer_build *state, int unitid, in parse_audio_selector_unit() argument
2658 map = find_map(state->map, unitid, 0); in parse_audio_selector_unit()
2665 snd_usb_mixer_elem_init_std(&cval->head, state->mixer, unitid); in parse_audio_selector_unit()
2702 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit()
2775 static int parse_audio_unit(struct mixer_build *state, int unitid) in parse_audio_unit() argument
2780 if (test_and_set_bit(unitid, state->unitbitmap)) in parse_audio_unit()
2783 p1 = find_audio_control_unit(state, unitid); in parse_audio_unit()
2785 usb_audio_err(state->chip, "unit %d not found!\n", unitid); in parse_audio_unit()
2790 usb_audio_dbg(state->chip, "invalid unit %d\n", unitid); in parse_audio_unit()
2798 return parse_audio_input_terminal(state, unitid, p1); in parse_audio_unit()
2802 return parse_audio_mixer_unit(state, unitid, p1); in parse_audio_unit()
2805 return parse_clock_source_unit(state, unitid, p1); in parse_audio_unit()
2811 return parse_audio_selector_unit(state, unitid, p1); in parse_audio_unit()
2815 return parse_audio_feature_unit(state, unitid, p1); in parse_audio_unit()
2819 return parse_audio_processing_unit(state, unitid, p1); in parse_audio_unit()
2823 return parse_audio_extension_unit(state, unitid, p1); in parse_audio_unit()
2830 unitid, p1[2]); in parse_audio_unit()
3222 static int delegate_notify(struct usb_mixer_interface *mixer, int unitid, in delegate_notify() argument
3228 return unitid; in delegate_notify()
3231 if (map->id == unitid) { in delegate_notify()
3239 return unitid; in delegate_notify()
3242 void snd_usb_mixer_notify_id(struct usb_mixer_interface *mixer, int unitid) in snd_usb_mixer_notify_id() argument
3246 unitid = delegate_notify(mixer, unitid, NULL, NULL); in snd_usb_mixer_notify_id()
3248 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_notify_id()
3281 int unitid; in snd_usb_mixer_proc_read() local
3289 for (unitid = 0; unitid < MAX_ID_ELEMS; unitid++) { in snd_usb_mixer_proc_read()
3290 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_proc_read()
3308 __u8 unitid = (index >> 8) & 0xff; in snd_usb_mixer_interrupt_v2() local
3320 unitid = delegate_notify(mixer, unitid, &control, &channel); in snd_usb_mixer_interrupt_v2()
3322 for_each_mixer_elem(list, mixer, unitid) in snd_usb_mixer_interrupt_v2()
3328 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_interrupt_v2()
3673 int unitid) in snd_usb_mixer_elem_init_std() argument
3676 list->id = unitid; in snd_usb_mixer_elem_init_std()