Lines Matching refs:kcontrol
1300 int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_info() argument
1303 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info()
1304 u16 nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_info()
1305 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info()
1306 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_info()
1307 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_info()
1316 nid, kcontrol->id.name); in snd_hda_mixer_amp_volume_info()
1363 int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_get() argument
1366 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get()
1367 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_get()
1368 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get()
1369 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_get()
1370 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_volume_get()
1371 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_get()
1390 int snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_put() argument
1393 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_put()
1394 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_put()
1395 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put()
1396 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_put()
1397 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_volume_put()
1398 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_put()
1422 int snd_hda_mixer_amp_tlv(struct snd_kcontrol *kcontrol, int op_flag, in snd_hda_mixer_amp_tlv() argument
1425 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_tlv()
1426 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_tlv()
1427 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_tlv()
1428 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_tlv()
1429 bool min_mute = get_amp_min_mute(kcontrol); in snd_hda_mixer_amp_tlv()
1867 static int vmaster_mute_mode_info(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_info() argument
1877 static int vmaster_mute_mode_get(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_get() argument
1880 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_get()
1885 static int vmaster_mute_mode_put(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_put() argument
1888 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_put()
1977 int snd_hda_mixer_amp_switch_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_info() argument
1980 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info()
1998 int snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_get() argument
2001 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get()
2002 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_switch_get()
2003 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get()
2004 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_get()
2005 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_switch_get()
2026 int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_put() argument
2029 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put()
2030 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_switch_put()
2031 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put()
2032 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_put()
2033 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_switch_put()
2069 int snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_switch_get() argument
2072 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_get()
2077 pval = kcontrol->private_value; in snd_hda_mixer_bind_switch_get()
2078 kcontrol->private_value = pval & ~AMP_VAL_IDX_MASK; /* index 0 */ in snd_hda_mixer_bind_switch_get()
2079 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_get()
2080 kcontrol->private_value = pval; in snd_hda_mixer_bind_switch_get()
2094 int snd_hda_mixer_bind_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_switch_put() argument
2097 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_put()
2102 pval = kcontrol->private_value; in snd_hda_mixer_bind_switch_put()
2105 kcontrol->private_value = (pval & ~AMP_VAL_IDX_MASK) | in snd_hda_mixer_bind_switch_put()
2107 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_put()
2112 kcontrol->private_value = pval; in snd_hda_mixer_bind_switch_put()
2126 int snd_hda_mixer_bind_ctls_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_info() argument
2129 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_info()
2134 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_info()
2135 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_ctls_info()
2136 err = c->ops->info(kcontrol, uinfo); in snd_hda_mixer_bind_ctls_info()
2137 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_info()
2151 int snd_hda_mixer_bind_ctls_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_get() argument
2154 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_get()
2159 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_get()
2160 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_ctls_get()
2161 err = c->ops->get(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_get()
2162 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_get()
2176 int snd_hda_mixer_bind_ctls_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_put() argument
2179 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_put()
2185 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_put()
2187 kcontrol->private_value = *vals; in snd_hda_mixer_bind_ctls_put()
2188 err = c->ops->put(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_put()
2193 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_put()
2209 int snd_hda_mixer_bind_tlv(struct snd_kcontrol *kcontrol, int op_flag, in snd_hda_mixer_bind_tlv() argument
2212 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_tlv()
2217 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_tlv()
2218 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_tlv()
2219 err = c->ops->tlv(kcontrol, op_flag, size, tlv); in snd_hda_mixer_bind_tlv()
2220 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_tlv()
2246 static int snd_hda_spdif_mask_info(struct snd_kcontrol *kcontrol, in snd_hda_spdif_mask_info() argument
2254 static int snd_hda_spdif_cmask_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_cmask_get() argument
2266 static int snd_hda_spdif_pmask_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_pmask_get() argument
2275 static int snd_hda_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_default_get() argument
2278 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_get()
2279 int idx = kcontrol->private_value; in snd_hda_spdif_default_get()
2379 static int snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_default_put() argument
2382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_put()
2383 int idx = kcontrol->private_value; in snd_hda_spdif_default_put()
2408 static int snd_hda_spdif_out_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_out_switch_get() argument
2411 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_get()
2412 int idx = kcontrol->private_value; in snd_hda_spdif_out_switch_get()
2433 static int snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_out_switch_put() argument
2436 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_put()
2437 int idx = kcontrol->private_value; in snd_hda_spdif_out_switch_put()
2624 static int spdif_share_sw_get(struct snd_kcontrol *kcontrol, in spdif_share_sw_get() argument
2627 struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); in spdif_share_sw_get()
2632 static int spdif_share_sw_put(struct snd_kcontrol *kcontrol, in spdif_share_sw_put() argument
2635 struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); in spdif_share_sw_put()
2675 static int snd_hda_spdif_in_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_switch_get() argument
2678 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_get()
2684 static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_switch_put() argument
2687 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_put()
2688 hda_nid_t nid = kcontrol->private_value; in snd_hda_spdif_in_switch_put()
2703 static int snd_hda_spdif_in_status_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_status_get() argument
2706 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_status_get()
2707 hda_nid_t nid = kcontrol->private_value; in snd_hda_spdif_in_status_get()
3557 int snd_hda_enum_helper_info(struct snd_kcontrol *kcontrol, in snd_hda_enum_helper_info() argument