Home
last modified time | relevance | path

Searched refs:chs (Results 1 – 14 of 14) sorted by relevance

/sound/hda/
Dhdmi_chmap.c205 hda_nid_t cvt_nid, int chs) in hdmi_set_channel_count() argument
207 if (chs != hdmi_get_channel_count(codec, cvt_nid)) in hdmi_set_channel_count()
209 AC_VERB_SET_CVT_CHAN_COUNT, chs - 1); in hdmi_set_channel_count()
481 static int hdmi_manual_channel_allocation(int chs, unsigned char *map) in hdmi_manual_channel_allocation() argument
485 for (i = 0; i < chs; i++) { in hdmi_manual_channel_allocation()
495 if ((chs == channel_allocations[i].channels || in hdmi_manual_channel_allocation()
507 int chs, unsigned char *map, in hdmi_manual_setup_channel_mapping() argument
514 for (alsa_pos = 0; alsa_pos < chs; alsa_pos++) { in hdmi_manual_setup_channel_mapping()
671 int chs, count = 0; in hdmi_chmap_ctl_tlv() local
688 for (chs = 2; chs <= max_chs; chs++) { in hdmi_chmap_ctl_tlv()
[all …]
/sound/pci/hda/
Dpatch_cs8409.c429 u8 chs = get_amp_channels(kctrl); in cs42l42_volume_info() local
433 uinfo->count = chs == 3 ? 2 : 1; in cs42l42_volume_info()
456 int chs = get_amp_channels(kctrl); in cs42l42_volume_get() local
462 if (chs & BIT(0)) in cs42l42_volume_get()
464 if (chs & BIT(1)) in cs42l42_volume_get()
468 if (chs & BIT(0)) in cs42l42_volume_get()
479 unsigned int chs, bool mute) in cs42l42_mute() argument
483 if (chs & BIT(0)) in cs42l42_mute()
485 if (chs & BIT(1)) in cs42l42_mute()
488 if (chs & BIT(0)) in cs42l42_mute()
[all …]
Dhda_beep.c304 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
307 if (chs & 1) in snd_hda_mixer_amp_switch_get_beep()
309 if (chs & 2) in snd_hda_mixer_amp_switch_get_beep()
328 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
331 if (chs & 1) { in snd_hda_mixer_amp_switch_put_beep()
335 if (chs & 2) in snd_hda_mixer_amp_switch_put_beep()
Dhda_codec.c1428 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() local
1433 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info()
1491 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get() local
1497 if (chs & 1) in snd_hda_mixer_amp_volume_get()
1499 if (chs & 2) in snd_hda_mixer_amp_volume_get()
1518 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put() local
1525 if (chs & 1) { in snd_hda_mixer_amp_volume_put()
1529 if (chs & 2) in snd_hda_mixer_amp_volume_put()
2070 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info() local
2073 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_switch_info()
[all …]
Dhda_local.h26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument
30 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
Dhda_generic.c548 static unsigned int amp_val_replace_channels(unsigned int val, unsigned int chs) in amp_val_replace_channels() argument
551 val |= chs << 16; in amp_val_replace_channels()
1017 unsigned int chs, struct nid_path *path) in add_vol_ctl() argument
1025 val = amp_val_replace_channels(val, chs); in add_vol_ctl()
1033 int chs = 1; /* mono (left only) */ in get_default_ch_nums() local
1037 chs = 3; /* stereo */ in get_default_ch_nums()
1039 return chs; in get_default_ch_nums()
1045 int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); in add_stereo_vol() local
1046 return add_vol_ctl(codec, pfx, cidx, chs, path); in add_stereo_vol()
1053 unsigned int chs, struct nid_path *path) in add_sw_ctl() argument
[all …]
Dpatch_hdmi.c3429 int chs; in nvhdmi_8ch_7x_pcm_prepare() local
3440 chs = substream->runtime->channels; in nvhdmi_8ch_7x_pcm_prepare()
3475 if (chs == 2) in nvhdmi_8ch_7x_pcm_prepare()
3518 nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs); in nvhdmi_8ch_7x_pcm_prepare()
3639 int ca, int chs, unsigned char *map) in nvhdmi_chmap_validate() argument
3978 int ca, int chs, unsigned char *map) in atihdmi_paired_chmap_validate() argument
3986 for (i = 0; i < chs; ++i) { in atihdmi_paired_chmap_validate()
4000 if (i % 2 == 0 && i + 1 < chs) { in atihdmi_paired_chmap_validate()
Dpatch_ca0132.c4264 int chs = get_amp_channels(kcontrol); in voice_focus_ctl_info() local
4266 uinfo->count = chs == 3 ? 2 : 1; in voice_focus_ctl_info()
4299 int chs = get_amp_channels(kcontrol); in mic_svm_ctl_info() local
4301 uinfo->count = chs == 3 ? 2 : 1; in mic_svm_ctl_info()
4334 int chs = get_amp_channels(kcontrol); in equalizer_ctl_info() local
4336 uinfo->count = chs == 3 ? 2 : 1; in equalizer_ctl_info()
5707 int chs = get_amp_channels(kcontrol); in ca0132_alt_effect_slider_info() local
5710 uinfo->count = chs == 3 ? 2 : 1; in ca0132_alt_effect_slider_info()
/sound/pci/ctxfi/
Dctpcm.c419 int chs; in ct_alsa_pcm_create() local
447 chs = 2; in ct_alsa_pcm_create()
450 chs = 8; in ct_alsa_pcm_create()
466 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs, in ct_alsa_pcm_create()
/sound/pci/ice1712/
Dice1724.c691 int i, chs; in snd_vt1724_pcm_hw_params() local
693 chs = params_channels(hw_params); in snd_vt1724_pcm_hw_params()
698 chs = chs / 2 - 1; in snd_vt1724_pcm_hw_params()
699 for (i = 0; i < chs; i++) { in snd_vt1724_pcm_hw_params()
1008 int chs, num_indeps; in snd_vt1724_playback_pro_open() local
1019 for (chs = 0; chs < num_indeps; chs++) { in snd_vt1724_playback_pro_open()
1020 if (ice->pcm_reserved[chs]) in snd_vt1724_playback_pro_open()
1023 chs = (chs + 1) * 2; in snd_vt1724_playback_pro_open()
1024 runtime->hw.channels_max = chs; in snd_vt1724_playback_pro_open()
1025 if (chs > 2) /* channels must be even */ in snd_vt1724_playback_pro_open()
/sound/pci/
Dintel8x0.c1469 int chs = 2; in snd_intel8x0_pcm1() local
1471 chs = 8; in snd_intel8x0_pcm1()
1473 chs = 6; in snd_intel8x0_pcm1()
1475 chs = 4; in snd_intel8x0_pcm1()
1477 snd_pcm_alt_chmaps, chs, 0, in snd_intel8x0_pcm1()
/sound/soc/codecs/
Dwcd9335.c1729 cfg->chs = kcalloc(cfg->ch_count, sizeof(unsigned int), GFP_KERNEL); in wcd9335_slim_set_hw_params()
1730 if (!cfg->chs) in wcd9335_slim_set_hw_params()
1735 cfg->chs[i++] = ch->ch_num; in wcd9335_slim_set_hw_params()
1781 kfree(cfg->chs); in wcd9335_slim_set_hw_params()
1782 cfg->chs = NULL; in wcd9335_slim_set_hw_params()
3022 kfree(dai->sconfig.chs); in wcd9335_codec_enable_slim()
Dwcd934x.c1736 cfg->chs = kcalloc(cfg->ch_count, sizeof(unsigned int), GFP_KERNEL); in wcd934x_slim_set_hw_params()
1737 if (!cfg->chs) in wcd934x_slim_set_hw_params()
1742 cfg->chs[i++] = ch->ch_num; in wcd934x_slim_set_hw_params()
1788 kfree(cfg->chs); in wcd934x_slim_set_hw_params()
1789 cfg->chs = NULL; in wcd934x_slim_set_hw_params()
1889 kfree(dai_data->sconfig.chs); in wcd934x_hw_free()
/sound/soc/intel/skylake/
Dskl-topology.c133 static void skl_tplg_update_chmap(struct skl_module_fmt *fmt, int chs) in skl_tplg_update_chmap() argument
139 for (i = 0; i < chs; i++) { in skl_tplg_update_chmap()