Lines Matching refs:kctl
1663 struct snd_kcontrol *kctl) in snd_hda_ctl_add() argument
1669 if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) { in snd_hda_ctl_add()
1672 nid = get_amp_nid_(kctl->private_value); in snd_hda_ctl_add()
1674 if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) in snd_hda_ctl_add()
1675 nid = kctl->id.subdevice & 0xffff; in snd_hda_ctl_add()
1676 if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG)) in snd_hda_ctl_add()
1677 kctl->id.subdevice = 0; in snd_hda_ctl_add()
1678 err = snd_ctl_add(codec->card, kctl); in snd_hda_ctl_add()
1684 item->kctl = kctl; in snd_hda_ctl_add()
1702 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid() argument
1711 item->kctl = kctl; in snd_hda_add_nid()
1717 kctl->id.name, kctl->id.index, index); in snd_hda_add_nid()
1733 snd_ctl_remove(codec->card, items[i].kctl); in snd_hda_ctls_clear()
1829 struct snd_kcontrol *sctl = items[i].kctl; in map_followers()
1858 static int put_kctl_with_value(struct snd_kcontrol *kctl, int val) in put_kctl_with_value() argument
1866 kctl->put(kctl, ucontrol); in put_kctl_with_value()
1878 struct snd_kcontrol *kctl, in init_follower_0dB() argument
1887 if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in init_follower_0dB()
1888 if (kctl->tlv.c != snd_hda_mixer_amp_tlv) { in init_follower_0dB()
1891 kctl->id.name, kctl->id.index); in init_follower_0dB()
1894 get_ctl_amp_tlv(kctl, _tlv); in init_follower_0dB()
1896 } else if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) in init_follower_0dB()
1897 tlv = kctl->tlv.p; in init_follower_0dB()
1925 struct snd_kcontrol *kctl, in init_follower_unmute() argument
1961 struct snd_kcontrol *kctl; in __snd_hda_add_vmaster() local
1972 kctl = snd_ctl_make_virtual_master(name, tlv); in __snd_hda_add_vmaster()
1973 if (!kctl) in __snd_hda_add_vmaster()
1975 err = snd_hda_ctl_add(codec, 0, kctl); in __snd_hda_add_vmaster()
1979 err = map_followers(codec, followers, suffix, add_follower, kctl); in __snd_hda_add_vmaster()
1984 put_kctl_with_value(kctl, 0); in __snd_hda_add_vmaster()
1990 snd_ctl_apply_vmaster_followers(kctl, in __snd_hda_add_vmaster()
1996 *ctl_ret = kctl; in __snd_hda_add_vmaster()
2069 struct snd_kcontrol *kctl; in snd_hda_add_vmaster_hook() local
2078 kctl = snd_ctl_new1(&vmaster_mute_mode, hook); in snd_hda_add_vmaster_hook()
2079 if (!kctl) in snd_hda_add_vmaster_hook()
2081 return snd_hda_ctl_add(codec, 0, kctl); in snd_hda_add_vmaster_hook()
2461 struct snd_kcontrol *kctl; in snd_hda_create_dig_out_ctls() local
2476 kctl = find_mixer_ctl(codec, dig_mix->name, 0, 0); in snd_hda_create_dig_out_ctls()
2477 if (!kctl) in snd_hda_create_dig_out_ctls()
2479 kctl->id.index = spdif_index; in snd_hda_create_dig_out_ctls()
2495 kctl = snd_ctl_new1(dig_mix, codec); in snd_hda_create_dig_out_ctls()
2496 if (!kctl) in snd_hda_create_dig_out_ctls()
2498 kctl->id.index = idx; in snd_hda_create_dig_out_ctls()
2499 kctl->private_value = codec->spdif_out.used - 1; in snd_hda_create_dig_out_ctls()
2500 err = snd_hda_ctl_add(codec, associated_nid, kctl); in snd_hda_create_dig_out_ctls()
2615 struct snd_kcontrol *kctl; in snd_hda_create_spdif_share_sw() local
2620 kctl = snd_ctl_new1(&spdif_share_sw, mout); in snd_hda_create_spdif_share_sw()
2621 if (!kctl) in snd_hda_create_spdif_share_sw()
2624 return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl); in snd_hda_create_spdif_share_sw()
2711 struct snd_kcontrol *kctl; in snd_hda_create_spdif_in_ctls() local
2721 kctl = snd_ctl_new1(dig_mix, codec); in snd_hda_create_spdif_in_ctls()
2722 if (!kctl) in snd_hda_create_spdif_in_ctls()
2724 kctl->private_value = nid; in snd_hda_create_spdif_in_ctls()
2725 err = snd_hda_ctl_add(codec, nid, kctl); in snd_hda_create_spdif_in_ctls()
3369 struct snd_kcontrol *kctl; in snd_hda_add_new_ctls() local
3374 kctl = snd_ctl_new1(knew, codec); in snd_hda_add_new_ctls()
3375 if (!kctl) in snd_hda_add_new_ctls()
3378 kctl->id.device = addr; in snd_hda_add_new_ctls()
3380 kctl->id.index = idx; in snd_hda_add_new_ctls()
3381 err = snd_hda_ctl_add(codec, 0, kctl); in snd_hda_add_new_ctls()