Lines Matching refs:chmap
91 unsigned char chmap[8]; /* ALSA API channel-map */ member
189 struct hdac_chmap chmap; member
743 struct hdac_chmap *chmap = &spec->chmap; in hdmi_setup_audio_infoframe() local
766 per_pin->chmap_set, non_pcm, per_pin->chmap); in hdmi_setup_audio_infoframe()
770 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe()
777 snd_hdac_setup_channel_mapping(&spec->chmap, in hdmi_setup_audio_infoframe()
779 per_pin->chmap, per_pin->chmap_set); in hdmi_setup_audio_infoframe()
1479 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1973 if (chans > spec->chmap.channels_max) in hdmi_add_cvt()
1974 spec->chmap.channels_max = chans; in hdmi_add_cvt()
2219 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_close()
2252 unsigned char *chmap) in hdmi_get_chmap() argument
2262 memcpy(chmap, per_pin->chmap, ARRAY_SIZE(per_pin->chmap)); in hdmi_get_chmap()
2266 unsigned char *chmap, int prepared) in hdmi_set_chmap() argument
2276 memcpy(per_pin->chmap, chmap, ARRAY_SIZE(per_pin->chmap)); in hdmi_set_chmap()
2410 err = snd_hdac_add_chmap_ctls(pcm->pcm, pcm_idx, &spec->chmap); in generic_hdmi_build_controls()
2569 snd_hdac_register_chmap_ops(&codec->core, &spec->chmap); in alloc_generic_hdmi()
2571 spec->chmap.ops.get_chmap = hdmi_get_chmap; in alloc_generic_hdmi()
2572 spec->chmap.ops.set_chmap = hdmi_set_chmap; in alloc_generic_hdmi()
2573 spec->chmap.ops.is_pcm_attached = is_hdmi_pcm_attached; in alloc_generic_hdmi()
2574 spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc; in alloc_generic_hdmi()
3686 struct snd_pcm_chmap *chmap; in nvhdmi_7x_8ch_build_controls() local
3697 snd_pcm_alt_chmaps, 8, 0, &chmap); in nvhdmi_7x_8ch_build_controls()
3705 chmap->channel_mask = (1U << 2) | (1U << 8); in nvhdmi_7x_8ch_build_controls()
3708 chmap->channel_mask = (1U << 2) | (1U << 6) | (1U << 8); in nvhdmi_7x_8ch_build_controls()
3738 static int nvhdmi_chmap_cea_alloc_validate_get_type(struct hdac_chmap *chmap, in nvhdmi_chmap_cea_alloc_validate_get_type() argument
3752 static int nvhdmi_chmap_validate(struct hdac_chmap *chmap, in nvhdmi_chmap_validate() argument
3803 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in patch_nvhdmi()
3805 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in patch_nvhdmi()
3827 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in patch_nvhdmi_legacy()
3829 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in patch_nvhdmi_legacy()
4038 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in tegra_hdmi_init()
4040 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in tegra_hdmi_init()
4042 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in tegra_hdmi_init()
4044 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in tegra_hdmi_init()
4159 static int atihdmi_paired_chmap_validate(struct hdac_chmap *chmap, in atihdmi_paired_chmap_validate() argument
4274 struct hdac_chmap *chmap, in atihdmi_paired_chmap_cea_alloc_validate_get_type() argument
4305 unsigned int *chmap, int channels) in atihdmi_paired_cea_alloc_to_tlv_chmap() argument
4317 chmap[count++] = SNDRV_CHMAP_NA; in atihdmi_paired_cea_alloc_to_tlv_chmap()
4322 chmap[count++] = snd_hdac_spk_to_chmap(spk); in atihdmi_paired_cea_alloc_to_tlv_chmap()
4446 spec->chmap.ops.pin_get_slot_channel = atihdmi_pin_get_slot_channel; in patch_atihdmi()
4447 spec->chmap.ops.pin_set_slot_channel = atihdmi_pin_set_slot_channel; in patch_atihdmi()
4451 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in patch_atihdmi()
4453 spec->chmap.ops.cea_alloc_to_tlv_chmap = in patch_atihdmi()
4455 spec->chmap.ops.chmap_validate = atihdmi_paired_chmap_validate; in patch_atihdmi()
4467 spec->chmap.channels_max = max(spec->chmap.channels_max, 8u); in patch_atihdmi()