Home
last modified time | relevance | path

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

/linux-6.3-rc2/sound/hda/
A Dhdmi_chmap.c381 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_std_setup_channel_mapping()
527 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_manual_setup_channel_mapping()
683 spk_alloc = chmap->ops.get_spk_alloc(chmap->hdac, pcm_idx); in hdmi_chmap_ctl_tlv()
723 chmap->ops.cea_alloc_to_tlv_chmap(chmap, cap, in hdmi_chmap_ctl_tlv()
748 chmap->ops.get_chmap(chmap->hdac, pcm_idx, pcm_chmap); in hdmi_chmap_ctl_get()
787 memset(chmap, 0, sizeof(chmap)); in hdmi_chmap_ctl_put()
792 if (!memcmp(chmap, per_pin_chmap, sizeof(chmap))) in hdmi_chmap_ctl_put()
794 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
799 ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
821 chmap->hdac = hdac; in snd_hdac_register_chmap_ops()
[all …]
/linux-6.3-rc2/sound/usb/
A Dstream.c35 kfree(fp->chmap); in audioformat_free()
140 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) in have_dup_chmap()
198 chmap = subs->cur_audiofmt->chmap; in usb_chmap_ctl_get()
199 if (chmap) { in usb_chmap_ctl_get()
294 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in convert_chmap()
295 if (!chmap) in convert_chmap()
319 return chmap; in convert_chmap()
335 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in convert_chmap_v3()
336 if (!chmap) in convert_chmap_v3()
914 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in snd_usb_get_audioformat_uac3()
[all …]
A Dproc.c138 if (fp->chmap) { in proc_dump_substream_formats()
139 const struct snd_pcm_chmap_elem *map = fp->chmap; in proc_dump_substream_formats()
A Dcard.h39 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
/linux-6.3-rc2/include/sound/
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);
A Dhda_codec.h148 const struct snd_pcm_chmap_elem *chmap; /* chmap to override */ member
A Dpcm.h1492 const struct snd_pcm_chmap_elem *chmap; member
1526 const struct snd_pcm_chmap_elem *chmap,
/linux-6.3-rc2/sound/x86/
A Dintel_hdmi_audio.c478 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map()
479 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map()
481 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map()
482 if (!chmap) in had_build_channel_allocation_map()
524 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map()
529 kfree(chmap); in had_build_channel_allocation_map()
556 if (!intelhaddata->chmap->chmap) { in had_chmap_ctl_get()
561 chmap = intelhaddata->chmap->chmap; in had_chmap_ctl_get()
583 intelhaddata->chmap->chmap = NULL; in had_register_chmap_ctls()
1367 kfree(intelhaddata->chmap->chmap); in had_process_hot_unplug()
[all …]
A Dintel_hdmi_audio.h111 struct snd_pcm_chmap *chmap; member
/linux-6.3-rc2/sound/virtio/
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-6.3-rc2/sound/pci/hda/
A Dpatch_hdmi.c188 struct hdac_chmap chmap; member
742 struct hdac_chmap *chmap = &spec->chmap; in hdmi_setup_audio_infoframe() local
1469 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1963 spec->chmap.channels_max = chans; in hdmi_add_cvt()
2212 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_close()
2245 unsigned char *chmap) in hdmi_get_chmap() argument
2255 memcpy(chmap, per_pin->chmap, ARRAY_SIZE(per_pin->chmap)); in hdmi_get_chmap()
2269 memcpy(per_pin->chmap, chmap, ARRAY_SIZE(per_pin->chmap)); in hdmi_set_chmap()
3679 struct snd_pcm_chmap *chmap; in nvhdmi_7x_8ch_build_controls() local
4267 struct hdac_chmap *chmap, in atihdmi_paired_chmap_cea_alloc_validate_get_type() argument
[all …]
A Dhda_codec.c3070 struct snd_pcm_chmap *chmap; in add_std_chmaps() local
3075 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3078 0, &chmap); in add_std_chmaps()
3081 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in add_std_chmaps()
A Dpatch_ca0132.c6939 struct snd_pcm_chmap *chmap; in ca0132_alt_add_chmap_ctls() local
6946 elem, hinfo->channels_max, 0, &chmap); in ca0132_alt_add_chmap_ctls()
7285 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap in ca0132_build_pcms()
A Dhda_generic.c5707 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = in snd_hda_gen_build_pcms()
A Dpatch_realtek.c10925 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
/linux-6.3-rc2/sound/soc/codecs/
A Dhdac_hdmi.c108 unsigned char chmap[8]; /* ALSA API channel-map */ member
136 struct hdac_chmap chmap; member
373 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe()
379 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe()
640 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close()
662 if (chans > hdmi->chmap.channels_max) in hdac_hdmi_query_cvt_params()
663 hdmi->chmap.channels_max = chans; in hdac_hdmi_query_cvt_params()
2064 unsigned char *chmap) in hdac_hdmi_get_chmap() argument
2069 memcpy(chmap, pcm->chmap, ARRAY_SIZE(pcm->chmap)); in hdac_hdmi_get_chmap()
2073 unsigned char *chmap, int prepared) in hdac_hdmi_set_chmap() argument
[all …]
A Dhdmi-codec.c336 hcp->chmap_info->chmap = hdmi_codec_8ch_chmaps; in hdmi_codec_eld_chmap()
338 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_eld_chmap()
373 map = info->chmap[hcp->chmap_idx].map; in hdmi_codec_chmap_ctl_get()
785 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
/linux-6.3-rc2/sound/soc/atmel/
A Dmchp-pdmc.c102 struct snd_pcm_chmap_elem *chmap; member
225 for (map = ch_info->chmap; map->channels; map++) { in mchp_pdmc_chmap_get()
243 if (!info->chmap) in mchp_pdmc_chmap_ctl_get()
285 if (!info->chmap) in mchp_pdmc_chmap_ctl_put()
330 if (!info->chmap) in mchp_pdmc_chmap_ctl_tlv()
338 for (map = info->chmap; map->channels; map++) { in mchp_pdmc_chmap_ctl_tlv()
741 info->chmap = mchp_pdmc_std_chmaps; in mchp_pdmc_add_chmap_ctls()
/linux-6.3-rc2/include/sound/sof/
A Dstream.h92 uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */ member
/linux-6.3-rc2/sound/core/
A Dpcm_lib.c2400 if (!info->chmap) in pcm_chmap_ctl_get()
2409 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_get()
2432 if (!info->chmap) in pcm_chmap_ctl_tlv()
2440 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_tlv()
2487 const struct snd_pcm_chmap_elem *chmap, in snd_pcm_add_chmap_ctls() argument
2511 info->chmap = chmap; in snd_pcm_add_chmap_ctls()
/linux-6.3-rc2/sound/pci/
A Dvia82xx.c1425 struct snd_pcm_chmap *chmap; in snd_via8233_pcm_new() local
1455 &chmap); in snd_via8233_pcm_new()
1479 &chmap); in snd_via8233_pcm_new()
1482 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233_pcm_new()
1493 struct snd_pcm_chmap *chmap; in snd_via8233a_pcm_new() local
1522 &chmap); in snd_via8233a_pcm_new()
1525 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233a_pcm_new()
A Datiixp.c1239 struct snd_pcm_chmap *chmap; in snd_atiixp_pcm_new() local
1284 &chmap); in snd_atiixp_pcm_new()
1287 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_atiixp_pcm_new()
1288 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_atiixp_pcm_new()
A Dintel8x0.c1468 struct snd_pcm_chmap *chmap; in snd_intel8x0_pcm1() local
1478 &chmap); in snd_intel8x0_pcm1()
1481 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_intel8x0_pcm1()
1482 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_intel8x0_pcm1()
/linux-6.3-rc2/sound/pci/ali5451/
A Dali5451.c199 unsigned int chmap; /* bitmap for opened channels */ member
524 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_alloc_pcm_channel()
525 codec->synth.chmap |= 1 << idx; in snd_ali_alloc_pcm_channel()
591 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_free_channel_pcm()
597 codec->synth.chmap &= ~(1 << idx); in snd_ali_free_channel_pcm()
2071 codec->synth.chmap = 0; in snd_ali_create()
/linux-6.3-rc2/sound/pci/ac97/
A Dac97_patch.c2564 map->chmap = snd_pcm_std_chmaps; in alc650_swap_surround_put()
2566 map->chmap = snd_pcm_alt_chmaps; in alc650_swap_surround_put()

Completed in 144 milliseconds