Lines Matching defs:dir
1243 * @dir: either #HDA_INPUT or #HDA_OUTPUT
1249 int dir, unsigned int bits)
1253 if (get_wcaps(codec, nid) & (1 << (dir + 1)))
1254 if (query_amp_caps(codec, nid, dir) & bits)
1264 * @dir: either #HDA_INPUT or #HDA_OUTPUT
1273 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir,
1280 parm = dir == HDA_OUTPUT ? AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP;
1286 int ch, int dir, int idx)
1288 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx);
1291 if ((query_amp_caps(codec, nid, dir) &
1302 * @dir: #HDA_INPUT or #HDA_OUTPUT
1310 int ch, int dir, int idx, int mask, int val)
1312 unsigned int cmd = encode_amp(codec, nid, ch, dir, idx);
1349 * @dir: #HDA_INPUT or #HDA_OUTPUT
1359 int dir, int idx, int mask, int val)
1361 unsigned int cmd = encode_amp(codec, nid, ch, dir, idx);
1373 * @dir: #HDA_INPUT or #HDA_OUTPUT
1381 int dir, int idx, int mask, int val)
1388 ret |= snd_hda_codec_amp_init(codec, nid, ch, dir,
1394 static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir,
1397 u32 caps = query_amp_caps(codec, nid, dir);
1419 int dir = get_amp_direction(kcontrol);
1425 uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs);
1439 int ch, int dir, int idx, unsigned int ofs)
1442 val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx);
1453 int ch, int dir, int idx, unsigned int ofs,
1461 maxval = get_amp_max_value(codec, nid, dir, 0);
1464 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx,
1482 int dir = get_amp_direction(kcontrol);
1488 *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs);
1490 *valp = read_amp_value(codec, nid, 1, dir, idx, ofs);
1509 int dir = get_amp_direction(kcontrol);
1516 change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp);
1520 change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp);
1530 int dir = get_amp_direction(kcontrol);
1535 caps = query_amp_caps(codec, nid, dir);
1577 * @dir: #HDA_INPUT or #HDA_OUTPUT
1584 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
1590 caps = query_amp_caps(codec, nid, dir);
2140 int dir = get_amp_direction(kcontrol);
2145 *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) &
2148 *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) &
2168 int dir = get_amp_direction(kcontrol);
2174 change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
2180 change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
3469 v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir,