Home
last modified time | relevance | path

Searched refs:numid (Results 1 - 25 of 41) sorted by relevance

12

/third_party/alsa-lib/src/control/
H A Dcontrol_remap.c90 snd_ctl_numid_t *numid; member
104 static snd_ctl_numid_t *remap_numid_temp(snd_ctl_remap_t *priv, unsigned int numid) in remap_numid_temp() argument
106 priv->numid_temp.numid_child = numid; in remap_numid_temp()
107 priv->numid_temp.numid_app = numid; in remap_numid_temp()
113 snd_ctl_numid_t *numid; in remap_find_numid_app() local
118 numid = priv->numid; in remap_find_numid_app()
119 for (count = priv->numid_items; count > 0; count--, numid++) in remap_find_numid_app()
120 if (numid_app == numid->numid_app) in remap_find_numid_app()
121 return numid; in remap_find_numid_app()
128 snd_ctl_numid_t *numid; remap_numid_new() local
163 snd_ctl_numid_t *numid; remap_find_numid_child() local
211 remap_find_map_numid(snd_ctl_remap_t *priv, unsigned int numid) remap_find_map_numid() argument
243 snd_ctl_numid_t *numid; remap_id_to_child() local
272 snd_ctl_numid_t *numid; remap_id_to_app() local
349 snd_ctl_numid_t *numid; snd_ctl_remap_elem_list() local
648 snd_ctl_numid_t *numid; remap_get_map_numid() local
666 remap_map_elem_tlv(snd_ctl_remap_t *priv, int op_flag, unsigned int numid, unsigned int *tlv, unsigned int tlv_size) remap_map_elem_tlv() argument
714 snd_ctl_remap_elem_tlv(snd_ctl_t *ctl, int op_flag, unsigned int numid, unsigned int *tlv, unsigned int tlv_size) snd_ctl_remap_elem_tlv() argument
842 snd_ctl_numid_t *numid; snd_ctl_remap_read() local
981 snd_ctl_numid_t *numid; new_map() local
[all...]
H A Dctlparse.c119 unsigned int numid, index, device, subdevice; in snd_ctl_ascii_elem_id_get() local
123 numid = snd_ctl_elem_id_get_numid(id); in snd_ctl_ascii_elem_id_get()
125 if (numid > 0) { in snd_ctl_ascii_elem_id_get()
126 snprintf(buf, sizeof(buf), "numid=%u,iface=%s,name='%s'", in snd_ctl_ascii_elem_id_get()
127 numid, iface, snd_ctl_elem_id_get_name(id)); in snd_ctl_ascii_elem_id_get()
159 int c, size, numid; in __snd_ctl_ascii_elem_id_parse() local
169 if (!strncasecmp(str, "numid=", 6)) { in __snd_ctl_ascii_elem_id_parse()
171 numid = atoi(str); in __snd_ctl_ascii_elem_id_parse()
172 if (numid <= 0) { in __snd_ctl_ascii_elem_id_parse()
173 fprintf(stderr, "amixer: Invalid numid in __snd_ctl_ascii_elem_id_parse()
[all...]
H A Dcontrol_ext.c110 ids->numid = offset + 1; /* fake number */ in snd_ctl_ext_elem_list()
120 int numid = id->numid; in get_elem() local
121 if (numid > 0) { in get_elem()
122 ext->callback->elem_list(ext, numid - 1, id); in get_elem()
123 id->numid = numid; in get_elem()
125 id->numid = 0; in get_elem()
328 unsigned int numid, in snd_ctl_ext_elem_tlv()
342 if (numid > in snd_ctl_ext_elem_tlv()
327 snd_ctl_ext_elem_tlv(snd_ctl_t *handle, int op_flag, unsigned int numid, unsigned int *tlv, unsigned int tlv_size) snd_ctl_ext_elem_tlv() argument
[all...]
H A Dcontrol.c114 - The numid (a numeric identifier, assigned when the sound card is
122 An element can be identified either by its short numid or by the full
125 but in practice this is rare). The numid can change on each boot.
126 In case of an USB sound card, the numid can also change when it
127 is reconnected. The short numid is used to reduce the lookup time.
134 (numid, card, name, ...). See #snd_ctl_elem_list_t to learn more about
144 properties. E.g. when the element is addressed using its numid, the
150 values (such as the numid or the name).
427 assert(ctl && info && (info->id.name[0] || info->id.numid)); in snd_ctl_elem_info()
528 * identified by the combination of name and index, or by numid
559 unsigned int numid; snd_ctl_add_integer_elem_set() local
641 unsigned int numid; snd_ctl_add_integer64_elem_set() local
[all...]
H A Dcontrol_hw.c222 unsigned int numid, in snd_ctl_hw_elem_tlv()
242 xtlv->numid = numid; in snd_ctl_hw_elem_tlv()
221 snd_ctl_hw_elem_tlv(snd_ctl_t *handle, int op_flag, unsigned int numid, unsigned int *tlv, unsigned int tlv_size) snd_ctl_hw_elem_tlv() argument
H A Dhcontrol.c465 return c1->id.numid - c2->id.numid; in snd_hctl_compare_fast()
923 return obj->id.numid; in snd_hctl_elem_get_numid()
/kernel/linux/linux-5.10/sound/core/oss/
H A Dmixer_oss.c510 unsigned int numid[SNDRV_MIXER_OSS_ITEM_COUNT]; member
532 unsigned int numid, in snd_mixer_oss_get_volume1_vol()
540 if (numid == ID_UNKNOWN) in snd_mixer_oss_get_volume1_vol()
543 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_vol()
569 unsigned int numid, in snd_mixer_oss_get_volume1_sw()
578 if (numid == ID_UNKNOWN) in snd_mixer_oss_get_volume1_sw()
581 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_sw()
614 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PVOLUME], left, right); in snd_mixer_oss_get_volume1()
616 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GVOLUME], left, right); in snd_mixer_oss_get_volume1()
618 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GLOBA in snd_mixer_oss_get_volume1()
530 snd_mixer_oss_get_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right) snd_mixer_oss_get_volume1_vol() argument
567 snd_mixer_oss_get_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right, int route) snd_mixer_oss_get_volume1_sw() argument
632 snd_mixer_oss_put_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right) snd_mixer_oss_put_volume1_vol() argument
672 snd_mixer_oss_put_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right, int route) snd_mixer_oss_put_volume1_sw() argument
[all...]
/kernel/linux/linux-6.6/sound/core/oss/
H A Dmixer_oss.c510 unsigned int numid[SNDRV_MIXER_OSS_ITEM_COUNT]; member
532 unsigned int numid, in snd_mixer_oss_get_volume1_vol()
540 if (numid == ID_UNKNOWN) in snd_mixer_oss_get_volume1_vol()
543 kctl = snd_ctl_find_numid_locked(card, numid); in snd_mixer_oss_get_volume1_vol()
570 unsigned int numid, in snd_mixer_oss_get_volume1_sw()
579 if (numid == ID_UNKNOWN) in snd_mixer_oss_get_volume1_sw()
582 kctl = snd_ctl_find_numid_locked(card, numid); in snd_mixer_oss_get_volume1_sw()
616 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PVOLUME], left, right); in snd_mixer_oss_get_volume1()
618 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GVOLUME], left, right); in snd_mixer_oss_get_volume1()
620 snd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GLOBA in snd_mixer_oss_get_volume1()
530 snd_mixer_oss_get_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right) snd_mixer_oss_get_volume1_vol() argument
568 snd_mixer_oss_get_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right, int route) snd_mixer_oss_get_volume1_sw() argument
634 snd_mixer_oss_put_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right) snd_mixer_oss_put_volume1_vol() argument
676 snd_mixer_oss_put_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right, int route) snd_mixer_oss_put_volume1_sw() argument
[all...]
/third_party/alsa-utils/alsactl/
H A Dstate.c869 unsigned int numid; in get_comment_items() local
873 numid = atoi(id); in get_comment_items()
874 if (numid > 999999) in get_comment_items()
877 if (numid >= items->count) { in get_comment_items()
878 const char **strings = realloc(items->strings, (numid + 1) * sizeof(char *)); in get_comment_items()
881 for (i = items->count; i < numid + 1; ++i) in get_comment_items()
883 items->count = numid + 1; in get_comment_items()
886 err = snd_config_get_string(item, &items->strings[numid]); in get_comment_items()
1181 unsigned int numid, int doit) in restore_config_value2()
1193 cerror(doit, "bad control.%d.value.%d content", numid, id in restore_config_value2()
1177 restore_config_value2(snd_ctl_t *handle, snd_ctl_elem_info_t *info, snd_ctl_elem_type_t type, snd_config_t *value, snd_ctl_elem_value_t *ctl, int idx, unsigned int numid, int doit) restore_config_value2() argument
1214 unsigned int numid; set_control() local
[all...]
/kernel/linux/linux-5.10/include/sound/
H A Dcontrol.h128 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid);
147 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
159 if (id->numid) { in snd_ctl_get_ioff()
172 dst_id->numid += offset; in snd_ctl_build_ioff()
/kernel/linux/linux-6.6/include/sound/
H A Dcontrol.h143 struct snd_kcontrol *snd_ctl_find_numid_locked(struct snd_card *card, unsigned int numid);
144 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card *card, unsigned int numid);
190 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
202 if (id->numid) { in snd_ctl_get_ioff()
215 dst_id->numid += offset; in snd_ctl_build_ioff()
/device/board/hihope/rk3568/audio_alsa/
H A Dvendor_render.c42 priData->ctrlLeftVolume.numid = SND_NUMID_DACL_PLAYBACK_VOL; in RenderInitImpl()
44 priData->ctrlRightVolume.numid = SND_NUMID_DACR_PLAYBACK_VOL; in RenderInitImpl()
169 elem.numid = SND_NUMID_PLAYBACK_PATH; in RenderStartImpl()
201 elem.numid = SND_NUMID_PLAYBACK_PATH; in RenderStopImpl()
H A Dvendor_capture.c42 priData->ctrlLeftVolume.numid = SND_NUMID_DACL_CAPTURE_VOL; in CaptureInitImpl()
44 priData->ctrlRightVolume.numid = SND_NUMID_DACR_CAPTURE_VOL; in CaptureInitImpl()
159 mixerItem.numid = SND_NUMID_CAPUTRE_MIC_PATH; in CaptureStartImpl()
174 mixerItem.numid = SND_NUMID_CAPUTRE_MIC_PATH; in CaptureStopImpl()
/kernel/linux/linux-6.6/sound/core/
H A Dcontrol.c172 if (ev->id.numid == id->numid) { in snd_ctl_notify()
211 id.numid += ioff; in snd_ctl_notify_one()
296 /* The 'numid' member is decided when calling snd_ctl_add(). */ in snd_ctl_new1()
348 if (kctl->id.numid < card->last_numid + 1 + count && in snd_ctl_remove_numid_conflict()
349 kctl->id.numid + kctl->count > card->last_numid + 1) { in snd_ctl_remove_numid_conflict()
350 card->last_numid = kctl->id.numid + kctl->count - 1; in snd_ctl_remove_numid_conflict()
364 dev_err(card->dev, "unable to allocate new control numid\n"); in snd_ctl_find_hole()
385 * It's for the name lookup, hence the numid is excluded.
404 /* add hash entries to numid an
810 snd_ctl_find_numid_slow(struct snd_card *card, unsigned int numid) snd_ctl_find_numid_slow() argument
835 snd_ctl_find_numid_locked(struct snd_card *card, unsigned int numid) snd_ctl_find_numid_locked() argument
859 snd_ctl_find_numid(struct snd_card *card, unsigned int numid) snd_ctl_find_numid() argument
[all...]
H A Dctljack.c42 /* reset numid; otherwise snd_ctl_find_id() hits this again */ in get_available_index()
43 sid.numid = 0; in get_available_index()
/kernel/linux/linux-5.10/sound/core/
H A Dcontrol.c163 if (ev->id.numid == id->numid) { in snd_ctl_notify()
260 /* The 'numid' member is decided when calling snd_ctl_add(). */ in snd_ctl_new1()
312 if (kctl->id.numid < card->last_numid + 1 + count && in snd_ctl_remove_numid_conflict()
313 kctl->id.numid + kctl->count > card->last_numid + 1) { in snd_ctl_remove_numid_conflict()
314 card->last_numid = kctl->id.numid + kctl->count - 1; in snd_ctl_remove_numid_conflict()
328 dev_err(card->dev, "unable to allocate new control numid\n"); in snd_ctl_find_hole()
377 kcontrol->id.numid = card->last_numid + 1; in __snd_ctl_add_replace()
382 for (idx = 0; idx < count; idx++, id.index++, id.numid++) in __snd_ctl_add_replace()
418 * numid use
640 snd_ctl_find_numid(struct snd_card *card, unsigned int numid) snd_ctl_find_numid() argument
[all...]
H A Dctljack.c42 /* reset numid; otherwise snd_ctl_find_id() hits this again */ in get_available_index()
43 sid.numid = 0; in get_available_index()
/third_party/alsa-lib/test/
H A Duser-ctl-element-set.c520 unsigned int numid; in check_elem_set_props() local
530 numid = snd_ctl_elem_id_get_numid(trial->id); in check_elem_set_props()
540 if (numid > 0) in check_elem_set_props()
541 snd_ctl_elem_info_set_numid(info, numid + i); in check_elem_set_props()
615 unsigned int numid; in check_elems() local
623 numid = snd_ctl_elem_id_get_numid(trial->id); in check_elems()
633 if (numid > 0) in check_elems()
634 snd_ctl_elem_value_set_numid(data, numid + i); in check_elems()
/kernel/linux/linux-5.10/sound/soc/sof/
H A Dcontrol.c330 if (header.numid != scontrol->cmd) { in snd_sof_bytes_ext_put()
332 "error: incorrect numid %d\n", in snd_sof_bytes_ext_put()
333 header.numid); in snd_sof_bytes_ext_put()
424 header.numid = scontrol->cmd; in snd_sof_bytes_ext_volatile_get()
482 header.numid = scontrol->cmd; in snd_sof_bytes_ext_get()
/third_party/alsa-utils/alsaloop/
H A Dcontrol.c48 int c, size, numid; in control_parse_id() local
57 if (!strncasecmp(str, "numid=", 6)) { in control_parse_id()
59 numid = atoi(str); in control_parse_id()
60 if (numid <= 0) { in control_parse_id()
61 logit(LOG_CRIT, "Invalid numid %d\n", numid); in control_parse_id()
/kernel/linux/linux-6.6/drivers/media/pci/solo6x10/
H A Dsolo6x10-g723.c259 u8 ch = value->id.numid - 1; in snd_solo_capture_volume_get()
270 u8 ch = value->id.numid - 1; in snd_solo_capture_volume_put()
/third_party/alsa-lib/include/
H A Dcontrol_external.h69 typedef int (snd_ctl_ext_tlv_rw_t)(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key, int op_flag, unsigned int numid,
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dipc3-control.c399 if (header.numid != cdata->cmd) { in sof_ipc3_bytes_ext_put()
401 header.numid); in sof_ipc3_bytes_ext_put()
498 header.numid = cdata->cmd; in _sof_ipc3_bytes_ext_get()
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A Daudio_helper.c159 id.numid = 0; in gbaudio_remove_controls()
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A Daudio_helper.c158 id.numid = 0; in gbaudio_remove_controls()

Completed in 23 milliseconds

12