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