Lines Matching refs:kctl

1697 		    struct snd_kcontrol *kctl)  in snd_hda_ctl_add()  argument
1703 if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) { in snd_hda_ctl_add()
1706 nid = get_amp_nid_(kctl->private_value); in snd_hda_ctl_add()
1708 if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) in snd_hda_ctl_add()
1709 nid = kctl->id.subdevice & 0xffff; in snd_hda_ctl_add()
1710 if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG)) in snd_hda_ctl_add()
1711 kctl->id.subdevice = 0; in snd_hda_ctl_add()
1712 err = snd_ctl_add(codec->card, kctl); in snd_hda_ctl_add()
1718 item->kctl = kctl; in snd_hda_ctl_add()
1735 snd_ctl_remove(codec->card, items[i].kctl); in snd_hda_ctls_clear()
1826 struct snd_kcontrol *sctl = items[i].kctl; in map_followers()
1855 static int put_kctl_with_value(struct snd_kcontrol *kctl, int val) in put_kctl_with_value() argument
1864 kctl->put(kctl, ucontrol); in put_kctl_with_value()
1875 struct snd_kcontrol *kctl, in init_follower_0dB() argument
1884 if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in init_follower_0dB()
1885 if (kctl->tlv.c != snd_hda_mixer_amp_tlv) { in init_follower_0dB()
1888 kctl->id.name, kctl->id.index); in init_follower_0dB()
1891 get_ctl_amp_tlv(kctl, _tlv); in init_follower_0dB()
1893 } else if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) in init_follower_0dB()
1894 tlv = kctl->tlv.p; in init_follower_0dB()
1922 struct snd_kcontrol *kctl, in init_follower_unmute() argument
1959 struct snd_kcontrol *kctl; in __snd_hda_add_vmaster() local
1970 kctl = snd_ctl_make_virtual_master(name, tlv); in __snd_hda_add_vmaster()
1971 if (!kctl) in __snd_hda_add_vmaster()
1973 kctl->vd[0].access |= access; in __snd_hda_add_vmaster()
1974 err = snd_hda_ctl_add(codec, 0, kctl); in __snd_hda_add_vmaster()
1978 err = map_followers(codec, followers, suffix, add_follower, kctl); in __snd_hda_add_vmaster()
1983 put_kctl_with_value(kctl, 0); in __snd_hda_add_vmaster()
1989 snd_ctl_apply_vmaster_followers(kctl, in __snd_hda_add_vmaster()
1995 *ctl_ret = kctl; in __snd_hda_add_vmaster()
2403 struct snd_kcontrol *kctl; in snd_hda_create_dig_out_ctls() local
2420 kctl = find_mixer_ctl(codec, dig_mix->name, 0, 0); in snd_hda_create_dig_out_ctls()
2421 if (!kctl) in snd_hda_create_dig_out_ctls()
2423 id = kctl->id; in snd_hda_create_dig_out_ctls()
2425 err = snd_ctl_rename_id(codec->card, &kctl->id, &id); in snd_hda_create_dig_out_ctls()
2443 kctl = snd_ctl_new1(dig_mix, codec); in snd_hda_create_dig_out_ctls()
2444 if (!kctl) in snd_hda_create_dig_out_ctls()
2446 kctl->id.index = idx; in snd_hda_create_dig_out_ctls()
2447 kctl->private_value = codec->spdif_out.used - 1; in snd_hda_create_dig_out_ctls()
2448 err = snd_hda_ctl_add(codec, associated_nid, kctl); in snd_hda_create_dig_out_ctls()
2561 struct snd_kcontrol *kctl; in snd_hda_create_spdif_share_sw() local
2566 kctl = snd_ctl_new1(&spdif_share_sw, mout); in snd_hda_create_spdif_share_sw()
2567 if (!kctl) in snd_hda_create_spdif_share_sw()
2570 return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl); in snd_hda_create_spdif_share_sw()
2656 struct snd_kcontrol *kctl; in snd_hda_create_spdif_in_ctls() local
2666 kctl = snd_ctl_new1(dig_mix, codec); in snd_hda_create_spdif_in_ctls()
2667 if (!kctl) in snd_hda_create_spdif_in_ctls()
2669 kctl->private_value = nid; in snd_hda_create_spdif_in_ctls()
2670 err = snd_hda_ctl_add(codec, nid, kctl); in snd_hda_create_spdif_in_ctls()
3351 struct snd_kcontrol *kctl; in snd_hda_add_new_ctls() local
3356 kctl = snd_ctl_new1(knew, codec); in snd_hda_add_new_ctls()
3357 if (!kctl) in snd_hda_add_new_ctls()
3365 kctl->id.device = addr; in snd_hda_add_new_ctls()
3367 kctl->id.index = idx; in snd_hda_add_new_ctls()
3368 err = snd_hda_ctl_add(codec, 0, kctl); in snd_hda_add_new_ctls()