Lines Matching defs:direction
1416 * @direction: either #HDA_INPUT or #HDA_OUTPUT
1418 * Query AMP capabilities for the given widget and direction.
1424 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction)
1428 info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, 0));
1435 direction == HDA_OUTPUT ?
1449 * @direction: either #HDA_INPUT or #HDA_OUTPUT
1554 int ch, int direction, int index)
1562 parm |= direction == HDA_OUTPUT ? AC_AMP_GET_OUTPUT : AC_AMP_GET_INPUT;
1575 hda_nid_t nid, int ch, int direction, int index,
1581 parm |= direction == HDA_OUTPUT ? AC_AMP_SET_OUTPUT : AC_AMP_SET_INPUT;
1593 * @direction: #HDA_INPUT or #HDA_OUTPUT
1594 * @index: the index value (only for input direction)
1599 int direction, int index)
1602 info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, index));
1605 return get_vol_mute(codec, info, nid, ch, direction, index);
1614 * @direction: #HDA_INPUT or #HDA_OUTPUT
1615 * @idx: the index value (only for input direction)
1623 int direction, int idx, int mask, int val)
1627 info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, idx));
1633 val |= get_vol_mute(codec, info, nid, ch, direction, idx) & ~mask;
1636 put_vol_mute(codec, info, nid, ch, direction, idx, val);
1645 * @direction: #HDA_INPUT or #HDA_OUTPUT
1646 * @idx: the index value (only for input direction)
1654 int direction, int idx, int mask, int val)
1661 ret |= snd_hda_codec_amp_update(codec, nid, ch, direction,