Lines Matching refs:ch
1871 #define INFO_AMP_VOL(ch) (1 << (1 + (ch))) argument
2091 update_amp_hash(struct hda_codec *codec, hda_nid_t nid, int ch, in update_amp_hash() argument
2102 if (!(info->head.val & INFO_AMP_VOL(ch))) { in update_amp_hash()
2105 parm = ch ? AC_AMP_GET_RIGHT : AC_AMP_GET_LEFT; in update_amp_hash()
2116 info->vol[ch] = val; in update_amp_hash()
2117 info->head.val |= INFO_AMP_VOL(ch); in update_amp_hash()
2127 hda_nid_t nid, int ch, int direction, int index, in put_vol_mute() argument
2132 parm = ch ? AC_AMP_SET_RIGHT : AC_AMP_SET_LEFT; in put_vol_mute()
2163 int snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_read() argument
2170 info = update_amp_hash(codec, nid, ch, direction, index, false); in snd_hda_codec_amp_read()
2172 val = info->vol[ch]; in snd_hda_codec_amp_read()
2178 static int codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, in codec_amp_update() argument
2191 info = update_amp_hash(codec, nid, ch, direction, idx, init_only); in codec_amp_update()
2196 val |= info->vol[ch] & ~mask; in codec_amp_update()
2197 if (info->vol[ch] == val) { in codec_amp_update()
2201 info->vol[ch] = val; in codec_amp_update()
2206 put_vol_mute(codec, caps, nid, ch, direction, idx, val); in codec_amp_update()
2223 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_update() argument
2226 return codec_amp_update(codec, nid, ch, direction, idx, mask, val, false); in snd_hda_codec_amp_update()
2245 int ch, ret = 0; in snd_hda_codec_amp_stereo() local
2249 for (ch = 0; ch < 2; ch++) in snd_hda_codec_amp_stereo()
2250 ret |= snd_hda_codec_amp_update(codec, nid, ch, direction, in snd_hda_codec_amp_stereo()
2260 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_init() argument
2263 return codec_amp_update(codec, nid, ch, dir, idx, mask, val, true); in snd_hda_codec_amp_init()
2270 int ch, ret = 0; in snd_hda_codec_amp_init_stereo() local
2274 for (ch = 0; ch < 2; ch++) in snd_hda_codec_amp_init_stereo()
2275 ret |= snd_hda_codec_amp_init(codec, nid, ch, dir, in snd_hda_codec_amp_init_stereo()
2297 unsigned int idx, dir, ch; in snd_hda_codec_resume_amp() local
2311 for (ch = 0; ch < 2; ch++) { in snd_hda_codec_resume_amp()
2312 if (!(info.head.val & INFO_AMP_VOL(ch))) in snd_hda_codec_resume_amp()
2315 put_vol_mute(codec, info.amp_caps, nid, ch, dir, idx, in snd_hda_codec_resume_amp()
2316 info.vol[ch]); in snd_hda_codec_resume_amp()
2367 int ch, int dir, int idx, unsigned int ofs) in read_amp_value() argument
2370 val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); in read_amp_value()
2381 int ch, int dir, int idx, unsigned int ofs, in update_amp_value() argument
2392 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, in update_amp_value()
5034 int ch, v; in snd_hda_check_amp_list_power() local
5046 for (ch = 0; ch < 2; ch++) { in snd_hda_check_amp_list_power()
5047 v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, in snd_hda_check_amp_list_power()
5450 int ch = 0; in snd_hda_multi_out_analog_prepare() local
5454 ch = i * 2; in snd_hda_multi_out_analog_prepare()
5458 stream_tag, ch, format); in snd_hda_multi_out_analog_prepare()