Lines Matching refs:unitid

123 find_map(struct mixer_build *state, int unitid, int control)  in find_map()  argument
131 if (p->id == unitid && in find_map()
169 static int check_mapped_selector_name(struct mixer_build *state, int unitid, in check_mapped_selector_name() argument
177 if (p->id == unitid && index < p->count) in check_mapped_selector_name()
517 static int parse_audio_unit(struct mixer_build *state, int unitid);
999 struct usb_audio_term *iterm, int unitid, in build_feature_ctl() argument
1018 map = find_map(state, unitid, control); in build_feature_ctl()
1028 cval->id = unitid; in build_feature_ctl()
1084 "Feature %d", unitid); in build_feature_ctl()
1187 static int parse_audio_feature_unit(struct mixer_build *state, int unitid, void *_ftr) in parse_audio_feature_unit() argument
1208 snd_printk(KERN_ERR "usbaudio: unit %u: invalid UAC_FEATURE_UNIT descriptor\n", unitid); in parse_audio_feature_unit()
1246 build_feature_ctl(state, _ftr, ch_bits, i, &iterm, unitid, 0); in parse_audio_feature_unit()
1248 build_feature_ctl(state, _ftr, 0, i, &iterm, unitid, 0); in parse_audio_feature_unit()
1269 build_feature_ctl(state, _ftr, ch_bits, i, &iterm, unitid, ch_read_only); in parse_audio_feature_unit()
1271 build_feature_ctl(state, _ftr, 0, i, &iterm, unitid, in parse_audio_feature_unit()
1293 int in_pin, int in_ch, int unitid, in build_mixer_unit_ctl() argument
1302 map = find_map(state, unitid, 0); in build_mixer_unit_ctl()
1311 cval->id = unitid; in build_mixer_unit_ctl()
1348 static int parse_audio_mixer_unit(struct mixer_build *state, int unitid, void *raw_desc) in parse_audio_mixer_unit() argument
1356 snd_printk(KERN_ERR "invalid MIXER UNIT descriptor %d\n", unitid); in parse_audio_mixer_unit()
1361 snd_printdd(KERN_INFO "MU %d has no bmControls field\n", unitid); in parse_audio_mixer_unit()
1387 unitid, &iterm); in parse_audio_mixer_unit()
1540 static int build_audio_procunit(struct mixer_build *state, int unitid, void *raw_desc, struct procu… in build_audio_procunit() argument
1560 snd_printk(KERN_ERR "invalid %s descriptor (id %d)\n", name, unitid); in build_audio_procunit()
1581 map = find_map(state, unitid, valinfo->control); in build_audio_procunit()
1590 cval->id = unitid; in build_audio_procunit()
1649 static int parse_audio_processing_unit(struct mixer_build *state, int unitid, void *raw_desc) in parse_audio_processing_unit() argument
1651 return build_audio_procunit(state, unitid, raw_desc, procunits, "Processing Unit"); in parse_audio_processing_unit()
1654 static int parse_audio_extension_unit(struct mixer_build *state, int unitid, void *raw_desc) in parse_audio_extension_unit() argument
1658 return build_audio_procunit(state, unitid, raw_desc, extunits, "Extension Unit"); in parse_audio_extension_unit()
1754 static int parse_audio_selector_unit(struct mixer_build *state, int unitid, void *raw_desc) in parse_audio_selector_unit() argument
1765 snd_printk(KERN_ERR "invalid SELECTOR UNIT descriptor %d\n", unitid); in parse_audio_selector_unit()
1777 map = find_map(state, unitid, 0); in parse_audio_selector_unit()
1787 cval->id = unitid; in parse_audio_selector_unit()
1819 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit()
1870 static int parse_audio_unit(struct mixer_build *state, int unitid) in parse_audio_unit() argument
1874 if (test_and_set_bit(unitid, state->unitbitmap)) in parse_audio_unit()
1877 p1 = find_audio_control_unit(state, unitid); in parse_audio_unit()
1879 snd_printk(KERN_ERR "usbaudio: unit %d not found!\n", unitid); in parse_audio_unit()
1888 return parse_audio_mixer_unit(state, unitid, p1); in parse_audio_unit()
1891 return parse_audio_selector_unit(state, unitid, p1); in parse_audio_unit()
1893 return parse_audio_feature_unit(state, unitid, p1); in parse_audio_unit()
1897 return parse_audio_processing_unit(state, unitid, p1); in parse_audio_unit()
1903 return parse_audio_extension_unit(state, unitid, p1); in parse_audio_unit()
1905 return parse_audio_processing_unit(state, unitid, p1); in parse_audio_unit()
1907 snd_printk(KERN_ERR "usbaudio: unit %u: unexpected type 0x%02x\n", unitid, p1[2]); in parse_audio_unit()
1998 void snd_usb_mixer_notify_id(struct usb_mixer_interface *mixer, int unitid) in snd_usb_mixer_notify_id() argument
2002 for (info = mixer->id_elems[unitid]; info; info = info->next_id_elem) in snd_usb_mixer_notify_id()
2008 int unitid, in snd_usb_mixer_dump_cval() argument
2013 snd_iprintf(buffer, " Unit: %i\n", unitid); in snd_usb_mixer_dump_cval()
2031 int unitid; in snd_usb_mixer_proc_read() local
2039 for (unitid = 0; unitid < MAX_ID_ELEMS; unitid++) { in snd_usb_mixer_proc_read()
2040 for (cval = mixer->id_elems[unitid]; cval; in snd_usb_mixer_proc_read()
2042 snd_usb_mixer_dump_cval(buffer, unitid, cval); in snd_usb_mixer_proc_read()
2051 __u8 unitid = (index >> 8) & 0xff; in snd_usb_mixer_interrupt_v2() local
2061 for (info = mixer->id_elems[unitid]; info; info = info->next_id_elem) { in snd_usb_mixer_interrupt_v2()