Home
last modified time | relevance | path

Searched refs:chmap (Results 1 – 18 of 18) sorted by relevance

/linux/sound/hda/core/
H A Dhdmi_chmap.c323 static void hdmi_debug_channel_mapping(struct hdac_chmap *chmap, in hdmi_debug_channel_mapping() argument
331 channel = chmap->ops.pin_get_slot_channel( in hdmi_debug_channel_mapping()
332 chmap->hdac, pin_nid, i); in hdmi_debug_channel_mapping()
333 dev_dbg(&chmap->hdac->dev, "HDMI: ASP channel %d => slot %d\n", in hdmi_debug_channel_mapping()
339 static void hdmi_std_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_std_setup_channel_mapping() argument
381 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_std_setup_channel_mapping()
384 dev_dbg(&chmap->hdac->dev, "HDMI: channel mapping failed\n"); in hdmi_std_setup_channel_mapping()
505 static int hdmi_manual_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_manual_setup_channel_mapping() argument
527 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_manual_setup_channel_mapping()
550 void snd_hdac_setup_channel_mapping(struct hdac_chmap *chmap, in snd_hdac_setup_channel_mapping() argument
[all …]
/linux/sound/usb/
H A Dstream.c35 kfree(fp->chmap); in audioformat_free()
139 if (prev->chmap && in have_dup_chmap()
140 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) in have_dup_chmap()
164 if (!fp->chmap) in usb_chmap_ctl_tlv()
169 ch_bytes = fp->chmap->channels * 4; in usb_chmap_ctl_tlv()
176 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv()
177 if (put_user(fp->chmap->map[i], dst)) in usb_chmap_ctl_tlv()
194 struct snd_pcm_chmap_elem *chmap in usb_chmap_ctl_get() local
213 struct snd_pcm_chmap *chmap; add_chmap() local
287 struct snd_pcm_chmap_elem *chmap; convert_chmap() local
331 struct snd_pcm_chmap_elem *chmap; convert_chmap_v3() local
887 struct snd_pcm_chmap_elem *chmap; snd_usb_get_audioformat_uac3() local
[all...]
H A Dcard.h40 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
/linux/include/sound/
H A Dhda_chmap.h30 int (*chmap_cea_alloc_validate_get_type)(struct hdac_chmap *chmap,
34 unsigned int *chmap, int channels);
38 int channels, unsigned char *chmap);
43 unsigned char *chmap);
45 unsigned char *chmap, int prepared);
64 struct hdac_chmap *chmap);
69 void snd_hdac_setup_channel_mapping(struct hdac_chmap *chmap,
78 struct hdac_chmap *chmap);
H A Dpcm.h1467 const struct snd_pcm_chmap_elem *chmap; member
1501 const struct snd_pcm_chmap_elem *chmap,
/linux/sound/hda/codecs/hdmi/
H A Datihdmi.c262 static int atihdmi_paired_chmap_validate(struct hdac_chmap *chmap, in atihdmi_paired_chmap_validate() argument
379 struct hdac_chmap *chmap, in atihdmi_paired_chmap_cea_alloc_validate_get_type() argument
410 unsigned int *chmap, int channels) in atihdmi_paired_cea_alloc_to_tlv_chmap() argument
423 chmap[count++] = SNDRV_CHMAP_NA; in atihdmi_paired_cea_alloc_to_tlv_chmap()
428 chmap[count++] = snd_hdac_spk_to_chmap(spk); in atihdmi_paired_cea_alloc_to_tlv_chmap()
550 spec->chmap.ops.pin_get_slot_channel = atihdmi_pin_get_slot_channel; in atihdmi_probe()
551 spec->chmap.ops.pin_set_slot_channel = atihdmi_pin_set_slot_channel; in atihdmi_probe()
555 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in atihdmi_probe()
557 spec->chmap.ops.cea_alloc_to_tlv_chmap = in atihdmi_probe()
559 spec->chmap.ops.chmap_validate = atihdmi_paired_chmap_validate; in atihdmi_probe()
[all …]
H A Dnvhdmi.c26 static int nvhdmi_chmap_cea_alloc_validate_get_type(struct hdac_chmap *chmap, in nvhdmi_chmap_cea_alloc_validate_get_type() argument
40 static int nvhdmi_chmap_validate(struct hdac_chmap *chmap, in nvhdmi_chmap_validate() argument
91 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in probe_generic()
93 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in probe_generic()
115 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in probe_legacy()
117 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in probe_legacy()
H A Dtegrahdmi.c207 static int nvhdmi_chmap_cea_alloc_validate_get_type(struct hdac_chmap *chmap, in nvhdmi_chmap_cea_alloc_validate_get_type() argument
221 static int nvhdmi_chmap_validate(struct hdac_chmap *chmap, in nvhdmi_chmap_validate() argument
249 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in tegra_hdmi_init()
251 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in tegra_hdmi_init()
253 spec->chmap.ops.chmap_cea_alloc_validate_get_type = in tegra_hdmi_init()
255 spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; in tegra_hdmi_init()
H A Dhdmi.c533 struct hdac_chmap *chmap = &spec->chmap; in snd_hda_hdmi_setup_audio_infoframe() local
556 per_pin->chmap_set, non_pcm, per_pin->chmap); in snd_hda_hdmi_setup_audio_infoframe()
560 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in snd_hda_hdmi_setup_audio_infoframe()
567 snd_hdac_setup_channel_mapping(&spec->chmap, in snd_hda_hdmi_setup_audio_infoframe()
569 per_pin->chmap, per_pin->chmap_set); in snd_hda_hdmi_setup_audio_infoframe()
1116 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1529 if (chans > spec->chmap.channels_max) in hdmi_add_cvt()
1530 spec->chmap.channels_max = chans; in hdmi_add_cvt()
1772 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_close()
1801 unsigned char *chmap) in hdmi_get_chmap() argument
[all …]
H A Dnvhdmi-mcp.c254 struct snd_pcm_chmap *chmap; in nvhdmi_mcp_build_controls() local
268 snd_pcm_alt_chmaps, 8, 0, &chmap); in nvhdmi_mcp_build_controls()
276 chmap->channel_mask = (1U << 2) | (1U << 8); in nvhdmi_mcp_build_controls()
279 chmap->channel_mask = (1U << 2) | (1U << 6) | (1U << 8); in nvhdmi_mcp_build_controls()
H A Dhdmi_local.h54 unsigned char chmap[8]; /* ALSA API channel-map */ member
156 struct hdac_chmap chmap; member
/linux/sound/virtio/
H A Dvirtio_chmap.c173 struct snd_pcm_chmap_elem *chmap; in virtsnd_chmap_build_devs() local
184 chmap = &vs->chmaps[vs->nchmaps++]; in virtsnd_chmap_build_devs()
186 if (channels > ARRAY_SIZE(chmap->map)) in virtsnd_chmap_build_devs()
187 channels = ARRAY_SIZE(chmap->map); in virtsnd_chmap_build_devs()
189 chmap->channels = channels; in virtsnd_chmap_build_devs()
197 chmap->map[ch] = g_v2a_position_map[position]; in virtsnd_chmap_build_devs()
/linux/sound/soc/codecs/
H A Dhdac_hdmi.c107 unsigned char chmap[8]; /* ALSA API channel-map */ member
135 struct hdac_chmap chmap; member
372 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe()
375 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe()
377 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe()
378 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe()
645 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close()
667 if (chans > hdmi->chmap.channels_max) in hdac_hdmi_query_cvt_params()
668 hdmi->chmap in hdac_hdmi_query_cvt_params()
1770 hdac_hdmi_get_chmap(struct hdac_device * hdev,int pcm_idx,unsigned char * chmap) hdac_hdmi_get_chmap() argument
1779 hdac_hdmi_set_chmap(struct hdac_device * hdev,int pcm_idx,unsigned char * chmap,int prepared) hdac_hdmi_set_chmap() argument
[all...]
H A Dhdmi-codec.c352 hcp->chmap_info->chmap = hdmi_codec_8ch_chmaps; in hdmi_codec_eld_chmap()
354 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_eld_chmap()
390 map = info->chmap[hcp->chmap_idx].map; in hdmi_codec_chmap_ctl_get()
481 /* Select chmap supported */ in hdmi_codec_startup()
812 /* default chmap supported is stereo */ in hdmi_codec_pcm_new()
813 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
/linux/sound/soc/atmel/
H A Dmchp-pdmc.c108 struct snd_pcm_chmap_elem *chmap; member
239 for (map = ch_info->chmap; map->channels; map++) { in mchp_pdmc_chmap_get()
257 if (!info->chmap) in mchp_pdmc_chmap_ctl_get()
299 if (!info->chmap) in mchp_pdmc_chmap_ctl_put()
347 if (!info->chmap) in mchp_pdmc_chmap_ctl_tlv()
355 for (map = info->chmap; map->channels; map++) { in mchp_pdmc_chmap_ctl_tlv()
714 info->chmap = mchp_pdmc_std_chmaps; in mchp_pdmc_add_chmap_ctls()
/linux/sound/x86/
H A Dintel_hdmi_audio.h111 struct snd_pcm_chmap *chmap; member
/linux/include/sound/sof/
H A Dstream.h92 uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */ member
/linux/sound/core/
H A Dpcm_lib.c2497 if (!info->chmap) in pcm_chmap_ctl_get()
2506 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_get()
2529 if (!info->chmap) in pcm_chmap_ctl_tlv()
2537 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_tlv()
2584 const struct snd_pcm_chmap_elem *chmap, in snd_pcm_add_chmap_ctls() argument
2609 info->chmap = chmap; in snd_pcm_add_chmap_ctls()