Lines Matching refs:dir

1291 			   int dir, unsigned int bits)  in snd_hda_check_amp_caps()  argument
1295 if (get_wcaps(codec, nid) & (1 << (dir + 1))) in snd_hda_check_amp_caps()
1296 if (query_amp_caps(codec, nid, dir) & bits) in snd_hda_check_amp_caps()
1315 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_override_amp_caps() argument
1322 parm = dir == HDA_OUTPUT ? AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP; in snd_hda_override_amp_caps()
1328 int ch, int dir, int idx) in encode_amp() argument
1330 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in encode_amp()
1333 if ((query_amp_caps(codec, nid, dir) & in encode_amp()
1352 int ch, int dir, int idx, int mask, int val) in snd_hda_codec_amp_update() argument
1354 unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); in snd_hda_codec_amp_update()
1401 int dir, int idx, int mask, int val) in snd_hda_codec_amp_init() argument
1403 unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); in snd_hda_codec_amp_init()
1423 int dir, int idx, int mask, int val) in snd_hda_codec_amp_init_stereo() argument
1430 ret |= snd_hda_codec_amp_init(codec, nid, ch, dir, in snd_hda_codec_amp_init_stereo()
1436 static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, in get_amp_max_value() argument
1439 u32 caps = query_amp_caps(codec, nid, dir); in get_amp_max_value()
1461 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_info() local
1467 uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); in snd_hda_mixer_amp_volume_info()
1481 int ch, int dir, int idx, unsigned int ofs) in read_amp_value() argument
1484 val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); in read_amp_value()
1495 int ch, int dir, int idx, unsigned int ofs, in update_amp_value() argument
1503 maxval = get_amp_max_value(codec, nid, dir, 0); in update_amp_value()
1506 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, in update_amp_value()
1524 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_get() local
1530 *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); in snd_hda_mixer_amp_volume_get()
1532 *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); in snd_hda_mixer_amp_volume_get()
1551 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_put() local
1558 change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); in snd_hda_mixer_amp_volume_put()
1562 change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); in snd_hda_mixer_amp_volume_put()
1572 int dir = get_amp_direction(kcontrol); in get_ctl_amp_tlv() local
1577 caps = query_amp_caps(codec, nid, dir); in get_ctl_amp_tlv()
1626 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_set_vmaster_tlv() argument
1632 caps = query_amp_caps(codec, nid, dir); in snd_hda_set_vmaster_tlv()
2124 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_get() local
2129 *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) & in snd_hda_mixer_amp_switch_get()
2132 *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) & in snd_hda_mixer_amp_switch_get()
2152 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_switch_put() local
2158 change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx, in snd_hda_mixer_amp_switch_put()
2164 change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx, in snd_hda_mixer_amp_switch_put()
3500 v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, in snd_hda_check_amp_list_power()