kctl              369 drivers/media/pci/solo6x10/solo6x10-g723.c 	struct snd_kcontrol_new kctl;
kctl              397 drivers/media/pci/solo6x10/solo6x10-g723.c 	kctl = snd_solo_capture_volume;
kctl              398 drivers/media/pci/solo6x10/solo6x10-g723.c 	kctl.count = solo_dev->nr_chans;
kctl              400 drivers/media/pci/solo6x10/solo6x10-g723.c 	ret = snd_ctl_add(card, snd_ctl_new1(&kctl, solo_dev));
kctl              665 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_kcontrol *kctl;
kctl              678 drivers/media/usb/em28xx/em28xx-audio.c 	kctl = snd_ctl_new1(&tmp, dev);
kctl              679 drivers/media/usb/em28xx/em28xx-audio.c 	err = snd_ctl_add(card, kctl);
kctl              696 drivers/media/usb/em28xx/em28xx-audio.c 	kctl = snd_ctl_new1(&tmp, dev);
kctl              697 drivers/media/usb/em28xx/em28xx-audio.c 	err = snd_ctl_add(card, kctl);
kctl              648 drivers/staging/greybus/audio_topology.c 					 struct snd_kcontrol_new *kctl,
kctl              671 drivers/staging/greybus/audio_topology.c 	*kctl = (struct snd_kcontrol_new)
kctl              678 drivers/staging/greybus/audio_topology.c 					struct snd_kcontrol_new *kctl,
kctl              688 drivers/staging/greybus/audio_topology.c 			ret = gbaudio_tplg_create_enum_kctl(gb, kctl, ctl);
kctl              701 drivers/staging/greybus/audio_topology.c 			*kctl = (struct snd_kcontrol_new)
kctl              857 drivers/staging/greybus/audio_topology.c 					struct snd_kcontrol_new *kctl,
kctl              880 drivers/staging/greybus/audio_topology.c 	*kctl = (struct snd_kcontrol_new)
kctl              887 drivers/staging/greybus/audio_topology.c 					 struct snd_kcontrol_new *kctl,
kctl              901 drivers/staging/greybus/audio_topology.c 	*kctl = (struct snd_kcontrol_new)
kctl              908 drivers/staging/greybus/audio_topology.c 					struct snd_kcontrol_new *kctl,
kctl              917 drivers/staging/greybus/audio_topology.c 			ret = gbaudio_tplg_create_enum_ctl(gb, kctl, ctl);
kctl              920 drivers/staging/greybus/audio_topology.c 			ret = gbaudio_tplg_create_mixer_ctl(gb, kctl, ctl);
kctl              135 include/sound/control.h static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
kctl              137 include/sound/control.h 	unsigned int ioff = id->numid - kctl->id.numid;
kctl              138 include/sound/control.h 	return array_index_nospec(ioff, kctl->count);
kctl              141 include/sound/control.h static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
kctl              143 include/sound/control.h 	unsigned int ioff = id->index - kctl->id.index;
kctl              144 include/sound/control.h 	return array_index_nospec(ioff, kctl->count);
kctl              147 include/sound/control.h static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
kctl              150 include/sound/control.h 		return snd_ctl_get_ioffnum(kctl, id);
kctl              152 include/sound/control.h 		return snd_ctl_get_ioffidx(kctl, id);
kctl              234 include/sound/control.h int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl,
kctl              237 include/sound/control.h void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only);
kctl              238 include/sound/control.h #define snd_ctl_sync_vmaster_hook(kctl)	snd_ctl_sync_vmaster(kctl, true)
kctl              239 include/sound/control.h int snd_ctl_apply_vmaster_slaves(struct snd_kcontrol *kctl,
kctl              251 include/sound/control.h 			  struct snd_kcontrol *kctl, bool status);
kctl             1370 include/sound/pcm.h 	struct snd_kcontrol *kctl;
kctl              196 sound/core/control.c static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count,
kctl              204 sound/core/control.c 	*kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL);
kctl              205 sound/core/control.c 	if (!*kctl)
kctl              209 sound/core/control.c 		(*kctl)->vd[idx].access = access;
kctl              210 sound/core/control.c 		(*kctl)->vd[idx].owner = file;
kctl              212 sound/core/control.c 	(*kctl)->count = count;
kctl              231 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              253 sound/core/control.c 	err = snd_ctl_new(&kctl, count, access, NULL);
kctl              258 sound/core/control.c 	kctl->id.iface = ncontrol->iface;
kctl              259 sound/core/control.c 	kctl->id.device = ncontrol->device;
kctl              260 sound/core/control.c 	kctl->id.subdevice = ncontrol->subdevice;
kctl              262 sound/core/control.c 		strlcpy(kctl->id.name, ncontrol->name, sizeof(kctl->id.name));
kctl              263 sound/core/control.c 		if (strcmp(ncontrol->name, kctl->id.name) != 0)
kctl              265 sound/core/control.c 				ncontrol->name, kctl->id.name);
kctl              267 sound/core/control.c 	kctl->id.index = ncontrol->index;
kctl              269 sound/core/control.c 	kctl->info = ncontrol->info;
kctl              270 sound/core/control.c 	kctl->get = ncontrol->get;
kctl              271 sound/core/control.c 	kctl->put = ncontrol->put;
kctl              272 sound/core/control.c 	kctl->tlv.p = ncontrol->tlv.p;
kctl              274 sound/core/control.c 	kctl->private_value = ncontrol->private_value;
kctl              275 sound/core/control.c 	kctl->private_data = private_data;
kctl              277 sound/core/control.c 	return kctl;
kctl              302 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              308 sound/core/control.c 	list_for_each_entry(kctl, &card->controls, list) {
kctl              309 sound/core/control.c 		if (kctl->id.numid < card->last_numid + 1 + count &&
kctl              310 sound/core/control.c 		    kctl->id.numid + kctl->count > card->last_numid + 1) {
kctl              311 sound/core/control.c 		    	card->last_numid = kctl->id.numid + kctl->count - 1;
kctl              490 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              494 sound/core/control.c 	kctl = snd_ctl_find_id(card, id);
kctl              495 sound/core/control.c 	if (kctl == NULL) {
kctl              499 sound/core/control.c 	ret = snd_ctl_remove(card, kctl);
kctl              519 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              523 sound/core/control.c 	kctl = snd_ctl_find_id(card, id);
kctl              524 sound/core/control.c 	if (kctl == NULL) {
kctl              528 sound/core/control.c 	if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) {
kctl              532 sound/core/control.c 	for (idx = 0; idx < kctl->count; idx++)
kctl              533 sound/core/control.c 		if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) {
kctl              537 sound/core/control.c 	ret = snd_ctl_remove(card, kctl);
kctl              561 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              567 sound/core/control.c 	kctl = snd_ctl_find_id(card, id);
kctl              568 sound/core/control.c 	if (kctl == NULL) {
kctl              572 sound/core/control.c 	index_offset = snd_ctl_get_ioff(kctl, id);
kctl              573 sound/core/control.c 	vd = &kctl->vd[index_offset];
kctl              584 sound/core/control.c 	snd_ctl_build_ioff(id, kctl, index_offset);
kctl              608 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              611 sound/core/control.c 	kctl = snd_ctl_find_id(card, src_id);
kctl              612 sound/core/control.c 	if (kctl == NULL) {
kctl              616 sound/core/control.c 	kctl->id = *dst_id;
kctl              617 sound/core/control.c 	kctl->id.numid = card->last_numid + 1;
kctl              618 sound/core/control.c 	card->last_numid += kctl->count;
kctl              639 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              643 sound/core/control.c 	list_for_each_entry(kctl, &card->controls, list) {
kctl              644 sound/core/control.c 		if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid)
kctl              645 sound/core/control.c 			return kctl;
kctl              667 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              673 sound/core/control.c 	list_for_each_entry(kctl, &card->controls, list) {
kctl              674 sound/core/control.c 		if (kctl->id.iface != id->iface)
kctl              676 sound/core/control.c 		if (kctl->id.device != id->device)
kctl              678 sound/core/control.c 		if (kctl->id.subdevice != id->subdevice)
kctl              680 sound/core/control.c 		if (strncmp(kctl->id.name, id->name, sizeof(kctl->id.name)))
kctl              682 sound/core/control.c 		if (kctl->id.index > id->index)
kctl              684 sound/core/control.c 		if (kctl->id.index + kctl->count <= id->index)
kctl              686 sound/core/control.c 		return kctl;
kctl              721 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              735 sound/core/control.c 		list_for_each_entry(kctl, &card->controls, list) {
kctl              736 sound/core/control.c 			if (offset >= kctl->count) {
kctl              737 sound/core/control.c 				offset -= kctl->count;
kctl              740 sound/core/control.c 			for (jidx = offset; jidx < kctl->count; jidx++) {
kctl              741 sound/core/control.c 				snd_ctl_build_ioff(&id, kctl, jidx);
kctl              795 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              801 sound/core/control.c 	kctl = snd_ctl_find_id(card, &info->id);
kctl              802 sound/core/control.c 	if (kctl == NULL) {
kctl              809 sound/core/control.c 	result = kctl->info(kctl, info);
kctl              812 sound/core/control.c 		index_offset = snd_ctl_get_ioff(kctl, &info->id);
kctl              813 sound/core/control.c 		vd = &kctl->vd[index_offset];
kctl              814 sound/core/control.c 		snd_ctl_build_ioff(&info->id, kctl, index_offset);
kctl              851 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              855 sound/core/control.c 	kctl = snd_ctl_find_id(card, &control->id);
kctl              856 sound/core/control.c 	if (kctl == NULL)
kctl              859 sound/core/control.c 	index_offset = snd_ctl_get_ioff(kctl, &control->id);
kctl              860 sound/core/control.c 	vd = &kctl->vd[index_offset];
kctl              861 sound/core/control.c 	if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_READ) || kctl->get == NULL)
kctl              864 sound/core/control.c 	snd_ctl_build_ioff(&control->id, kctl, index_offset);
kctl              865 sound/core/control.c 	return kctl->get(kctl, control);
kctl              898 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              903 sound/core/control.c 	kctl = snd_ctl_find_id(card, &control->id);
kctl              904 sound/core/control.c 	if (kctl == NULL)
kctl              907 sound/core/control.c 	index_offset = snd_ctl_get_ioff(kctl, &control->id);
kctl              908 sound/core/control.c 	vd = &kctl->vd[index_offset];
kctl              909 sound/core/control.c 	if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_WRITE) || kctl->put == NULL ||
kctl              914 sound/core/control.c 	snd_ctl_build_ioff(&control->id, kctl, index_offset);
kctl              915 sound/core/control.c 	result = kctl->put(kctl, control);
kctl              961 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              968 sound/core/control.c 	kctl = snd_ctl_find_id(card, &id);
kctl              969 sound/core/control.c 	if (kctl == NULL) {
kctl              972 sound/core/control.c 		vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
kctl              989 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl              996 sound/core/control.c 	kctl = snd_ctl_find_id(card, &id);
kctl              997 sound/core/control.c 	if (kctl == NULL) {
kctl             1000 sound/core/control.c 		vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
kctl             1089 sound/core/control.c static int replace_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf,
kctl             1092 sound/core/control.c 	struct user_element *ue = kctl->private_data;
kctl             1116 sound/core/control.c 		for (i = 0; i < kctl->count; ++i)
kctl             1117 sound/core/control.c 			kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ;
kctl             1126 sound/core/control.c 	for (i = 0; i < kctl->count; ++i) {
kctl             1127 sound/core/control.c 		snd_ctl_build_ioff(&id, kctl, i);
kctl             1134 sound/core/control.c static int read_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf,
kctl             1137 sound/core/control.c 	struct user_element *ue = kctl->private_data;
kctl             1151 sound/core/control.c static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kctl, int op_flag,
kctl             1155 sound/core/control.c 		return replace_user_tlv(kctl, buf, size);
kctl             1157 sound/core/control.c 		return read_user_tlv(kctl, buf, size);
kctl             1224 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl             1293 sound/core/control.c 	err = snd_ctl_new(&kctl, count, access, file);
kctl             1296 sound/core/control.c 	memcpy(&kctl->id, &info->id, sizeof(kctl->id));
kctl             1297 sound/core/control.c 	kctl->private_data = kzalloc(sizeof(struct user_element) + private_size * count,
kctl             1299 sound/core/control.c 	if (kctl->private_data == NULL) {
kctl             1300 sound/core/control.c 		kfree(kctl);
kctl             1303 sound/core/control.c 	kctl->private_free = snd_ctl_elem_user_free;
kctl             1306 sound/core/control.c 	ue = (struct user_element *)kctl->private_data;
kctl             1315 sound/core/control.c 			snd_ctl_free_one(kctl);
kctl             1322 sound/core/control.c 		kctl->info = snd_ctl_elem_user_enum_info;
kctl             1324 sound/core/control.c 		kctl->info = snd_ctl_elem_user_info;
kctl             1326 sound/core/control.c 		kctl->get = snd_ctl_elem_user_get;
kctl             1328 sound/core/control.c 		kctl->put = snd_ctl_elem_user_put;
kctl             1330 sound/core/control.c 		kctl->tlv.c = snd_ctl_elem_user_tlv;
kctl             1334 sound/core/control.c 	err = __snd_ctl_add_replace(card, kctl, CTL_ADD_EXCLUSIVE);
kctl             1336 sound/core/control.c 		snd_ctl_free_one(kctl);
kctl             1339 sound/core/control.c 	offset = snd_ctl_get_ioff(kctl, &info->id);
kctl             1340 sound/core/control.c 	snd_ctl_build_ioff(&info->id, kctl, offset);
kctl             1407 sound/core/control.c 			    struct snd_kcontrol *kctl,
kctl             1419 sound/core/control.c 	struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)];
kctl             1430 sound/core/control.c 	if (kctl->tlv.c == NULL)
kctl             1438 sound/core/control.c 	return kctl->tlv.c(kctl, op_flag, size, buf);
kctl             1441 sound/core/control.c static int read_tlv_buf(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id,
kctl             1444 sound/core/control.c 	struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)];
kctl             1450 sound/core/control.c 	if (kctl->tlv.p == NULL)
kctl             1453 sound/core/control.c 	len = sizeof(unsigned int) * 2 + kctl->tlv.p[1];
kctl             1457 sound/core/control.c 	if (copy_to_user(buf, kctl->tlv.p, len))
kctl             1470 sound/core/control.c 	struct snd_kcontrol *kctl;
kctl             1487 sound/core/control.c 	kctl = snd_ctl_find_numid(file->card, header.numid);
kctl             1488 sound/core/control.c 	if (kctl == NULL)
kctl             1492 sound/core/control.c 	id = kctl->id;
kctl             1493 sound/core/control.c 	snd_ctl_build_ioff(&id, kctl, header.numid - id.numid);
kctl             1494 sound/core/control.c 	vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
kctl             1497 sound/core/control.c 		return call_tlv_handler(file, op_flag, kctl, &id, container,
kctl             1501 sound/core/control.c 			return read_tlv_buf(kctl, &id, container,
kctl             1763 sound/core/control.c 	struct snd_ctl_file *kctl;
kctl             1767 sound/core/control.c 	list_for_each_entry(kctl, &card->ctl_files, list) {
kctl             1768 sound/core/control.c 		if (kctl->pid == task_pid(current)) {
kctl             1769 sound/core/control.c 			subdevice = kctl->preferred_subdevice[type];
kctl              176 sound/core/control_compat.c 	struct snd_kcontrol *kctl;
kctl              181 sound/core/control_compat.c 	kctl = snd_ctl_find_id(card, id);
kctl              182 sound/core/control_compat.c 	if (! kctl) {
kctl              192 sound/core/control_compat.c 	err = kctl->info(kctl, info);
kctl               65 sound/core/ctljack.c 	struct snd_kcontrol *kctl;
kctl               67 sound/core/ctljack.c 	kctl = snd_ctl_new1(&jack_detect_kctl, NULL);
kctl               68 sound/core/ctljack.c 	if (!kctl)
kctl               71 sound/core/ctljack.c 	jack_kctl_name_gen(kctl->id.name, name, sizeof(kctl->id.name));
kctl               72 sound/core/ctljack.c 	kctl->id.index = get_available_index(card, kctl->id.name);
kctl               73 sound/core/ctljack.c 	kctl->private_value = 0;
kctl               74 sound/core/ctljack.c 	return kctl;
kctl               78 sound/core/ctljack.c 			  struct snd_kcontrol *kctl, bool status)
kctl               80 sound/core/ctljack.c 	if (kctl->private_value == status)
kctl               82 sound/core/ctljack.c 	kctl->private_value = status;
kctl               83 sound/core/ctljack.c 	snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl               16 sound/core/jack.c 	struct snd_kcontrol *kctl;
kctl               59 sound/core/jack.c 		snd_ctl_remove(card, jack_kctl->kctl);
kctl              112 sound/core/jack.c static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl)
kctl              116 sound/core/jack.c 	jack_kctl = kctl->private_data;
kctl              130 sound/core/jack.c 	struct snd_kcontrol *kctl;
kctl              134 sound/core/jack.c 	kctl = snd_kctl_jack_new(name, card);
kctl              135 sound/core/jack.c 	if (!kctl)
kctl              138 sound/core/jack.c 	err = snd_ctl_add(card, kctl);
kctl              147 sound/core/jack.c 	jack_kctl->kctl = kctl;
kctl              150 sound/core/jack.c 	kctl->private_data = jack_kctl;
kctl              151 sound/core/jack.c 	kctl->private_free = snd_jack_kctl_private_free;
kctl              155 sound/core/jack.c 	snd_ctl_free_one(kctl);
kctl              351 sound/core/jack.c 		snd_kctl_jack_report(jack->card, jack_kctl->kctl,
kctl              514 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              520 sound/core/oss/mixer_oss.c 	if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) {
kctl              528 sound/core/oss/mixer_oss.c 	if (kctl->info(kctl, uinfo))
kctl              530 sound/core/oss/mixer_oss.c 	if (kctl->get(kctl, uctl))
kctl              552 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              558 sound/core/oss/mixer_oss.c 	if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) {
kctl              566 sound/core/oss/mixer_oss.c 	if (kctl->info(kctl, uinfo))
kctl              568 sound/core/oss/mixer_oss.c 	if (kctl->get(kctl, uctl))
kctl              616 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              623 sound/core/oss/mixer_oss.c 	if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) {
kctl              631 sound/core/oss/mixer_oss.c 	if (kctl->info(kctl, uinfo))
kctl              639 sound/core/oss/mixer_oss.c 	if ((res = kctl->put(kctl, uctl)) < 0)
kctl              642 sound/core/oss/mixer_oss.c 		snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl              657 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              664 sound/core/oss/mixer_oss.c 	if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) {
kctl              672 sound/core/oss/mixer_oss.c 	if (kctl->info(kctl, uinfo))
kctl              684 sound/core/oss/mixer_oss.c 	if ((res = kctl->put(kctl, uctl)) < 0)
kctl              687 sound/core/oss/mixer_oss.c 		snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl              793 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              807 sound/core/oss/mixer_oss.c 	kctl = snd_mixer_oss_test_id(mixer, "Capture Source", 0);
kctl              808 sound/core/oss/mixer_oss.c 	if (! kctl) {
kctl              812 sound/core/oss/mixer_oss.c 	if ((err = kctl->info(kctl, uinfo)) < 0)
kctl              814 sound/core/oss/mixer_oss.c 	if ((err = kctl->get(kctl, uctl)) < 0)
kctl              843 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl              858 sound/core/oss/mixer_oss.c 	kctl = snd_mixer_oss_test_id(mixer, "Capture Source", 0);
kctl              859 sound/core/oss/mixer_oss.c 	if (! kctl) {
kctl              863 sound/core/oss/mixer_oss.c 	if ((err = kctl->info(kctl, uinfo)) < 0)
kctl              882 sound/core/oss/mixer_oss.c 	err = kctl->put(kctl, uctl);
kctl              884 sound/core/oss/mixer_oss.c 		snd_ctl_notify(fmixer->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl             1024 sound/core/oss/mixer_oss.c 	struct snd_kcontrol *kctl;
kctl             1037 sound/core/oss/mixer_oss.c 	if (ptr->index == 0 && (kctl = snd_mixer_oss_test_id(mixer, "Capture Source", 0)) != NULL) {
kctl             1046 sound/core/oss/mixer_oss.c 		if (kctl->info(kctl, uinfo)) {
kctl             1062 sound/core/oss/mixer_oss.c 				if (kctl->info(kctl, uinfo)) {
kctl             2450 sound/core/pcm_lib.c 	info->kctl = snd_ctl_new1(&knew, info);
kctl             2451 sound/core/pcm_lib.c 	if (!info->kctl) {
kctl             2455 sound/core/pcm_lib.c 	info->kctl->private_free = pcm_chmap_ctl_private_free;
kctl             2456 sound/core/pcm_lib.c 	err = snd_ctl_add(pcm->card, info->kctl);
kctl             2459 sound/core/pcm_lib.c 	pcm->streams[stream].chmap_kctl = info->kctl;
kctl               53 sound/core/vmaster.c 	struct snd_kcontrol *kctl; /* original kcontrol pointer */
kctl              262 sound/core/vmaster.c 	srec->kctl = slave;
kctl              362 sound/core/vmaster.c 		struct snd_kcontrol *sctl = slave->kctl;
kctl              395 sound/core/vmaster.c 	struct snd_kcontrol *kctl;
kctl              408 sound/core/vmaster.c 	kctl = snd_ctl_new1(&knew, master);
kctl              409 sound/core/vmaster.c 	if (!kctl) {
kctl              414 sound/core/vmaster.c 	kctl->info = master_info;
kctl              415 sound/core/vmaster.c 	kctl->get = master_get;
kctl              416 sound/core/vmaster.c 	kctl->put = master_put;
kctl              417 sound/core/vmaster.c 	kctl->private_free = master_free;
kctl              425 sound/core/vmaster.c 			kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ;
kctl              427 sound/core/vmaster.c 			kctl->tlv.p = master->tlv;
kctl              431 sound/core/vmaster.c 	return kctl;
kctl              498 sound/core/vmaster.c int snd_ctl_apply_vmaster_slaves(struct snd_kcontrol *kctl,
kctl              508 sound/core/vmaster.c 	master = snd_kcontrol_chip(kctl);
kctl              513 sound/core/vmaster.c 		err = func(slave->kctl, &slave->slave, arg);
kctl             1014 sound/drivers/aloop.c 	struct snd_kcontrol *kctl;
kctl             1032 sound/drivers/aloop.c 				kctl = snd_ctl_new1(&loopback_controls[idx],
kctl             1034 sound/drivers/aloop.c 				if (!kctl)
kctl             1036 sound/drivers/aloop.c 				kctl->id.device = dev;
kctl             1037 sound/drivers/aloop.c 				kctl->id.subdevice = substr;
kctl             1040 sound/drivers/aloop.c 					setup->active_id = kctl->id;
kctl             1043 sound/drivers/aloop.c 					setup->format_id = kctl->id;
kctl             1046 sound/drivers/aloop.c 					setup->rate_id = kctl->id;
kctl             1049 sound/drivers/aloop.c 					setup->channels_id = kctl->id;
kctl             1054 sound/drivers/aloop.c 				err = snd_ctl_add(card, kctl);
kctl              430 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl,
kctl              433 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              444 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl,
kctl              447 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              482 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_time_h_info(struct snd_kcontrol *kctl,
kctl              492 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_time_f_info(struct snd_kcontrol *kctl,
kctl              502 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_time_info(struct snd_kcontrol *kctl,
kctl              512 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl,
kctl              515 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              516 sound/drivers/mts64.c 	int idx = kctl->private_value;
kctl              525 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_time_put(struct snd_kcontrol *kctl,
kctl              528 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              529 sound/drivers/mts64.c 	int idx = kctl->private_value;
kctl              588 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_fps_info(struct snd_kcontrol *kctl,
kctl              598 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_fps_get(struct snd_kcontrol *kctl,
kctl              601 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              610 sound/drivers/mts64.c static int snd_mts64_ctl_smpte_fps_put(struct snd_kcontrol *kctl,
kctl              613 sound/drivers/mts64.c 	struct mts64 *mts = snd_kcontrol_chip(kctl);
kctl              355 sound/firewire/bebob/bebob_maudio.c static int special_clk_ctl_info(struct snd_kcontrol *kctl,
kctl              367 sound/firewire/bebob/bebob_maudio.c static int special_clk_ctl_get(struct snd_kcontrol *kctl,
kctl              370 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              375 sound/firewire/bebob/bebob_maudio.c static int special_clk_ctl_put(struct snd_kcontrol *kctl,
kctl              378 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              409 sound/firewire/bebob/bebob_maudio.c static int special_sync_ctl_info(struct snd_kcontrol *kctl,
kctl              419 sound/firewire/bebob/bebob_maudio.c static int special_sync_ctl_get(struct snd_kcontrol *kctl,
kctl              422 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              444 sound/firewire/bebob/bebob_maudio.c static int special_dig_in_iface_ctl_info(struct snd_kcontrol *kctl,
kctl              451 sound/firewire/bebob/bebob_maudio.c static int special_dig_in_iface_ctl_get(struct snd_kcontrol *kctl,
kctl              454 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              481 sound/firewire/bebob/bebob_maudio.c static int special_dig_in_iface_ctl_set(struct snd_kcontrol *kctl,
kctl              484 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              537 sound/firewire/bebob/bebob_maudio.c static int special_dig_out_iface_ctl_info(struct snd_kcontrol *kctl,
kctl              544 sound/firewire/bebob/bebob_maudio.c static int special_dig_out_iface_ctl_get(struct snd_kcontrol *kctl,
kctl              547 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              554 sound/firewire/bebob/bebob_maudio.c static int special_dig_out_iface_ctl_set(struct snd_kcontrol *kctl,
kctl              557 sound/firewire/bebob/bebob_maudio.c 	struct snd_bebob *bebob = snd_kcontrol_chip(kctl);
kctl              591 sound/firewire/bebob/bebob_maudio.c 	struct snd_kcontrol *kctl;
kctl              595 sound/firewire/bebob/bebob_maudio.c 	kctl = snd_ctl_new1(&special_clk_ctl, bebob);
kctl              596 sound/firewire/bebob/bebob_maudio.c 	err = snd_ctl_add(bebob->card, kctl);
kctl              600 sound/firewire/bebob/bebob_maudio.c 	kctl = snd_ctl_new1(&special_sync_ctl, bebob);
kctl              601 sound/firewire/bebob/bebob_maudio.c 	err = snd_ctl_add(bebob->card, kctl);
kctl              604 sound/firewire/bebob/bebob_maudio.c 	params->ctl_id_sync = &kctl->id;
kctl              606 sound/firewire/bebob/bebob_maudio.c 	kctl = snd_ctl_new1(&special_dig_in_iface_ctl, bebob);
kctl              607 sound/firewire/bebob/bebob_maudio.c 	err = snd_ctl_add(bebob->card, kctl);
kctl              611 sound/firewire/bebob/bebob_maudio.c 	kctl = snd_ctl_new1(&special_dig_out_iface_ctl, bebob);
kctl              612 sound/firewire/bebob/bebob_maudio.c 	err = snd_ctl_add(bebob->card, kctl);
kctl              830 sound/hda/hdmi_chmap.c 	struct snd_kcontrol *kctl;
kctl              840 sound/hda/hdmi_chmap.c 	kctl = chmap->kctl;
kctl              841 sound/hda/hdmi_chmap.c 	for (i = 0; i < kctl->count; i++)
kctl              842 sound/hda/hdmi_chmap.c 		kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_WRITE;
kctl              843 sound/hda/hdmi_chmap.c 	kctl->info = hdmi_chmap_ctl_info;
kctl              844 sound/hda/hdmi_chmap.c 	kctl->get = hdmi_chmap_ctl_get;
kctl              845 sound/hda/hdmi_chmap.c 	kctl->put = hdmi_chmap_ctl_put;
kctl              846 sound/hda/hdmi_chmap.c 	kctl->tlv.c = hdmi_chmap_ctl_tlv;
kctl              520 sound/i2c/cs8427.c 	struct snd_kcontrol *kctl;
kctl              527 sound/i2c/cs8427.c 		kctl = snd_ctl_new1(&snd_cs8427_iec958_controls[idx], cs8427);
kctl              528 sound/i2c/cs8427.c 		if (kctl == NULL)
kctl              530 sound/i2c/cs8427.c 		kctl->id.device = play_substream->pcm->device;
kctl              531 sound/i2c/cs8427.c 		kctl->id.subdevice = play_substream->number;
kctl              532 sound/i2c/cs8427.c 		err = snd_ctl_add(cs8427->bus->card, kctl);
kctl              535 sound/i2c/cs8427.c 		if (! strcmp(kctl->id.name,
kctl              537 sound/i2c/cs8427.c 			chip->playback.pcm_ctl = kctl;
kctl              487 sound/i2c/other/ak4113.c 	struct snd_kcontrol *kctl;
kctl              495 sound/i2c/other/ak4113.c 		kctl = snd_ctl_new1(&snd_ak4113_iec958_controls[idx], ak4113);
kctl              496 sound/i2c/other/ak4113.c 		if (kctl == NULL)
kctl              498 sound/i2c/other/ak4113.c 		kctl->id.device = cap_substream->pcm->device;
kctl              499 sound/i2c/other/ak4113.c 		kctl->id.subdevice = cap_substream->number;
kctl              500 sound/i2c/other/ak4113.c 		err = snd_ctl_add(ak4113->card, kctl);
kctl              503 sound/i2c/other/ak4113.c 		ak4113->kctls[idx] = kctl;
kctl              461 sound/i2c/other/ak4114.c 	struct snd_kcontrol *kctl;
kctl              470 sound/i2c/other/ak4114.c 		kctl = snd_ctl_new1(&snd_ak4114_iec958_controls[idx], ak4114);
kctl              471 sound/i2c/other/ak4114.c 		if (kctl == NULL)
kctl              473 sound/i2c/other/ak4114.c 		if (strstr(kctl->id.name, "Playback")) {
kctl              475 sound/i2c/other/ak4114.c 				snd_ctl_free_one(kctl);
kctl              479 sound/i2c/other/ak4114.c 			kctl->id.device = ply_substream->pcm->device;
kctl              480 sound/i2c/other/ak4114.c 			kctl->id.subdevice = ply_substream->number;
kctl              482 sound/i2c/other/ak4114.c 			kctl->id.device = cap_substream->pcm->device;
kctl              483 sound/i2c/other/ak4114.c 			kctl->id.subdevice = cap_substream->number;
kctl              485 sound/i2c/other/ak4114.c 		err = snd_ctl_add(ak4114->card, kctl);
kctl              488 sound/i2c/other/ak4114.c 		ak4114->kctls[idx] = kctl;
kctl              412 sound/i2c/other/ak4117.c 	struct snd_kcontrol *kctl;
kctl              420 sound/i2c/other/ak4117.c 		kctl = snd_ctl_new1(&snd_ak4117_iec958_controls[idx], ak4117);
kctl              421 sound/i2c/other/ak4117.c 		if (kctl == NULL)
kctl              423 sound/i2c/other/ak4117.c 		kctl->id.device = cap_substream->pcm->device;
kctl              424 sound/i2c/other/ak4117.c 		kctl->id.subdevice = cap_substream->number;
kctl              425 sound/i2c/other/ak4117.c 		err = snd_ctl_add(ak4117->card, kctl);
kctl              428 sound/i2c/other/ak4117.c 		ak4117->kctls[idx] = kctl;
kctl             1836 sound/isa/es18xx.c 		struct snd_kcontrol *kctl;
kctl             1837 sound/isa/es18xx.c 		kctl = snd_ctl_new1(&snd_es18xx_base_controls[idx], chip);
kctl             1841 sound/isa/es18xx.c 				chip->master_volume = kctl;
kctl             1842 sound/isa/es18xx.c 				kctl->private_free = snd_es18xx_hwv_free;
kctl             1845 sound/isa/es18xx.c 				chip->master_switch = kctl;
kctl             1846 sound/isa/es18xx.c 				kctl->private_free = snd_es18xx_hwv_free;
kctl             1850 sound/isa/es18xx.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             1890 sound/isa/es18xx.c 			struct snd_kcontrol *kctl;
kctl             1891 sound/isa/es18xx.c 			kctl = snd_ctl_new1(&snd_es18xx_hw_volume_controls[idx], chip);
kctl             1893 sound/isa/es18xx.c 				chip->hw_volume = kctl;
kctl             1895 sound/isa/es18xx.c 				chip->hw_switch = kctl;
kctl             1896 sound/isa/es18xx.c 			kctl->private_free = snd_es18xx_hwv_free;
kctl             1897 sound/isa/es18xx.c 			if ((err = snd_ctl_add(card, kctl)) < 0)
kctl              858 sound/isa/gus/gus_pcm.c 	struct snd_kcontrol *kctl;
kctl              900 sound/isa/gus/gus_pcm.c 		kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control1, gus);
kctl              902 sound/isa/gus/gus_pcm.c 		kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control, gus);
kctl              903 sound/isa/gus/gus_pcm.c 	if ((err = snd_ctl_add(card, kctl)) < 0)
kctl              905 sound/isa/gus/gus_pcm.c 	kctl->id.index = control_index;
kctl              487 sound/isa/opl3sa2.c 	struct snd_kcontrol *kctl;
kctl              522 sound/isa/opl3sa2.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_opl3sa2_controls[idx], chip))) < 0)
kctl              525 sound/isa/opl3sa2.c 		case 0: chip->master_switch = kctl; kctl->private_free = snd_opl3sa2_master_free; break;
kctl              526 sound/isa/opl3sa2.c 		case 1: chip->master_volume = kctl; kctl->private_free = snd_opl3sa2_master_free; break;
kctl              602 sound/isa/sscape.c static int sscape_midi_get(struct snd_kcontrol *kctl,
kctl              605 sound/isa/sscape.c 	struct snd_wss *chip = snd_kcontrol_chip(kctl);
kctl              616 sound/isa/sscape.c static int sscape_midi_put(struct snd_kcontrol *kctl,
kctl              619 sound/isa/sscape.c 	struct snd_wss *chip = snd_kcontrol_chip(kctl);
kctl              680 sound/pci/ac97/ac97_codec.c static void set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl)
kctl              682 sound/pci/ac97/ac97_codec.c 	kctl->private_value = AC97_SINGLE_VALUE(AC97_POWERDOWN, 15, 1, 0);
kctl             1171 sound/pci/ac97/ac97_codec.c 	struct snd_kcontrol *kctl;
kctl             1192 sound/pci/ac97/ac97_codec.c 		kctl = snd_ctl_new1(&tmp, ac97);
kctl             1198 sound/pci/ac97/ac97_codec.c 		kctl = snd_ctl_new1(&tmp, ac97);
kctl             1200 sound/pci/ac97/ac97_codec.c 	err = snd_ctl_add(card, kctl);
kctl             1227 sound/pci/ac97/ac97_codec.c static void set_tlv_db_scale(struct snd_kcontrol *kctl, const unsigned int *tlv)
kctl             1229 sound/pci/ac97/ac97_codec.c 	kctl->tlv.p = tlv;
kctl             1231 sound/pci/ac97/ac97_codec.c 		kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ;
kctl             1241 sound/pci/ac97/ac97_codec.c 	struct snd_kcontrol *kctl;
kctl             1249 sound/pci/ac97/ac97_codec.c 		kctl = snd_ctl_new1(&tmp, ac97);
kctl             1254 sound/pci/ac97/ac97_codec.c 		kctl = snd_ctl_new1(&tmp, ac97);
kctl             1256 sound/pci/ac97/ac97_codec.c 	if (!kctl)
kctl             1259 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, db_scale_5bit_12db_max);
kctl             1261 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, find_db_scale(lo_max));
kctl             1262 sound/pci/ac97/ac97_codec.c 	err = snd_ctl_add(card, kctl);
kctl             1313 sound/pci/ac97/ac97_codec.c 	struct snd_kcontrol *kctl;
kctl             1338 sound/pci/ac97/ac97_codec.c 		if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_center[1], ac97))) < 0)
kctl             1341 sound/pci/ac97/ac97_codec.c 		kctl->private_value &= ~(0xff << 16);
kctl             1342 sound/pci/ac97/ac97_codec.c 		kctl->private_value |= (int)max << 16;
kctl             1343 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, find_db_scale(max));
kctl             1352 sound/pci/ac97/ac97_codec.c 		if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_lfe[1], ac97))) < 0)
kctl             1355 sound/pci/ac97/ac97_codec.c 		kctl->private_value &= ~(0xff << 16);
kctl             1356 sound/pci/ac97/ac97_codec.c 		kctl->private_value |= (int)max << 16;
kctl             1357 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, find_db_scale(max));
kctl             1389 sound/pci/ac97/ac97_codec.c 				if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_tone[idx], ac97))) < 0)
kctl             1393 sound/pci/ac97/ac97_codec.c 					kctl->private_value &= ~(0xff << 16);
kctl             1394 sound/pci/ac97/ac97_codec.c 					kctl->private_value |= 7 << 16;
kctl             1406 sound/pci/ac97/ac97_codec.c 			if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_pc_beep[idx], ac97))) < 0)
kctl             1408 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, db_scale_4bit);
kctl             1479 sound/pci/ac97/ac97_codec.c 			if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_pcm[idx], ac97))) < 0)
kctl             1481 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, db_scale_5bit);
kctl             1485 sound/pci/ac97/ac97_codec.c 				if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_surround[idx], ac97))) < 0)
kctl             1487 sound/pci/ac97/ac97_codec.c 			set_tlv_db_scale(kctl, db_scale_5bit);
kctl             1492 sound/pci/ac97/ac97_codec.c 				if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_center[idx], ac97))) < 0)
kctl             1494 sound/pci/ac97/ac97_codec.c 			set_tlv_db_scale(kctl, db_scale_5bit);
kctl             1496 sound/pci/ac97/ac97_codec.c 				if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_lfe[idx], ac97))) < 0)
kctl             1498 sound/pci/ac97/ac97_codec.c 			set_tlv_db_scale(kctl, db_scale_5bit);
kctl             1526 sound/pci/ac97/ac97_codec.c 		if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_control_capture_vol, ac97))) < 0)
kctl             1528 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, db_scale_rec_gain);
kctl             1535 sound/pci/ac97/ac97_codec.c 			if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_mic_capture[idx], ac97))) < 0)
kctl             1537 sound/pci/ac97/ac97_codec.c 		set_tlv_db_scale(kctl, db_scale_rec_gain);
kctl             1595 sound/pci/ac97/ac97_codec.c 			if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0)
kctl             1598 sound/pci/ac97/ac97_codec.c 				kctl->private_value = AC97_3D_CONTROL | (9 << 8) | (7 << 16);
kctl             1599 sound/pci/ac97/ac97_codec.c 			if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[1], ac97))) < 0)
kctl             1602 sound/pci/ac97/ac97_codec.c 				kctl->private_value = AC97_3D_CONTROL | (1 << 8) | (7 << 16);
kctl             1640 sound/pci/ac97/ac97_codec.c 		kctl = snd_ac97_cnew(&snd_ac97_control_eapd, ac97);
kctl             1641 sound/pci/ac97/ac97_codec.c 		if (! kctl)
kctl             1644 sound/pci/ac97/ac97_codec.c 			set_inv_eapd(ac97, kctl);
kctl             1645 sound/pci/ac97/ac97_codec.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             2620 sound/pci/ac97/ac97_codec.c 	struct snd_kcontrol *kctl = ctl_find(ac97, src, suffix);
kctl             2621 sound/pci/ac97/ac97_codec.c 	if (kctl) {
kctl             2622 sound/pci/ac97/ac97_codec.c 		set_ctl_name(kctl->id.name, dst, suffix);
kctl             2746 sound/pci/ac97/ac97_codec.c 	struct snd_kcontrol *kctl = ctl_find(ac97, "External Amplifier", NULL);
kctl             2747 sound/pci/ac97/ac97_codec.c 	if (! kctl)
kctl             2749 sound/pci/ac97/ac97_codec.c 	set_inv_eapd(ac97, kctl);
kctl               43 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl               47 sound/pci/ac97/ac97_patch.c 	kctl = snd_ctl_find_id(ac97->bus->card, &sid);
kctl               48 sound/pci/ac97/ac97_patch.c 	if (kctl && kctl->tlv.p)
kctl               49 sound/pci/ac97/ac97_patch.c 		kctl->tlv.p = tlv;
kctl              295 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl              298 sound/pci/ac97/ac97_patch.c 	kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97);
kctl              299 sound/pci/ac97/ac97_patch.c 	err = snd_ctl_add(ac97->bus->card, kctl);
kctl              302 sound/pci/ac97/ac97_patch.c 	strcpy(kctl->id.name, "3D Control - Wide");
kctl              303 sound/pci/ac97/ac97_patch.c 	kctl->private_value = AC97_SINGLE_VALUE(AC97_3D_CONTROL, 9, 7, 0);
kctl              883 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl              886 sound/pci/ac97/ac97_patch.c 	if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0)
kctl              888 sound/pci/ac97/ac97_patch.c 	strcpy(kctl->id.name, "3D Control Sigmatel - Depth");
kctl              889 sound/pci/ac97/ac97_patch.c 	kctl->private_value = AC97_SINGLE_VALUE(AC97_3D_CONTROL, 2, 3, 0);
kctl              896 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl              899 sound/pci/ac97/ac97_patch.c 	if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0)
kctl              901 sound/pci/ac97/ac97_patch.c 	strcpy(kctl->id.name, "3D Control Sigmatel - Depth");
kctl              902 sound/pci/ac97/ac97_patch.c 	kctl->private_value = AC97_SINGLE_VALUE(AC97_3D_CONTROL, 0, 3, 0);
kctl              903 sound/pci/ac97/ac97_patch.c 	if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0)
kctl              905 sound/pci/ac97/ac97_patch.c 	strcpy(kctl->id.name, "3D Control Sigmatel - Rear Depth");
kctl              906 sound/pci/ac97/ac97_patch.c 	kctl->private_value = AC97_SINGLE_VALUE(AC97_3D_CONTROL, 2, 3, 0);
kctl             3408 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl             3412 sound/pci/ac97/ac97_patch.c 	kctl = snd_ctl_make_virtual_master(name, tlv);
kctl             3413 sound/pci/ac97/ac97_patch.c 	if (!kctl)
kctl             3415 sound/pci/ac97/ac97_patch.c 	err = snd_ctl_add(ac97->bus->card, kctl);
kctl             3428 sound/pci/ac97/ac97_patch.c 		err = snd_ctl_add_slave(kctl, sctl);
kctl             3437 sound/pci/ac97/ac97_patch.c 	struct snd_kcontrol *kctl;
kctl             3447 sound/pci/ac97/ac97_patch.c 	kctl = snd_ac97_find_mixer_ctl(ac97, "Master Playback Volume");
kctl             3448 sound/pci/ac97/ac97_patch.c 	if (!kctl)
kctl             3454 sound/pci/ac97/ac97_patch.c 				   kctl->tlv.p, slave_vols_vt1616);
kctl               97 sound/pci/au88x0/au88x0.h 	struct snd_kcontrol *kctl;
kctl              115 sound/pci/au88x0/au88x0_pcm.c 			struct snd_kcontrol *kctl, int activate)
kctl              118 sound/pci/au88x0/au88x0_pcm.c 		kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl              120 sound/pci/au88x0/au88x0_pcm.c 		kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl              122 sound/pci/au88x0/au88x0_pcm.c 				SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id));
kctl              254 sound/pci/au88x0/au88x0_pcm.c 				chip->pcm_vol[substream->number].kctl, 1);
kctl              289 sound/pci/au88x0/au88x0_pcm.c 					chip->pcm_vol[substream->number].kctl,
kctl              608 sound/pci/au88x0/au88x0_pcm.c 	struct snd_kcontrol *kctl;
kctl              669 sound/pci/au88x0/au88x0_pcm.c 			kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip);
kctl              670 sound/pci/au88x0/au88x0_pcm.c 			if (!kctl)
kctl              672 sound/pci/au88x0/au88x0_pcm.c 			if ((err = snd_ctl_add(chip->card, kctl)) < 0)
kctl              680 sound/pci/au88x0/au88x0_pcm.c 			kctl = snd_ctl_new1(&snd_vortex_pcm_vol, chip);
kctl              681 sound/pci/au88x0/au88x0_pcm.c 			if (!kctl)
kctl              683 sound/pci/au88x0/au88x0_pcm.c 			chip->pcm_vol[i].kctl = kctl;
kctl              684 sound/pci/au88x0/au88x0_pcm.c 			kctl->id.device = 0;
kctl              685 sound/pci/au88x0/au88x0_pcm.c 			kctl->id.subdevice = i;
kctl              686 sound/pci/au88x0/au88x0_pcm.c 			err = snd_ctl_add(chip->card, kctl);
kctl              721 sound/pci/ca0106/ca0106_mixer.c 	struct snd_kcontrol *kctl = ctl_find(card, src);
kctl              722 sound/pci/ca0106/ca0106_mixer.c 	if (kctl) {
kctl              723 sound/pci/ca0106/ca0106_mixer.c 		strcpy(kctl->id.name, dst);
kctl             2657 sound/pci/cmipci.c 	struct snd_kcontrol *kctl;
kctl             2703 sound/pci/cmipci.c 			if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_default, cm))) < 0)
kctl             2705 sound/pci/cmipci.c 			kctl->id.device = pcm_spdif_device;
kctl             2706 sound/pci/cmipci.c 			if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_mask, cm))) < 0)
kctl             2708 sound/pci/cmipci.c 			kctl->id.device = pcm_spdif_device;
kctl             2709 sound/pci/cmipci.c 			if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_stream, cm))) < 0)
kctl             2711 sound/pci/cmipci.c 			kctl->id.device = pcm_spdif_device;
kctl             2502 sound/pci/cs46xx/cs46xx_lib.c 		struct snd_kcontrol *kctl;
kctl             2503 sound/pci/cs46xx/cs46xx_lib.c 		kctl = snd_ctl_new1(&snd_cs46xx_controls[idx], chip);
kctl             2504 sound/pci/cs46xx/cs46xx_lib.c 		if (kctl && kctl->id.iface == SNDRV_CTL_ELEM_IFACE_PCM)
kctl             2505 sound/pci/cs46xx/cs46xx_lib.c 			kctl->id.device = spdif_device;
kctl             2506 sound/pci/cs46xx/cs46xx_lib.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             3532 sound/pci/cs46xx/cs46xx_lib.c 		struct snd_kcontrol *kctl;
kctl             3534 sound/pci/cs46xx/cs46xx_lib.c 		kctl = snd_ctl_new1(&snd_hercules_controls[idx], chip);
kctl             3535 sound/pci/cs46xx/cs46xx_lib.c 		if ((err = snd_ctl_add(card, kctl)) < 0) {
kctl               61 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_dc_info(struct snd_kcontrol *kctl,
kctl               71 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v)
kctl               77 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v)
kctl               79 sound/pci/cs5535audio/cs5535audio_olpc.c 	struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl);
kctl               85 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_mic_info(struct snd_kcontrol *kctl,
kctl               95 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v)
kctl               97 sound/pci/cs5535audio/cs5535audio_olpc.c 	struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl);
kctl              106 sound/pci/cs5535audio/cs5535audio_olpc.c static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v)
kctl              108 sound/pci/cs5535audio/cs5535audio_olpc.c 	struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl);
kctl              708 sound/pci/ctxfi/ctmixer.c 	struct snd_kcontrol *kctl;
kctl              711 sound/pci/ctxfi/ctmixer.c 	kctl = snd_ctl_new1(new, mixer->atc);
kctl              712 sound/pci/ctxfi/ctmixer.c 	if (!kctl)
kctl              715 sound/pci/ctxfi/ctmixer.c 	if (SNDRV_CTL_ELEM_IFACE_PCM == kctl->id.iface)
kctl              716 sound/pci/ctxfi/ctmixer.c 		kctl->id.device = IEC958;
kctl              718 sound/pci/ctxfi/ctmixer.c 	err = snd_ctl_add(mixer->atc->card, kctl);
kctl              724 sound/pci/ctxfi/ctmixer.c 		kctls[0] = kctl; break;
kctl              726 sound/pci/ctxfi/ctmixer.c 		kctls[1] = kctl; break;
kctl             1176 sound/pci/emu10k1/emu10k1x.c 	struct snd_kcontrol *kctl;
kctl             1179 sound/pci/emu10k1/emu10k1x.c 	if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_mask_control, emu)) == NULL)
kctl             1181 sound/pci/emu10k1/emu10k1x.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             1183 sound/pci/emu10k1/emu10k1x.c 	if ((kctl = snd_ctl_new1(&snd_emu10k1x_shared_spdif, emu)) == NULL)
kctl             1185 sound/pci/emu10k1/emu10k1x.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             1187 sound/pci/emu10k1/emu10k1x.c 	if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_control, emu)) == NULL)
kctl             1189 sound/pci/emu10k1/emu10k1x.c 	if ((err = snd_ctl_add(card, kctl)))
kctl              769 sound/pci/emu10k1/emufx.c static void snd_emu10k1_ctl_private_free(struct snd_kcontrol *kctl)
kctl              773 sound/pci/emu10k1/emufx.c 	ctl = (struct snd_emu10k1_fx8010_ctl *) kctl->private_value;
kctl              774 sound/pci/emu10k1/emufx.c 	kctl->private_value = 0;
kctl              777 sound/pci/emu10k1/emufx.c 	kfree(kctl->tlv.p);
kctl              788 sound/pci/emu10k1/emufx.c 	struct snd_kcontrol *kctl;
kctl              849 sound/pci/emu10k1/emufx.c 			if ((err = snd_ctl_add(emu->card, kctl = snd_ctl_new1(&knew, emu))) < 0) {
kctl              854 sound/pci/emu10k1/emufx.c 			kctl->private_free = snd_emu10k1_ctl_private_free;
kctl              855 sound/pci/emu10k1/emufx.c 			ctl->kcontrol = kctl;
kctl             1767 sound/pci/emu10k1/emumixer.c 	struct snd_kcontrol *kctl = ctl_find(card, src);
kctl             1768 sound/pci/emu10k1/emumixer.c 	if (kctl) {
kctl             1769 sound/pci/emu10k1/emumixer.c 		strcpy(kctl->id.name, dst);
kctl             1779 sound/pci/emu10k1/emumixer.c 	struct snd_kcontrol *kctl;
kctl             1994 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL)
kctl             1996 sound/pci/emu10k1/emumixer.c 	kctl->id.device = pcm_device;
kctl             1997 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             1999 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_send_volume = snd_ctl_new1(&snd_emu10k1_send_volume_control, emu)) == NULL)
kctl             2001 sound/pci/emu10k1/emumixer.c 	kctl->id.device = pcm_device;
kctl             2002 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             2004 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_attn = snd_ctl_new1(&snd_emu10k1_attn_control, emu)) == NULL)
kctl             2006 sound/pci/emu10k1/emumixer.c 	kctl->id.device = pcm_device;
kctl             2007 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             2010 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_efx_send_routing = snd_ctl_new1(&snd_emu10k1_efx_send_routing_control, emu)) == NULL)
kctl             2012 sound/pci/emu10k1/emumixer.c 	kctl->id.device = multi_device;
kctl             2013 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             2016 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_efx_send_volume = snd_ctl_new1(&snd_emu10k1_efx_send_volume_control, emu)) == NULL)
kctl             2018 sound/pci/emu10k1/emumixer.c 	kctl->id.device = multi_device;
kctl             2019 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             2022 sound/pci/emu10k1/emumixer.c 	if ((kctl = emu->ctl_efx_attn = snd_ctl_new1(&snd_emu10k1_efx_attn_control, emu)) == NULL)
kctl             2024 sound/pci/emu10k1/emumixer.c 	kctl->id.device = multi_device;
kctl             2025 sound/pci/emu10k1/emumixer.c 	if ((err = snd_ctl_add(card, kctl)))
kctl             2072 sound/pci/emu10k1/emumixer.c 		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_mask_control, emu)) == NULL)
kctl             2075 sound/pci/emu10k1/emumixer.c 			kctl->id.device = emu->pcm_efx->device;
kctl             2076 sound/pci/emu10k1/emumixer.c 		if ((err = snd_ctl_add(card, kctl)))
kctl             2078 sound/pci/emu10k1/emumixer.c 		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL)
kctl             2081 sound/pci/emu10k1/emumixer.c 			kctl->id.device = emu->pcm_efx->device;
kctl             2082 sound/pci/emu10k1/emumixer.c 		if ((err = snd_ctl_add(card, kctl)))
kctl             2089 sound/pci/emu10k1/emumixer.c 		if ((kctl = snd_ctl_new1(&snd_audigy_shared_spdif, emu)) == NULL)
kctl             2091 sound/pci/emu10k1/emumixer.c 		if ((err = snd_ctl_add(card, kctl)))
kctl             2094 sound/pci/emu10k1/emumixer.c 		if ((kctl = snd_ctl_new1(&snd_audigy_spdif_output_rate, emu)) == NULL)
kctl             2096 sound/pci/emu10k1/emumixer.c 		if ((err = snd_ctl_add(card, kctl)))
kctl             2101 sound/pci/emu10k1/emumixer.c 		if ((kctl = snd_ctl_new1(&snd_emu10k1_shared_spdif, emu)) == NULL)
kctl             2103 sound/pci/emu10k1/emumixer.c 		if ((err = snd_ctl_add(card, kctl)))
kctl             1041 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_mixer_notify1(struct snd_emu10k1 *emu, struct snd_kcontrol *kctl, int idx, int activate)
kctl             1045 sound/pci/emu10k1/emupcm.c 	if (! kctl)
kctl             1048 sound/pci/emu10k1/emupcm.c 		kctl->vd[idx].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl             1050 sound/pci/emu10k1/emupcm.c 		kctl->vd[idx].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl             1053 sound/pci/emu10k1/emupcm.c 		       snd_ctl_build_ioff(&id, kctl, idx));
kctl             1809 sound/pci/emu10k1/emupcm.c 	struct snd_kcontrol *kctl;
kctl             1849 sound/pci/emu10k1/emupcm.c 	kctl = snd_ctl_new1(&snd_emu10k1_pcm_efx_voices_mask, emu);
kctl             1850 sound/pci/emu10k1/emupcm.c 	if (!kctl)
kctl             1852 sound/pci/emu10k1/emupcm.c 	kctl->id.device = device;
kctl             1853 sound/pci/emu10k1/emupcm.c 	err = snd_ctl_add(emu->card, kctl);
kctl             1637 sound/pci/ens1370.c 		struct snd_kcontrol *kctl;
kctl             1648 sound/pci/ens1370.c 			kctl = snd_ctl_new1(&snd_es1371_mixer_spdif[i], ensoniq);
kctl             1649 sound/pci/ens1370.c 			if (!kctl)
kctl             1651 sound/pci/ens1370.c 			kctl->id.index = is_spdif;
kctl             1652 sound/pci/ens1370.c 			err = snd_ctl_add(card, kctl);
kctl             1738 sound/pci/es1938.c 		struct snd_kcontrol *kctl;
kctl             1739 sound/pci/es1938.c 		kctl = snd_ctl_new1(&snd_es1938_controls[idx], chip);
kctl             1742 sound/pci/es1938.c 				chip->master_volume = kctl;
kctl             1743 sound/pci/es1938.c 				kctl->private_free = snd_es1938_hwv_free;
kctl             1746 sound/pci/es1938.c 				chip->master_switch = kctl;
kctl             1747 sound/pci/es1938.c 				kctl->private_free = snd_es1938_hwv_free;
kctl             1750 sound/pci/es1938.c 				chip->hw_volume = kctl;
kctl             1751 sound/pci/es1938.c 				kctl->private_free = snd_es1938_hwv_free;
kctl             1754 sound/pci/es1938.c 				chip->hw_switch = kctl;
kctl             1755 sound/pci/es1938.c 				kctl->private_free = snd_es1938_hwv_free;
kctl             1758 sound/pci/es1938.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             1647 sound/pci/hda/hda_codec.c 		    struct snd_kcontrol *kctl)
kctl             1653 sound/pci/hda/hda_codec.c 	if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) {
kctl             1656 sound/pci/hda/hda_codec.c 			nid = get_amp_nid_(kctl->private_value);
kctl             1658 sound/pci/hda/hda_codec.c 	if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0)
kctl             1659 sound/pci/hda/hda_codec.c 		nid = kctl->id.subdevice & 0xffff;
kctl             1660 sound/pci/hda/hda_codec.c 	if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG))
kctl             1661 sound/pci/hda/hda_codec.c 		kctl->id.subdevice = 0;
kctl             1662 sound/pci/hda/hda_codec.c 	err = snd_ctl_add(codec->card, kctl);
kctl             1668 sound/pci/hda/hda_codec.c 	item->kctl = kctl;
kctl             1686 sound/pci/hda/hda_codec.c int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl,
kctl             1695 sound/pci/hda/hda_codec.c 		item->kctl = kctl;
kctl             1701 sound/pci/hda/hda_codec.c 		  kctl->id.name, kctl->id.index, index);
kctl             1715 sound/pci/hda/hda_codec.c 		snd_ctl_remove(codec->card, items[i].kctl);
kctl             1810 sound/pci/hda/hda_codec.c 		struct snd_kcontrol *sctl = items[i].kctl;
kctl             1839 sound/pci/hda/hda_codec.c static int put_kctl_with_value(struct snd_kcontrol *kctl, int val)
kctl             1847 sound/pci/hda/hda_codec.c 	kctl->put(kctl, ucontrol);
kctl             1859 sound/pci/hda/hda_codec.c 			  struct snd_kcontrol *kctl,
kctl             1868 sound/pci/hda/hda_codec.c 	if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) {
kctl             1869 sound/pci/hda/hda_codec.c 		if (kctl->tlv.c != snd_hda_mixer_amp_tlv) {
kctl             1872 sound/pci/hda/hda_codec.c 				  kctl->id.name, kctl->id.index);
kctl             1875 sound/pci/hda/hda_codec.c 		get_ctl_amp_tlv(kctl, _tlv);
kctl             1877 sound/pci/hda/hda_codec.c 	} else if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_READ)
kctl             1878 sound/pci/hda/hda_codec.c 		tlv = kctl->tlv.p;
kctl             1906 sound/pci/hda/hda_codec.c 			     struct snd_kcontrol *kctl,
kctl             1942 sound/pci/hda/hda_codec.c 	struct snd_kcontrol *kctl;
kctl             1953 sound/pci/hda/hda_codec.c 	kctl = snd_ctl_make_virtual_master(name, tlv);
kctl             1954 sound/pci/hda/hda_codec.c 	if (!kctl)
kctl             1956 sound/pci/hda/hda_codec.c 	err = snd_hda_ctl_add(codec, 0, kctl);
kctl             1960 sound/pci/hda/hda_codec.c 	err = map_slaves(codec, slaves, suffix, add_slave, kctl);
kctl             1965 sound/pci/hda/hda_codec.c 	put_kctl_with_value(kctl, 0);
kctl             1971 sound/pci/hda/hda_codec.c 		snd_ctl_apply_vmaster_slaves(kctl,
kctl             1977 sound/pci/hda/hda_codec.c 		*ctl_ret = kctl;
kctl             2050 sound/pci/hda/hda_codec.c 	struct snd_kcontrol *kctl;
kctl             2059 sound/pci/hda/hda_codec.c 	kctl = snd_ctl_new1(&vmaster_mute_mode, hook);
kctl             2060 sound/pci/hda/hda_codec.c 	if (!kctl)
kctl             2062 sound/pci/hda/hda_codec.c 	return snd_hda_ctl_add(codec, 0, kctl);
kctl             2442 sound/pci/hda/hda_codec.c 	struct snd_kcontrol *kctl;
kctl             2457 sound/pci/hda/hda_codec.c 			kctl = find_mixer_ctl(codec, dig_mix->name, 0, 0);
kctl             2458 sound/pci/hda/hda_codec.c 			if (!kctl)
kctl             2460 sound/pci/hda/hda_codec.c 			kctl->id.index = spdif_index;
kctl             2476 sound/pci/hda/hda_codec.c 		kctl = snd_ctl_new1(dig_mix, codec);
kctl             2477 sound/pci/hda/hda_codec.c 		if (!kctl)
kctl             2479 sound/pci/hda/hda_codec.c 		kctl->id.index = idx;
kctl             2480 sound/pci/hda/hda_codec.c 		kctl->private_value = codec->spdif_out.used - 1;
kctl             2481 sound/pci/hda/hda_codec.c 		err = snd_hda_ctl_add(codec, associated_nid, kctl);
kctl             2596 sound/pci/hda/hda_codec.c 	struct snd_kcontrol *kctl;
kctl             2601 sound/pci/hda/hda_codec.c 	kctl = snd_ctl_new1(&spdif_share_sw, mout);
kctl             2602 sound/pci/hda/hda_codec.c 	if (!kctl)
kctl             2605 sound/pci/hda/hda_codec.c 	return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl);
kctl             2692 sound/pci/hda/hda_codec.c 	struct snd_kcontrol *kctl;
kctl             2702 sound/pci/hda/hda_codec.c 		kctl = snd_ctl_new1(dig_mix, codec);
kctl             2703 sound/pci/hda/hda_codec.c 		if (!kctl)
kctl             2705 sound/pci/hda/hda_codec.c 		kctl->private_value = nid;
kctl             2706 sound/pci/hda/hda_codec.c 		err = snd_hda_ctl_add(codec, nid, kctl);
kctl             3338 sound/pci/hda/hda_codec.c 		struct snd_kcontrol *kctl;
kctl             3343 sound/pci/hda/hda_codec.c 			kctl = snd_ctl_new1(knew, codec);
kctl             3344 sound/pci/hda/hda_codec.c 			if (!kctl)
kctl             3347 sound/pci/hda/hda_codec.c 				kctl->id.device = addr;
kctl             3349 sound/pci/hda/hda_codec.c 				kctl->id.index = idx;
kctl             3350 sound/pci/hda/hda_codec.c 			err = snd_hda_ctl_add(codec, 0, kctl);
kctl               79 sound/pci/hda/hda_generic.c 		struct snd_kcontrol_new *kctl = spec->kctls.list;
kctl               82 sound/pci/hda/hda_generic.c 			kfree(kctl[i].name);
kctl             2687 sound/pci/hda/hda_generic.c 	const struct snd_kcontrol_new *kctl;
kctl             2690 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->kctls, i, kctl) {
kctl             2691 sound/pci/hda/hda_generic.c 		if (!strcmp(kctl->name, name) && kctl->index == idx)
kctl              537 sound/pci/hda/hda_local.h 	struct snd_kcontrol *kctl;
kctl              544 sound/pci/hda/hda_local.h 		    struct snd_kcontrol *kctl);
kctl              545 sound/pci/hda/hda_local.h int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl,
kctl               53 sound/pci/hda/hda_proc.c 	struct snd_kcontrol *kctl;
kctl               57 sound/pci/hda/hda_proc.c 			kctl = item->kctl;
kctl               60 sound/pci/hda/hda_proc.c 			  kctl->id.name, kctl->id.index + item->index,
kctl               61 sound/pci/hda/hda_proc.c 			  kctl->id.device);
kctl               66 sound/pci/hda/hda_proc.c 				  get_amp_channels(kctl),
kctl               67 sound/pci/hda/hda_proc.c 				  get_amp_direction(kctl) ? "Out" : "In",
kctl               68 sound/pci/hda/hda_proc.c 				  get_amp_index(kctl),
kctl               69 sound/pci/hda/hda_proc.c 				  get_amp_offset(kctl));
kctl               59 sound/pci/hda/patch_analog.c 		struct snd_kcontrol *kctl;
kctl               60 sound/pci/hda/patch_analog.c 		kctl = snd_ctl_new1(knew, codec);
kctl               61 sound/pci/hda/patch_analog.c 		if (!kctl)
kctl               63 sound/pci/hda/patch_analog.c 		kctl->private_value = spec->beep_amp;
kctl               64 sound/pci/hda/patch_analog.c 		err = snd_hda_ctl_add(codec, 0, kctl);
kctl              714 sound/pci/hda/patch_cirrus.c 		struct snd_kcontrol *kctl;
kctl              718 sound/pci/hda/patch_cirrus.c 		kctl = snd_hda_find_mixer_ctl(codec, "IEC958 Playback Switch");
kctl              719 sound/pci/hda/patch_cirrus.c 		if (!kctl)
kctl              721 sound/pci/hda/patch_cirrus.c 		spec->spdif_sw_put = kctl->put;
kctl              722 sound/pci/hda/patch_cirrus.c 		kctl->put = cs4208_spdif_sw_put;
kctl              534 sound/pci/hda/patch_conexant.c 	struct snd_kcontrol_new *kctl;
kctl              553 sound/pci/hda/patch_conexant.c 	snd_array_for_each(&spec->gen.kctls, i, kctl) {
kctl              554 sound/pci/hda/patch_conexant.c 		if (!strcmp(kctl->name, "Mic Boost Volume")) {
kctl              555 sound/pci/hda/patch_conexant.c 			kctl->put = olpc_xo_mic_boost_put;
kctl              404 sound/pci/hda/patch_hdmi.c 	struct snd_kcontrol *kctl;
kctl              408 sound/pci/hda/patch_hdmi.c 	kctl = snd_ctl_new1(&eld_bytes_ctl, codec);
kctl              409 sound/pci/hda/patch_hdmi.c 	if (!kctl)
kctl              411 sound/pci/hda/patch_hdmi.c 	kctl->private_value = pcm_idx;
kctl              412 sound/pci/hda/patch_hdmi.c 	kctl->id.device = device;
kctl              417 sound/pci/hda/patch_hdmi.c 	err = snd_hda_ctl_add(codec, 0, kctl);
kctl              421 sound/pci/hda/patch_hdmi.c 	get_hdmi_pcm(spec, pcm_idx)->eld_ctl = kctl;
kctl              317 sound/pci/hda/patch_realtek.c 	struct snd_kcontrol *kctl;
kctl              320 sound/pci/hda/patch_realtek.c 	kctl = snd_hda_find_mixer_ctl(codec, "Master Playback Volume");
kctl              321 sound/pci/hda/patch_realtek.c 	if (!kctl)
kctl              331 sound/pci/hda/patch_realtek.c 	kctl->put(kctl, uctl);
kctl             2075 sound/pci/hda/patch_realtek.c 	struct snd_kcontrol *kctl;
kctl             2077 sound/pci/hda/patch_realtek.c 	kctl = snd_hda_find_mixer_ctl(codec, oldname);
kctl             2078 sound/pci/hda/patch_realtek.c 	if (kctl)
kctl             2079 sound/pci/hda/patch_realtek.c 		strcpy(kctl->id.name, newname);
kctl              952 sound/pci/hda/patch_sigmatel.c 	struct snd_kcontrol_new *kctl;
kctl              970 sound/pci/hda/patch_sigmatel.c 	kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer);
kctl              971 sound/pci/hda/patch_sigmatel.c 	if (!kctl)
kctl              973 sound/pci/hda/patch_sigmatel.c 	kctl->count = cfg->dig_outs;
kctl             1904 sound/pci/ice1712/aureon.c 				struct snd_kcontrol *kctl;
kctl             1905 sound/pci/ice1712/aureon.c 				err = snd_ctl_add(ice->card, (kctl = snd_ctl_new1(&cs8415_controls[i], ice)));
kctl             1909 sound/pci/ice1712/aureon.c 					kctl->id.device = ice->pcm->device;
kctl             2404 sound/pci/ice1712/ice1712.c 	struct snd_kcontrol *kctl;
kctl             2408 sound/pci/ice1712/ice1712.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_default, ice));
kctl             2411 sound/pci/ice1712/ice1712.c 	kctl->id.device = ice->pcm_pro->device;
kctl             2412 sound/pci/ice1712/ice1712.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskc, ice));
kctl             2415 sound/pci/ice1712/ice1712.c 	kctl->id.device = ice->pcm_pro->device;
kctl             2416 sound/pci/ice1712/ice1712.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskp, ice));
kctl             2419 sound/pci/ice1712/ice1712.c 	kctl->id.device = ice->pcm_pro->device;
kctl             2420 sound/pci/ice1712/ice1712.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_stream, ice));
kctl             2423 sound/pci/ice1712/ice1712.c 	kctl->id.device = ice->pcm_pro->device;
kctl             2424 sound/pci/ice1712/ice1712.c 	ice->spdif.stream_ctl = kctl;
kctl             2417 sound/pci/ice1712/ice1724.c 	struct snd_kcontrol *kctl;
kctl             2433 sound/pci/ice1712/ice1724.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_default, ice));
kctl             2436 sound/pci/ice1712/ice1724.c 	kctl->id.device = ice->pcm->device;
kctl             2437 sound/pci/ice1712/ice1724.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskc, ice));
kctl             2440 sound/pci/ice1712/ice1724.c 	kctl->id.device = ice->pcm->device;
kctl             2441 sound/pci/ice1712/ice1724.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskp, ice));
kctl             2444 sound/pci/ice1712/ice1724.c 	kctl->id.device = ice->pcm->device;
kctl             2446 sound/pci/ice1712/ice1724.c 	err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_stream, ice));
kctl             2449 sound/pci/ice1712/ice1724.c 	kctl->id.device = ice->pcm->device;
kctl             2450 sound/pci/ice1712/ice1724.c 	ice->spdif.stream_ctl = kctl;
kctl              181 sound/pci/ice1712/psc724.c 	struct snd_kcontrol *kctl;
kctl              194 sound/pci/ice1712/psc724.c 	kctl = snd_ctl_find_id(ice->card, &elem_id);
kctl              195 sound/pci/ice1712/psc724.c 	snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl              199 sound/pci/ice1712/psc724.c 	kctl = snd_ctl_find_id(ice->card, &elem_id);
kctl              200 sound/pci/ice1712/psc724.c 	snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id);
kctl              315 sound/pci/ice1712/wm8766.c 	wm->ctl[num].kctl = ctl;
kctl              119 sound/pci/ice1712/wm8766.h 	struct snd_kcontrol *kctl;
kctl               35 sound/pci/ice1712/wm8776.c 	struct snd_kcontrol *kctl;
kctl               43 sound/pci/ice1712/wm8776.c 	kctl = snd_ctl_find_id(card, &elem_id);
kctl               44 sound/pci/ice1712/wm8776.c 	if (!kctl)
kctl               46 sound/pci/ice1712/wm8776.c 	index_offset = snd_ctl_get_ioff(kctl, &kctl->id);
kctl               47 sound/pci/ice1712/wm8776.c 	vd = &kctl->vd[index_offset];
kctl               52 sound/pci/ice1712/wm8776.c 	snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id);
kctl             1885 sound/pci/rme32.c 	struct snd_kcontrol *kctl;
kctl             1888 sound/pci/rme32.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme32_controls[idx], rme32))) < 0)
kctl             1891 sound/pci/rme32.c 			rme32->spdif_ctl = kctl;
kctl             2344 sound/pci/rme96.c 	struct snd_kcontrol *kctl;
kctl             2347 sound/pci/rme96.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme96_controls[idx], rme96))) < 0)
kctl             2350 sound/pci/rme96.c 			rme96->spdif_ctl = kctl;
kctl             3266 sound/pci/rme9652/hdsp.c 	struct snd_kcontrol *kctl;
kctl             3271 sound/pci/rme9652/hdsp.c 			err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp));
kctl             3279 sound/pci/rme9652/hdsp.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_controls[idx], hdsp))) < 0)
kctl             3282 sound/pci/rme9652/hdsp.c 			hdsp->spdif_ctl = kctl;
kctl             3288 sound/pci/rme9652/hdsp.c 	if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp))))
kctl             3293 sound/pci/rme9652/hdsp.c 			if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp))))
kctl             3301 sound/pci/rme9652/hdsp.c 			if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_9632_controls[idx], hdsp))) < 0)
kctl             3308 sound/pci/rme9652/hdsp.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_96xx_aeb, hdsp))) < 0)
kctl             4673 sound/pci/rme9652/hdspm.c 	struct snd_kcontrol *kctl;
kctl             4720 sound/pci/rme9652/hdspm.c 		kctl = snd_ctl_new1(&snd_hdspm_playback_mixer, hdspm);
kctl             4721 sound/pci/rme9652/hdspm.c 		err = snd_ctl_add(card, kctl);
kctl             4724 sound/pci/rme9652/hdspm.c 		hdspm->playback_mixer_ctls[idx] = kctl;
kctl             1527 sound/pci/rme9652/rme9652.c 	struct snd_kcontrol *kctl;
kctl             1530 sound/pci/rme9652/rme9652.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_controls[idx], rme9652))) < 0)
kctl             1533 sound/pci/rme9652/rme9652.c 			rme9652->spdif_ctl = kctl;
kctl             1537 sound/pci/rme9652/rme9652.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat3_check, rme9652))) < 0)
kctl             1541 sound/pci/rme9652/rme9652.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat1_input, rme9652))) < 0)
kctl             1104 sound/pci/sonicvibes.c 	struct snd_kcontrol *kctl;
kctl             1114 sound/pci/sonicvibes.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_sonicvibes_controls[idx], sonic))) < 0)
kctl             1118 sound/pci/sonicvibes.c 		case 1: kctl->private_free = snd_sonicvibes_master_free; break;
kctl             2879 sound/pci/trident/trident_main.c 					   struct snd_kcontrol *kctl,
kctl             2884 sound/pci/trident/trident_main.c 	if (! kctl)
kctl             2887 sound/pci/trident/trident_main.c 		kctl->vd[num].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl             2889 sound/pci/trident/trident_main.c 		kctl->vd[num].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl             2892 sound/pci/trident/trident_main.c 		       snd_ctl_build_ioff(&id, kctl, num));
kctl             2950 sound/pci/trident/trident_main.c 	struct snd_kcontrol *kctl;
kctl             3003 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_wave_control, trident))) < 0)
kctl             3005 sound/pci/trident/trident_main.c 		kctl->put(kctl, uctl);
kctl             3006 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_music_control, trident))) < 0)
kctl             3008 sound/pci/trident/trident_main.c 		kctl->put(kctl, uctl);
kctl             3041 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_ac97_rear_control, trident))) < 0)
kctl             3043 sound/pci/trident/trident_main.c 		kctl->put(kctl, uctl);
kctl             3047 sound/pci/trident/trident_main.c 		kctl = snd_ctl_new1(&snd_trident_spdif_control, trident);
kctl             3048 sound/pci/trident/trident_main.c 		if (kctl == NULL) {
kctl             3053 sound/pci/trident/trident_main.c 			kctl->id.index++;
kctl             3055 sound/pci/trident/trident_main.c 			kctl->id.index++;
kctl             3056 sound/pci/trident/trident_main.c 		idx = kctl->id.index;
kctl             3057 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             3059 sound/pci/trident/trident_main.c 		kctl->put(kctl, uctl);
kctl             3061 sound/pci/trident/trident_main.c 		kctl = snd_ctl_new1(&snd_trident_spdif_default, trident);
kctl             3062 sound/pci/trident/trident_main.c 		if (kctl == NULL) {
kctl             3066 sound/pci/trident/trident_main.c 		kctl->id.index = idx;
kctl             3067 sound/pci/trident/trident_main.c 		kctl->id.device = pcm_spdif_device;
kctl             3068 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             3071 sound/pci/trident/trident_main.c 		kctl = snd_ctl_new1(&snd_trident_spdif_mask, trident);
kctl             3072 sound/pci/trident/trident_main.c 		if (kctl == NULL) {
kctl             3076 sound/pci/trident/trident_main.c 		kctl->id.index = idx;
kctl             3077 sound/pci/trident/trident_main.c 		kctl->id.device = pcm_spdif_device;
kctl             3078 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             3081 sound/pci/trident/trident_main.c 		kctl = snd_ctl_new1(&snd_trident_spdif_stream, trident);
kctl             3082 sound/pci/trident/trident_main.c 		if (kctl == NULL) {
kctl             3086 sound/pci/trident/trident_main.c 		kctl->id.index = idx;
kctl             3087 sound/pci/trident/trident_main.c 		kctl->id.device = pcm_spdif_device;
kctl             3088 sound/pci/trident/trident_main.c 		if ((err = snd_ctl_add(card, kctl)) < 0)
kctl             3090 sound/pci/trident/trident_main.c 		trident->spdif_pcm_ctl = kctl;
kctl             2017 sound/pci/via82xx.c 				struct snd_kcontrol *kctl;
kctl             2019 sound/pci/via82xx.c 				kctl = snd_ctl_new1(
kctl             2021 sound/pci/via82xx.c 				if (!kctl)
kctl             2023 sound/pci/via82xx.c 				kctl->id.subdevice = i;
kctl             2024 sound/pci/via82xx.c 				err = snd_ctl_add(chip->card, kctl);
kctl             2027 sound/pci/via82xx.c 				chip->dxs_controls[i] = kctl;
kctl              381 sound/pci/ymfpci/ymfpci_main.c 	struct snd_kcontrol *kctl = NULL;
kctl              400 sound/pci/ymfpci/ymfpci_main.c 			kctl = chip->pcm_mixer[substream->number].ctl;
kctl              401 sound/pci/ymfpci/ymfpci_main.c 			kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl              417 sound/pci/ymfpci/ymfpci_main.c 	if (kctl)
kctl              418 sound/pci/ymfpci/ymfpci_main.c 		snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id);
kctl              667 sound/pci/ymfpci/ymfpci_main.c 	struct snd_kcontrol *kctl;
kctl              679 sound/pci/ymfpci/ymfpci_main.c 		kctl = chip->pcm_mixer[substream->number].ctl;
kctl              680 sound/pci/ymfpci/ymfpci_main.c 		kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
kctl              681 sound/pci/ymfpci/ymfpci_main.c 		snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id);
kctl             1795 sound/pci/ymfpci/ymfpci_main.c 	struct snd_kcontrol *kctl;
kctl             1824 sound/pci/ymfpci/ymfpci_main.c 		kctl = snd_ctl_new1(&snd_ymfpci_dup4ch, chip);
kctl             1825 sound/pci/ymfpci/ymfpci_main.c 		err = snd_ctl_add(chip->card, kctl);
kctl             1833 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_default, chip))) < 0)
kctl             1835 sound/pci/ymfpci/ymfpci_main.c 	kctl->id.device = chip->pcm_spdif->device;
kctl             1836 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_mask, chip))) < 0)
kctl             1838 sound/pci/ymfpci/ymfpci_main.c 	kctl->id.device = chip->pcm_spdif->device;
kctl             1839 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_stream, chip))) < 0)
kctl             1841 sound/pci/ymfpci/ymfpci_main.c 	kctl->id.device = chip->pcm_spdif->device;
kctl             1842 sound/pci/ymfpci/ymfpci_main.c 	chip->spdif_pcm_ctl = kctl;
kctl             1846 sound/pci/ymfpci/ymfpci_main.c 	    (err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_drec_source, chip))) < 0)
kctl             1860 sound/pci/ymfpci/ymfpci_main.c 		kctl = snd_ctl_new1(&snd_ymfpci_pcm_volume, chip);
kctl             1861 sound/pci/ymfpci/ymfpci_main.c 		if (!kctl)
kctl             1863 sound/pci/ymfpci/ymfpci_main.c 		kctl->id.device = chip->pcm->device;
kctl             1864 sound/pci/ymfpci/ymfpci_main.c 		kctl->id.subdevice = idx;
kctl             1865 sound/pci/ymfpci/ymfpci_main.c 		kctl->private_value = (unsigned long)substream;
kctl             1866 sound/pci/ymfpci/ymfpci_main.c 		if ((err = snd_ctl_add(chip->card, kctl)) < 0)
kctl             1870 sound/pci/ymfpci/ymfpci_main.c 		chip->pcm_mixer[idx].ctl = kctl;
kctl              269 sound/soc/codecs/ak4118.c 	struct snd_kcontrol *kctl;
kctl              278 sound/soc/codecs/ak4118.c 		kctl = snd_soc_card_get_kcontrol(component->card,
kctl              280 sound/soc/codecs/ak4118.c 		if (!kctl)
kctl              282 sound/soc/codecs/ak4118.c 		id = &kctl->id;
kctl              612 sound/soc/codecs/hdmi-codec.c 	struct snd_kcontrol *kctl;
kctl              632 sound/soc/codecs/hdmi-codec.c 	hcp->chmap_info->kctl->get = hdmi_codec_chmap_ctl_get;
kctl              639 sound/soc/codecs/hdmi-codec.c 	kctl = snd_ctl_new1(&hdmi_eld_ctl, dai->component);
kctl              640 sound/soc/codecs/hdmi-codec.c 	if (!kctl)
kctl              643 sound/soc/codecs/hdmi-codec.c 	return snd_ctl_add(rtd->card->snd_card, kctl);
kctl              946 sound/soc/codecs/wm_adsp.c static int wm_coeff_info(struct snd_kcontrol *kctl,
kctl              950 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl             1061 sound/soc/codecs/wm_adsp.c static int wm_coeff_put(struct snd_kcontrol *kctl,
kctl             1065 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl             1086 sound/soc/codecs/wm_adsp.c static int wm_coeff_tlv_put(struct snd_kcontrol *kctl,
kctl             1090 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl             1111 sound/soc/codecs/wm_adsp.c static int wm_coeff_put_acked(struct snd_kcontrol *kctl,
kctl             1115 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl             1166 sound/soc/codecs/wm_adsp.c static int wm_coeff_get(struct snd_kcontrol *kctl,
kctl             1170 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl             1194 sound/soc/codecs/wm_adsp.c static int wm_coeff_tlv_get(struct snd_kcontrol *kctl,
kctl             1198 sound/soc/codecs/wm_adsp.c 		(struct soc_bytes_ext *)kctl->private_value;
kctl              296 sound/soc/intel/atom/sst-atom-controls.c 		bc = (void *)algo->kctl->private_value;
kctl              299 sound/soc/intel/atom/sst-atom-controls.c 				algo->kctl->id.name, pipe);
kctl              590 sound/soc/intel/atom/sst-atom-controls.c 		struct snd_kcontrol *kctl = gain->kctl;
kctl              592 sound/soc/intel/atom/sst-atom-controls.c 		dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name);
kctl              593 sound/soc/intel/atom/sst-atom-controls.c 		mc = (void *)kctl->private_value;
kctl             1369 sound/soc/intel/atom/sst-atom-controls.c static int sst_fill_module_list(struct snd_kcontrol *kctl,
kctl             1382 sound/soc/intel/atom/sst-atom-controls.c 		struct sst_gain_mixer_control *mc = (void *)kctl->private_value;
kctl             1385 sound/soc/intel/atom/sst-atom-controls.c 		module->kctl = kctl;
kctl             1388 sound/soc/intel/atom/sst-atom-controls.c 		struct sst_algo_control *bc = (void *)kctl->private_value;
kctl             1391 sound/soc/intel/atom/sst-atom-controls.c 		module->kctl = kctl;
kctl             1395 sound/soc/intel/atom/sst-atom-controls.c 				type, kctl->id.name);
kctl             1413 sound/soc/intel/atom/sst-atom-controls.c 	struct snd_kcontrol *kctl;
kctl             1420 sound/soc/intel/atom/sst-atom-controls.c 	list_for_each_entry(kctl, &card->controls, list) {
kctl             1421 sound/soc/intel/atom/sst-atom-controls.c 		idx = strchr(kctl->id.name, ' ');
kctl             1424 sound/soc/intel/atom/sst-atom-controls.c 		index = idx - (char*)kctl->id.name;
kctl             1425 sound/soc/intel/atom/sst-atom-controls.c 		if (strncmp(kctl->id.name, w->name, index))
kctl             1428 sound/soc/intel/atom/sst-atom-controls.c 		if (strstr(kctl->id.name, "Volume"))
kctl             1429 sound/soc/intel/atom/sst-atom-controls.c 			ret = sst_fill_module_list(kctl, w, SST_MODULE_GAIN);
kctl             1431 sound/soc/intel/atom/sst-atom-controls.c 		else if (strstr(kctl->id.name, "params"))
kctl             1432 sound/soc/intel/atom/sst-atom-controls.c 			ret = sst_fill_module_list(kctl, w, SST_MODULE_ALGO);
kctl             1434 sound/soc/intel/atom/sst-atom-controls.c 		else if (strstr(kctl->id.name, "Switch") &&
kctl             1435 sound/soc/intel/atom/sst-atom-controls.c 			 strstr(kctl->id.name, "Gain")) {
kctl             1437 sound/soc/intel/atom/sst-atom-controls.c 						(void *)kctl->private_value;
kctl             1441 sound/soc/intel/atom/sst-atom-controls.c 		} else if (strstr(kctl->id.name, "interleaver")) {
kctl             1442 sound/soc/intel/atom/sst-atom-controls.c 			struct sst_enum *e = (void *)kctl->private_value;
kctl             1446 sound/soc/intel/atom/sst-atom-controls.c 		} else if (strstr(kctl->id.name, "deinterleaver")) {
kctl             1447 sound/soc/intel/atom/sst-atom-controls.c 			struct sst_enum *e = (void *)kctl->private_value;
kctl              547 sound/soc/intel/atom/sst-atom-controls.h 	struct snd_kcontrol *kctl;
kctl             2992 sound/soc/intel/skylake/skl-topology.c 				struct snd_kcontrol_new *kctl,
kctl             3005 sound/soc/intel/skylake/skl-topology.c 		if (kctl->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) {
kctl             3006 sound/soc/intel/skylake/skl-topology.c 			sb = (struct soc_bytes_ext *)kctl->private_value;
kctl             3016 sound/soc/intel/skylake/skl-topology.c 		if (kctl->access & SNDRV_CTL_ELEM_ACCESS_READWRITE) {
kctl             3017 sound/soc/intel/skylake/skl-topology.c 			se = (struct soc_enum *)kctl->private_value;
kctl               69 sound/soc/pxa/mioa701_wm9713.c 			  struct snd_kcontrol *kctl, int event)
kctl             2303 sound/soc/soc-core.c 	struct snd_kcontrol *kctl;
kctl             2308 sound/soc/soc-core.c 	list_for_each_entry(kctl, &card->controls, list)
kctl             2309 sound/soc/soc-core.c 		if (!strncmp(kctl->id.name, name, sizeof(kctl->id.name)))
kctl             2310 sound/soc/soc-core.c 			return kctl;
kctl              460 sound/soc/soc-dapm.c static void dapm_kcontrol_free(struct snd_kcontrol *kctl)
kctl              462 sound/soc/soc-dapm.c 	struct dapm_kcontrol_data *data = snd_kcontrol_chip(kctl);
kctl              596 sound/soc/soc-ops.c 	struct snd_kcontrol *kctl;
kctl              605 sound/soc/soc-ops.c 	list_for_each_entry(kctl, &snd_card->controls, list) {
kctl              606 sound/soc/soc-ops.c 		if (!strncmp(kctl->id.name, name, sizeof(kctl->id.name))) {
kctl              612 sound/soc/soc-ops.c 		mc = (struct soc_mixer_control *)kctl->private_value;
kctl              790 sound/sparc/amd7930.c static int snd_amd7930_info_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo)
kctl              800 sound/sparc/amd7930.c static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol)
kctl              802 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_kcontrol_chip(kctl);
kctl              803 sound/sparc/amd7930.c 	int type = kctl->private_value;
kctl              824 sound/sparc/amd7930.c static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol)
kctl              826 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_kcontrol_chip(kctl);
kctl              828 sound/sparc/amd7930.c 	int type = kctl->private_value;
kctl              736 sound/spi/at73c213.c 		struct snd_kcontrol *kctl;
kctl              737 sound/spi/at73c213.c 		kctl = snd_ctl_find_numid(card, idx);
kctl              738 sound/spi/at73c213.c 		if (kctl)
kctl              739 sound/spi/at73c213.c 			snd_ctl_remove(card, kctl);
kctl              580 sound/usb/mixer.c 			      struct snd_kcontrol *kctl)
kctl              585 sound/usb/mixer.c 	while (snd_ctl_find_id(mixer->chip->card, &kctl->id))
kctl              586 sound/usb/mixer.c 		kctl->id.index++;
kctl              587 sound/usb/mixer.c 	err = snd_ctl_add(mixer->chip->card, kctl);
kctl              593 sound/usb/mixer.c 	list->kctl = kctl;
kctl             1054 sound/usb/mixer.c void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl)
kctl             1056 sound/usb/mixer.c 	usb_mixer_elem_info_free(kctl->private_data);
kctl             1057 sound/usb/mixer.c 	kctl->private_data = NULL;
kctl             1066 sound/usb/mixer.c 				  struct snd_kcontrol *kctl)
kctl             1072 sound/usb/mixer.c 		if (strcmp(kctl->id.name, "Effect Duration") == 0) {
kctl             1078 sound/usb/mixer.c 		if (strcmp(kctl->id.name, "Effect Volume") == 0 ||
kctl             1079 sound/usb/mixer.c 		    strcmp(kctl->id.name, "Effect Feedback Volume") == 0) {
kctl             1084 sound/usb/mixer.c 		if (strstr(kctl->id.name, "Effect Return") != NULL) {
kctl             1090 sound/usb/mixer.c 		if ((strstr(kctl->id.name, "Playback Volume") != NULL) ||
kctl             1091 sound/usb/mixer.c 			(strstr(kctl->id.name, "Effect Send") != NULL)) {
kctl             1100 sound/usb/mixer.c 		if (strcmp(kctl->id.name, "Effect Duration") == 0) {
kctl             1108 sound/usb/mixer.c 		if (strcmp(kctl->id.name, "Effect Volume") == 0 ||
kctl             1109 sound/usb/mixer.c 		    strcmp(kctl->id.name, "Effect Feedback Volume") == 0) {
kctl             1119 sound/usb/mixer.c 		if (!strcmp(kctl->id.name, "PCM Playback Volume")) {
kctl             1135 sound/usb/mixer.c 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
kctl             1144 sound/usb/mixer.c 		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
kctl             1168 sound/usb/mixer.c 		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
kctl             1175 sound/usb/mixer.c 		if ((strstr(kctl->id.name, "Playback Volume") != NULL) ||
kctl             1176 sound/usb/mixer.c 			strstr(kctl->id.name, "Capture Volume") != NULL) {
kctl             1189 sound/usb/mixer.c 				   int default_min, struct snd_kcontrol *kctl)
kctl             1273 sound/usb/mixer.c 	if (kctl)
kctl             1274 sound/usb/mixer.c 		volume_control_quirks(cval, kctl);
kctl             1512 sound/usb/mixer.c static size_t append_ctl_name(struct snd_kcontrol *kctl, const char *str)
kctl             1514 sound/usb/mixer.c 	return strlcat(kctl->id.name, str, sizeof(kctl->id.name));
kctl             1522 sound/usb/mixer.c static void check_no_speaker_on_headset(struct snd_kcontrol *kctl,
kctl             1530 sound/usb/mixer.c 	if (strcmp("Speaker", kctl->id.name))
kctl             1542 sound/usb/mixer.c 	strlcpy(kctl->id.name, "Headphone", sizeof(kctl->id.name));
kctl             1566 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             1616 sound/usb/mixer.c 		kctl = snd_ctl_new1(&usb_feature_unit_ctl_ro, cval);
kctl             1618 sound/usb/mixer.c 		kctl = snd_ctl_new1(&usb_feature_unit_ctl, cval);
kctl             1620 sound/usb/mixer.c 	if (!kctl) {
kctl             1625 sound/usb/mixer.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl             1627 sound/usb/mixer.c 	len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name));
kctl             1631 sound/usb/mixer.c 				kctl->id.name, sizeof(kctl->id.name));
kctl             1647 sound/usb/mixer.c 						    kctl->id.name,
kctl             1648 sound/usb/mixer.c 						    sizeof(kctl->id.name), 1);
kctl             1651 sound/usb/mixer.c 						    kctl->id.name,
kctl             1652 sound/usb/mixer.c 						    sizeof(kctl->id.name), 1);
kctl             1654 sound/usb/mixer.c 				snprintf(kctl->id.name, sizeof(kctl->id.name),
kctl             1659 sound/usb/mixer.c 			check_no_speaker_on_headset(kctl, mixer->chip->card);
kctl             1668 sound/usb/mixer.c 				append_ctl_name(kctl, " Capture");
kctl             1670 sound/usb/mixer.c 				append_ctl_name(kctl, " Playback");
kctl             1672 sound/usb/mixer.c 		append_ctl_name(kctl, control == UAC_FU_MUTE ?
kctl             1677 sound/usb/mixer.c 			strlcpy(kctl->id.name, audio_feature_info[control-1].name,
kctl             1678 sound/usb/mixer.c 				sizeof(kctl->id.name));
kctl             1683 sound/usb/mixer.c 	get_min_max_with_quirks(cval, 0, kctl);
kctl             1688 sound/usb/mixer.c 			kctl->tlv.c = snd_usb_mixer_vol_tlv;
kctl             1689 sound/usb/mixer.c 			kctl->vd[0].access |=
kctl             1695 sound/usb/mixer.c 	snd_usb_mixer_fu_apply_quirk(mixer, cval, unitid, kctl);
kctl             1709 sound/usb/mixer.c 			       cval->head.id, kctl->id.name, cval->channels,
kctl             1714 sound/usb/mixer.c 		      cval->head.id, kctl->id.name, cval->channels,
kctl             1716 sound/usb/mixer.c 	snd_usb_mixer_add_control(&cval->head, kctl);
kctl             1764 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             1795 sound/usb/mixer.c 	kctl = snd_ctl_new1(&usb_connector_ctl_ro, cval);
kctl             1796 sound/usb/mixer.c 	if (!kctl) {
kctl             1802 sound/usb/mixer.c 	if (check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)))
kctl             1803 sound/usb/mixer.c 		strlcat(kctl->id.name, " Jack", sizeof(kctl->id.name));
kctl             1805 sound/usb/mixer.c 		get_connector_control_name(mixer, term, is_input, kctl->id.name,
kctl             1806 sound/usb/mixer.c 					   sizeof(kctl->id.name));
kctl             1807 sound/usb/mixer.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl             1808 sound/usb/mixer.c 	snd_usb_mixer_add_control(&cval->head, kctl);
kctl             1816 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             1845 sound/usb/mixer.c 	kctl = snd_ctl_new1(&usb_bool_master_control_ctl_ro, cval);
kctl             1847 sound/usb/mixer.c 	if (!kctl) {
kctl             1852 sound/usb/mixer.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl             1856 sound/usb/mixer.c 		snprintf(kctl->id.name, sizeof(kctl->id.name),
kctl             1859 sound/usb/mixer.c 		snprintf(kctl->id.name, sizeof(kctl->id.name),
kctl             1862 sound/usb/mixer.c 	return snd_usb_mixer_add_control(&cval->head, kctl);
kctl             2039 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             2065 sound/usb/mixer.c 	kctl = snd_ctl_new1(&usb_feature_unit_ctl, cval);
kctl             2066 sound/usb/mixer.c 	if (!kctl) {
kctl             2071 sound/usb/mixer.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl             2073 sound/usb/mixer.c 	len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name));
kctl             2075 sound/usb/mixer.c 		len = get_term_name(state->chip, iterm, kctl->id.name,
kctl             2076 sound/usb/mixer.c 				    sizeof(kctl->id.name), 0);
kctl             2078 sound/usb/mixer.c 		len = sprintf(kctl->id.name, "Mixer Source %d", in_ch + 1);
kctl             2079 sound/usb/mixer.c 	append_ctl_name(kctl, " Volume");
kctl             2082 sound/usb/mixer.c 		    cval->head.id, kctl->id.name, cval->channels, cval->min, cval->max);
kctl             2083 sound/usb/mixer.c 	snd_usb_mixer_add_control(&cval->head, kctl);
kctl             2346 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             2450 sound/usb/mixer.c 		kctl = snd_ctl_new1(&mixer_procunit_ctl, cval);
kctl             2451 sound/usb/mixer.c 		if (!kctl) {
kctl             2455 sound/usb/mixer.c 		kctl->private_free = snd_usb_mixer_elem_free;
kctl             2457 sound/usb/mixer.c 		if (check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name))) {
kctl             2460 sound/usb/mixer.c 			strlcpy(kctl->id.name, info->name, sizeof(kctl->id.name));
kctl             2470 sound/usb/mixer.c 							       kctl->id.name,
kctl             2471 sound/usb/mixer.c 							       sizeof(kctl->id.name));
kctl             2473 sound/usb/mixer.c 				strlcpy(kctl->id.name, name, sizeof(kctl->id.name));
kctl             2475 sound/usb/mixer.c 		append_ctl_name(kctl, " ");
kctl             2476 sound/usb/mixer.c 		append_ctl_name(kctl, valinfo->suffix);
kctl             2480 sound/usb/mixer.c 			      cval->head.id, kctl->id.name, cval->channels,
kctl             2483 sound/usb/mixer.c 		err = snd_usb_mixer_add_control(&cval->head, kctl);
kctl             2583 sound/usb/mixer.c static void usb_mixer_selector_elem_free(struct snd_kcontrol *kctl)
kctl             2587 sound/usb/mixer.c 	if (kctl->private_data) {
kctl             2588 sound/usb/mixer.c 		struct usb_mixer_elem_info *cval = kctl->private_data;
kctl             2591 sound/usb/mixer.c 		kctl->private_data = NULL;
kctl             2593 sound/usb/mixer.c 	if (kctl->private_value) {
kctl             2594 sound/usb/mixer.c 		char **itemlist = (char **)kctl->private_value;
kctl             2598 sound/usb/mixer.c 		kctl->private_value = 0;
kctl             2612 sound/usb/mixer.c 	struct snd_kcontrol *kctl;
kctl             2678 sound/usb/mixer.c 	kctl = snd_ctl_new1(&mixer_selectunit_ctl, cval);
kctl             2679 sound/usb/mixer.c 	if (! kctl) {
kctl             2684 sound/usb/mixer.c 	kctl->private_value = (unsigned long)namelist;
kctl             2685 sound/usb/mixer.c 	kctl->private_free = usb_mixer_selector_elem_free;
kctl             2688 sound/usb/mixer.c 	len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name));
kctl             2699 sound/usb/mixer.c 							nameid, kctl->id.name,
kctl             2700 sound/usb/mixer.c 							sizeof(kctl->id.name));
kctl             2710 sound/usb/mixer.c 				    kctl->id.name, sizeof(kctl->id.name), 0);
kctl             2713 sound/usb/mixer.c 			strlcpy(kctl->id.name, "USB", sizeof(kctl->id.name));
kctl             2718 sound/usb/mixer.c 			append_ctl_name(kctl, " Clock Source");
kctl             2720 sound/usb/mixer.c 			append_ctl_name(kctl, " Capture Source");
kctl             2722 sound/usb/mixer.c 			append_ctl_name(kctl, " Playback Source");
kctl             2726 sound/usb/mixer.c 		    cval->head.id, kctl->id.name, desc->bNrInPins);
kctl             2727 sound/usb/mixer.c 	return snd_usb_mixer_add_control(&cval->head, kctl);
kctl             3221 sound/usb/mixer.c 			       &list->kctl->id);
kctl             3256 sound/usb/mixer.c 				if (list->kctl)
kctl             3259 sound/usb/mixer.c 						    list->kctl->id.name,
kctl             3260 sound/usb/mixer.c 						    list->kctl->id.index);
kctl             3295 sound/usb/mixer.c 		if (!list->kctl)
kctl             3311 sound/usb/mixer.c 				       &info->head.kctl->id);
kctl             3450 sound/usb/mixer.c 	struct snd_kcontrol *kctl = snd_ctl_new1(&keep_iface_ctl, mixer);
kctl             3453 sound/usb/mixer.c 	if (snd_ctl_find_id(mixer->chip->card, &kctl->id)) {
kctl             3454 sound/usb/mixer.c 		snd_ctl_free_one(kctl);
kctl             3458 sound/usb/mixer.c 	return snd_ctl_add(mixer->chip->card, kctl);
kctl               67 sound/usb/mixer.h 	struct snd_kcontrol *kctl;
kctl              107 sound/usb/mixer.h 			      struct snd_kcontrol *kctl);
kctl              127 sound/usb/mixer.h extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
kctl               63 sound/usb/mixer_quirks.c 	struct snd_kcontrol *kctl;
kctl               85 sound/usb/mixer_quirks.c 	kctl = snd_ctl_new1(snd_usb_feature_unit_ctl, cval);
kctl               86 sound/usb/mixer_quirks.c 	if (!kctl) {
kctl               92 sound/usb/mixer_quirks.c 	snprintf(kctl->id.name, sizeof(kctl->id.name), name);
kctl               93 sound/usb/mixer_quirks.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl               97 sound/usb/mixer_quirks.c 		kctl->tlv.c = tlv_callback;
kctl               98 sound/usb/mixer_quirks.c 		kctl->vd[0].access |=
kctl              103 sound/usb/mixer_quirks.c 	return snd_usb_mixer_add_control(&cval->head, kctl);
kctl              144 sound/usb/mixer_quirks.c 	struct snd_kcontrol *kctl;
kctl              154 sound/usb/mixer_quirks.c 	kctl = snd_ctl_new1(knew, list);
kctl              155 sound/usb/mixer_quirks.c 	if (!kctl) {
kctl              159 sound/usb/mixer_quirks.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl              160 sound/usb/mixer_quirks.c 	return snd_usb_mixer_add_control(list, kctl);
kctl              346 sound/usb/mixer_quirks.c 	int priv_value = list->kctl->private_value;
kctl              507 sound/usb/mixer_quirks.c 					    list->kctl->private_value);
kctl              575 sound/usb/mixer_quirks.c 					  list->kctl->private_value);
kctl              596 sound/usb/mixer_quirks.c static int snd_mbox1_switch_get(struct snd_kcontrol *kctl,
kctl              599 sound/usb/mixer_quirks.c 	ucontrol->value.enumerated.item[0] = kctl->private_value;
kctl              671 sound/usb/mixer_quirks.c static int snd_mbox1_switch_put(struct snd_kcontrol *kctl,
kctl              674 sound/usb/mixer_quirks.c 	struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl);
kctl              679 sound/usb/mixer_quirks.c 	cur_val = kctl->private_value;
kctl              684 sound/usb/mixer_quirks.c 	kctl->private_value = new_val;
kctl              702 sound/usb/mixer_quirks.c 	return snd_mbox1_switch_update(list->mixer, list->kctl->private_value);
kctl              728 sound/usb/mixer_quirks.c 				   struct snd_kcontrol *kctl)
kctl              731 sound/usb/mixer_quirks.c 	unsigned int pval = kctl->private_value;
kctl              745 sound/usb/mixer_quirks.c 	kctl->private_value |= ((unsigned int)value << 24);
kctl              759 sound/usb/mixer_quirks.c 	unsigned int pval = list->kctl->private_value;
kctl              868 sound/usb/mixer_quirks.c 		snd_ni_control_init_val(mixer, list->kctl);
kctl              888 sound/usb/mixer_quirks.c 				   struct snd_kcontrol *kctl)
kctl              891 sound/usb/mixer_quirks.c 	unsigned int pval = kctl->private_value;
kctl              906 sound/usb/mixer_quirks.c 	kctl->private_value |= (unsigned int)value[0] << 24;
kctl              910 sound/usb/mixer_quirks.c static int snd_ftu_eff_switch_get(struct snd_kcontrol *kctl,
kctl              913 sound/usb/mixer_quirks.c 	ucontrol->value.enumerated.item[0] = kctl->private_value >> 24;
kctl              920 sound/usb/mixer_quirks.c 	unsigned int pval = list->kctl->private_value;
kctl              941 sound/usb/mixer_quirks.c static int snd_ftu_eff_switch_put(struct snd_kcontrol *kctl,
kctl              944 sound/usb/mixer_quirks.c 	struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl);
kctl              945 sound/usb/mixer_quirks.c 	unsigned int pval = list->kctl->private_value;
kctl              953 sound/usb/mixer_quirks.c 	kctl->private_value &= ~(0xff << 24);
kctl              954 sound/usb/mixer_quirks.c 	kctl->private_value |= new_val << 24;
kctl              979 sound/usb/mixer_quirks.c 	list->kctl->private_value = (validx << 8) | bUnitID;
kctl              980 sound/usb/mixer_quirks.c 	snd_ftu_eff_switch_init(mixer, list->kctl);
kctl             1546 sound/usb/mixer_quirks.c 	unsigned int pval = list->kctl->private_value;
kctl             1633 sound/usb/mixer_quirks.c 	u8 reg = list->kctl->private_value;
kctl             1661 sound/usb/mixer_quirks.c 	if (reg != list->kctl->private_value)
kctl             1763 sound/usb/mixer_quirks.c 						 list->kctl->private_value);
kctl             2330 sound/usb/mixer_quirks.c 					 struct snd_kcontrol *kctl)
kctl             2349 sound/usb/mixer_quirks.c 		kctl->tlv.p = scale;
kctl             2350 sound/usb/mixer_quirks.c 		kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ;
kctl             2351 sound/usb/mixer_quirks.c 		kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK;
kctl             2358 sound/usb/mixer_quirks.c 		kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK;
kctl             2364 sound/usb/mixer_quirks.c 				  struct snd_kcontrol *kctl)
kctl             2369 sound/usb/mixer_quirks.c 			snd_dragonfly_quirk_db_scale(mixer, cval, kctl);
kctl             2374 sound/usb/mixer_quirks.c 		if (strstr(kctl->id.name, "Playback"))
kctl               15 sound/usb/mixer_quirks.h 				  struct snd_kcontrol *kctl);
kctl              222 sound/usb/mixer_scarlett.c static int scarlett_ctl_switch_info(struct snd_kcontrol *kctl,
kctl              225 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              234 sound/usb/mixer_scarlett.c static int scarlett_ctl_switch_get(struct snd_kcontrol *kctl,
kctl              237 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              252 sound/usb/mixer_scarlett.c static int scarlett_ctl_switch_put(struct snd_kcontrol *kctl,
kctl              255 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              290 sound/usb/mixer_scarlett.c static int scarlett_ctl_info(struct snd_kcontrol *kctl,
kctl              293 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              298 sound/usb/mixer_scarlett.c 	uinfo->value.integer.max = (int)kctl->private_value +
kctl              304 sound/usb/mixer_scarlett.c static int scarlett_ctl_get(struct snd_kcontrol *kctl,
kctl              307 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              315 sound/usb/mixer_scarlett.c 		val = clamp(val / 256, -128, (int)kctl->private_value) +
kctl              323 sound/usb/mixer_scarlett.c static int scarlett_ctl_put(struct snd_kcontrol *kctl,
kctl              326 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              367 sound/usb/mixer_scarlett.c static int scarlett_ctl_enum_dynamic_info(struct snd_kcontrol *kctl,
kctl              370 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              389 sound/usb/mixer_scarlett.c static int scarlett_ctl_enum_info(struct snd_kcontrol *kctl,
kctl              392 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              399 sound/usb/mixer_scarlett.c static int scarlett_ctl_enum_get(struct snd_kcontrol *kctl,
kctl              402 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              417 sound/usb/mixer_scarlett.c static int scarlett_ctl_enum_put(struct snd_kcontrol *kctl,
kctl              420 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              446 sound/usb/mixer_scarlett.c static int scarlett_ctl_meter_get(struct snd_kcontrol *kctl,
kctl              449 sound/usb/mixer_scarlett.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl              535 sound/usb/mixer_scarlett.c 	struct snd_kcontrol *kctl;
kctl              555 sound/usb/mixer_scarlett.c 	kctl = snd_ctl_new1(ncontrol, elem);
kctl              556 sound/usb/mixer_scarlett.c 	if (!kctl) {
kctl              560 sound/usb/mixer_scarlett.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl              562 sound/usb/mixer_scarlett.c 	strlcpy(kctl->id.name, name, sizeof(kctl->id.name));
kctl              564 sound/usb/mixer_scarlett.c 	err = snd_usb_mixer_add_control(&elem->head, kctl);
kctl              944 sound/usb/mixer_scarlett_gen2.c 	struct snd_kcontrol *kctl;
kctl              957 sound/usb/mixer_scarlett_gen2.c 	kctl = snd_ctl_new1(ncontrol, elem);
kctl              958 sound/usb/mixer_scarlett_gen2.c 	if (!kctl) {
kctl              962 sound/usb/mixer_scarlett_gen2.c 	kctl->private_free = snd_usb_mixer_elem_free;
kctl              964 sound/usb/mixer_scarlett_gen2.c 	strlcpy(kctl->id.name, name, sizeof(kctl->id.name));
kctl              966 sound/usb/mixer_scarlett_gen2.c 	err = snd_usb_mixer_add_control(&elem->head, kctl);
kctl              971 sound/usb/mixer_scarlett_gen2.c 		*kctl_return = kctl;
kctl             1011 sound/usb/mixer_scarlett_gen2.c static int scarlett2_volume_ctl_info(struct snd_kcontrol *kctl,
kctl             1014 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1024 sound/usb/mixer_scarlett_gen2.c static int scarlett2_master_volume_ctl_get(struct snd_kcontrol *kctl,
kctl             1027 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1041 sound/usb/mixer_scarlett_gen2.c static int scarlett2_volume_ctl_get(struct snd_kcontrol *kctl,
kctl             1044 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1059 sound/usb/mixer_scarlett_gen2.c static int scarlett2_volume_ctl_put(struct snd_kcontrol *kctl,
kctl             1062 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1116 sound/usb/mixer_scarlett_gen2.c static int scarlett2_sw_hw_enum_ctl_info(struct snd_kcontrol *kctl,
kctl             1126 sound/usb/mixer_scarlett_gen2.c static int scarlett2_sw_hw_enum_ctl_get(struct snd_kcontrol *kctl,
kctl             1129 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1137 sound/usb/mixer_scarlett_gen2.c static int scarlett2_sw_hw_enum_ctl_put(struct snd_kcontrol *kctl,
kctl             1140 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1200 sound/usb/mixer_scarlett_gen2.c static int scarlett2_level_enum_ctl_info(struct snd_kcontrol *kctl,
kctl             1210 sound/usb/mixer_scarlett_gen2.c static int scarlett2_level_enum_ctl_get(struct snd_kcontrol *kctl,
kctl             1213 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1221 sound/usb/mixer_scarlett_gen2.c static int scarlett2_level_enum_ctl_put(struct snd_kcontrol *kctl,
kctl             1224 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1260 sound/usb/mixer_scarlett_gen2.c static int scarlett2_pad_ctl_get(struct snd_kcontrol *kctl,
kctl             1263 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1271 sound/usb/mixer_scarlett_gen2.c static int scarlett2_pad_ctl_put(struct snd_kcontrol *kctl,
kctl             1274 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1310 sound/usb/mixer_scarlett_gen2.c static int scarlett2_button_ctl_get(struct snd_kcontrol *kctl,
kctl             1313 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1327 sound/usb/mixer_scarlett_gen2.c static int scarlett2_button_ctl_put(struct snd_kcontrol *kctl,
kctl             1330 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1466 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mixer_ctl_info(struct snd_kcontrol *kctl,
kctl             1469 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1479 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mixer_ctl_get(struct snd_kcontrol *kctl,
kctl             1482 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1489 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mixer_ctl_put(struct snd_kcontrol *kctl,
kctl             1492 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1565 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mux_src_enum_ctl_info(struct snd_kcontrol *kctl,
kctl             1568 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1597 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mux_src_enum_ctl_get(struct snd_kcontrol *kctl,
kctl             1600 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1607 sound/usb/mixer_scarlett_gen2.c static int scarlett2_mux_src_enum_ctl_put(struct snd_kcontrol *kctl,
kctl             1610 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1675 sound/usb/mixer_scarlett_gen2.c static int scarlett2_meter_ctl_info(struct snd_kcontrol *kctl,
kctl             1678 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1688 sound/usb/mixer_scarlett_gen2.c static int scarlett2_meter_ctl_get(struct snd_kcontrol *kctl,
kctl             1691 sound/usb/mixer_scarlett_gen2.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1032 sound/usb/mixer_us16x08.c static void elem_private_free(struct snd_kcontrol *kctl)
kctl             1034 sound/usb/mixer_us16x08.c 	struct usb_mixer_elem_info *elem = kctl->private_data;
kctl             1039 sound/usb/mixer_us16x08.c 	kctl->private_data = NULL;
kctl             1049 sound/usb/mixer_us16x08.c 	struct snd_kcontrol *kctl;
kctl             1068 sound/usb/mixer_us16x08.c 	kctl = snd_ctl_new1(ncontrol, elem);
kctl             1069 sound/usb/mixer_us16x08.c 	if (!kctl) {
kctl             1075 sound/usb/mixer_us16x08.c 		kctl->private_free = elem_private_free;
kctl             1077 sound/usb/mixer_us16x08.c 		kctl->private_free = snd_usb_mixer_elem_free;
kctl             1079 sound/usb/mixer_us16x08.c 	strlcpy(kctl->id.name, name, sizeof(kctl->id.name));
kctl             1081 sound/usb/mixer_us16x08.c 	err = snd_usb_mixer_add_control(&elem->head, kctl);
kctl              214 sound/usb/stream.c 	struct snd_kcontrol *kctl;
kctl              230 sound/usb/stream.c 	kctl = chmap->kctl;
kctl              231 sound/usb/stream.c 	kctl->info = usb_chmap_ctl_info;
kctl              232 sound/usb/stream.c 	kctl->get = usb_chmap_ctl_get;
kctl              233 sound/usb/stream.c 	kctl->tlv.c = usb_chmap_ctl_tlv;
kctl              579 sound/x86/intel_hdmi_audio.c 	intelhaddata->chmap->kctl->info = had_chmap_ctl_info;
kctl              580 sound/x86/intel_hdmi_audio.c 	intelhaddata->chmap->kctl->get = had_chmap_ctl_get;
kctl             1813 sound/x86/intel_hdmi_audio.c 			struct snd_kcontrol *kctl;
kctl             1815 sound/x86/intel_hdmi_audio.c 			kctl = snd_ctl_new1(&had_controls[i], ctx);
kctl             1816 sound/x86/intel_hdmi_audio.c 			if (!kctl) {
kctl             1821 sound/x86/intel_hdmi_audio.c 			kctl->id.device = pcm->device;
kctl             1823 sound/x86/intel_hdmi_audio.c 			ret = snd_ctl_add(card, kctl);