Lines Matching refs:kcontrol

1503 int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol,  in snd_hda_mixer_amp_volume_info()  argument
1506 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info()
1507 u16 nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_info()
1508 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info()
1509 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_info()
1510 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_info()
1519 nid, kcontrol->id.name); in snd_hda_mixer_amp_volume_info()
1566 int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_get() argument
1569 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get()
1570 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_get()
1571 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get()
1572 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_get()
1573 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_volume_get()
1574 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_get()
1593 int snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_put() argument
1596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_put()
1597 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_put()
1598 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put()
1599 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_put()
1600 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_volume_put()
1601 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_put()
1625 int snd_hda_mixer_amp_tlv(struct snd_kcontrol *kcontrol, int op_flag, in snd_hda_mixer_amp_tlv() argument
1628 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_tlv()
1629 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_tlv()
1630 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_tlv()
1631 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_tlv()
1632 bool min_mute = get_amp_min_mute(kcontrol); in snd_hda_mixer_amp_tlv()
2070 static int vmaster_mute_mode_info(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_info() argument
2080 static int vmaster_mute_mode_get(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_get() argument
2083 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_get()
2088 static int vmaster_mute_mode_put(struct snd_kcontrol *kcontrol, in vmaster_mute_mode_put() argument
2091 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_put()
2180 int snd_hda_mixer_amp_switch_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_info() argument
2183 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info()
2201 int snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_get() argument
2204 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get()
2205 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_switch_get()
2206 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get()
2207 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_get()
2208 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_switch_get()
2229 int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_put() argument
2232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put()
2233 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_switch_put()
2234 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put()
2235 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_put()
2236 int idx = get_amp_index(kcontrol); in snd_hda_mixer_amp_switch_put()
2272 int snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_switch_get() argument
2275 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_get()
2280 pval = kcontrol->private_value; in snd_hda_mixer_bind_switch_get()
2281 kcontrol->private_value = pval & ~AMP_VAL_IDX_MASK; /* index 0 */ in snd_hda_mixer_bind_switch_get()
2282 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_get()
2283 kcontrol->private_value = pval; in snd_hda_mixer_bind_switch_get()
2297 int snd_hda_mixer_bind_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_switch_put() argument
2300 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_put()
2305 pval = kcontrol->private_value; in snd_hda_mixer_bind_switch_put()
2308 kcontrol->private_value = (pval & ~AMP_VAL_IDX_MASK) | in snd_hda_mixer_bind_switch_put()
2310 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_put()
2315 kcontrol->private_value = pval; in snd_hda_mixer_bind_switch_put()
2329 int snd_hda_mixer_bind_ctls_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_info() argument
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_info()
2337 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_info()
2338 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_ctls_info()
2339 err = c->ops->info(kcontrol, uinfo); in snd_hda_mixer_bind_ctls_info()
2340 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_info()
2354 int snd_hda_mixer_bind_ctls_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_get() argument
2357 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_get()
2362 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_get()
2363 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_ctls_get()
2364 err = c->ops->get(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_get()
2365 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_get()
2379 int snd_hda_mixer_bind_ctls_put(struct snd_kcontrol *kcontrol, in snd_hda_mixer_bind_ctls_put() argument
2382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_put()
2388 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_ctls_put()
2390 kcontrol->private_value = *vals; in snd_hda_mixer_bind_ctls_put()
2391 err = c->ops->put(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_put()
2396 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_ctls_put()
2412 int snd_hda_mixer_bind_tlv(struct snd_kcontrol *kcontrol, int op_flag, in snd_hda_mixer_bind_tlv() argument
2415 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_tlv()
2420 c = (struct hda_bind_ctls *)kcontrol->private_value; in snd_hda_mixer_bind_tlv()
2421 kcontrol->private_value = *c->values; in snd_hda_mixer_bind_tlv()
2422 err = c->ops->tlv(kcontrol, op_flag, size, tlv); in snd_hda_mixer_bind_tlv()
2423 kcontrol->private_value = (long)c; in snd_hda_mixer_bind_tlv()
2449 static int snd_hda_spdif_mask_info(struct snd_kcontrol *kcontrol, in snd_hda_spdif_mask_info() argument
2457 static int snd_hda_spdif_cmask_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_cmask_get() argument
2469 static int snd_hda_spdif_pmask_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_pmask_get() argument
2478 static int snd_hda_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_default_get() argument
2481 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_get()
2482 int idx = kcontrol->private_value; in snd_hda_spdif_default_get()
2582 static int snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_default_put() argument
2585 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_put()
2586 int idx = kcontrol->private_value; in snd_hda_spdif_default_put()
2611 static int snd_hda_spdif_out_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_out_switch_get() argument
2614 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_get()
2615 int idx = kcontrol->private_value; in snd_hda_spdif_out_switch_get()
2636 static int snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_out_switch_put() argument
2639 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_put()
2640 int idx = kcontrol->private_value; in snd_hda_spdif_out_switch_put()
2827 static int spdif_share_sw_get(struct snd_kcontrol *kcontrol, in spdif_share_sw_get() argument
2830 struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); in spdif_share_sw_get()
2835 static int spdif_share_sw_put(struct snd_kcontrol *kcontrol, in spdif_share_sw_put() argument
2838 struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); in spdif_share_sw_put()
2878 static int snd_hda_spdif_in_switch_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_switch_get() argument
2881 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_get()
2887 static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_switch_put() argument
2890 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_put()
2891 hda_nid_t nid = kcontrol->private_value; in snd_hda_spdif_in_switch_put()
2906 static int snd_hda_spdif_in_status_get(struct snd_kcontrol *kcontrol, in snd_hda_spdif_in_status_get() argument
2909 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_status_get()
2910 hda_nid_t nid = kcontrol->private_value; in snd_hda_spdif_in_status_get()
4064 int snd_hda_enum_helper_info(struct snd_kcontrol *kcontrol, in snd_hda_enum_helper_info() argument