/Linux-v5.10/sound/hda/ |
D | hdmi_chmap.c | 323 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-v5.10/sound/usb/ |
D | stream.c | 35 kfree(fp->chmap); in audioformat_free() 140 if (prev->chmap && in have_dup_chmap() 141 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) in have_dup_chmap() 165 if (!fp->chmap) in usb_chmap_ctl_tlv() 170 ch_bytes = fp->chmap->channels * 4; in usb_chmap_ctl_tlv() 177 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv() 178 if (put_user(fp->chmap->map[i], dst)) in usb_chmap_ctl_tlv() 195 struct snd_pcm_chmap_elem *chmap = NULL; in usb_chmap_ctl_get() local 201 chmap = subs->cur_audiofmt->chmap; in usb_chmap_ctl_get() 202 if (chmap) { in usb_chmap_ctl_get() [all …]
|
D | proc.c | 137 if (fp->chmap) { in proc_dump_substream_formats() 138 const struct snd_pcm_chmap_elem *map = fp->chmap; in proc_dump_substream_formats()
|
D | card.h | 33 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
|
/Linux-v5.10/include/sound/ |
D | hda_chmap.h | 30 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);
|
D | hda_codec.h | 146 const struct snd_pcm_chmap_elem *chmap; /* chmap to override */ member
|
D | pcm.h | 1384 const struct snd_pcm_chmap_elem *chmap; member 1416 const struct snd_pcm_chmap_elem *chmap,
|
/Linux-v5.10/sound/x86/ |
D | intel_hdmi_audio.c | 472 struct snd_pcm_chmap_elem *chmap; in had_build_channel_allocation_map() local 476 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map() 477 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map() 479 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map() 480 if (!chmap) in had_build_channel_allocation_map() 517 chmap->map[c] = spk_to_chmap( in had_build_channel_allocation_map() 521 chmap->channels = channel_allocations[i].channels; in had_build_channel_allocation_map() 522 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map() 527 kfree(chmap); in had_build_channel_allocation_map() 549 const struct snd_pcm_chmap_elem *chmap; in had_chmap_ctl_get() local [all …]
|
D | intel_hdmi_audio.h | 111 struct snd_pcm_chmap *chmap; member
|
/Linux-v5.10/sound/pci/hda/ |
D | patch_hdmi.c | 84 unsigned char chmap[8]; /* ALSA API channel-map */ member 172 struct hdac_chmap chmap; member 719 struct hdac_chmap *chmap = &spec->chmap; in hdmi_setup_audio_infoframe() local 742 per_pin->chmap_set, non_pcm, per_pin->chmap); in hdmi_setup_audio_infoframe() 746 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe() 753 snd_hdac_setup_channel_mapping(&spec->chmap, in hdmi_setup_audio_infoframe() 755 per_pin->chmap, per_pin->chmap_set); in hdmi_setup_audio_infoframe() 1475 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin() 1847 if (chans > spec->chmap.channels_max) in hdmi_add_cvt() 1848 spec->chmap.channels_max = chans; in hdmi_add_cvt() [all …]
|
D | hda_codec.c | 3056 struct snd_pcm_chmap *chmap; in add_std_chmaps() local 3061 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps() 3064 0, &chmap); in add_std_chmaps() 3067 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in add_std_chmaps()
|
D | patch_ca0132.c | 6817 struct snd_pcm_chmap *chmap; in ca0132_alt_add_chmap_ctls() local 6824 elem, hinfo->channels_max, 0, &chmap); in ca0132_alt_add_chmap_ctls() 7163 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap in ca0132_build_pcms()
|
D | hda_generic.c | 5795 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = in snd_hda_gen_build_pcms()
|
D | patch_realtek.c | 9268 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
|
/Linux-v5.10/sound/soc/codecs/ |
D | hdac_hdmi.c | 108 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() 376 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe() 378 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, 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() 1907 err = snd_hdac_add_chmap_ctls(snd_pcm, device, &hdmi->chmap); in hdac_hdmi_jack_init() [all …]
|
D | hdmi-codec.c | 339 hcp->chmap_info->chmap = hdmi_codec_8ch_chmaps; in hdmi_codec_eld_chmap() 341 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_eld_chmap() 376 map = info->chmap[hcp->chmap_idx].map; in hdmi_codec_chmap_ctl_get() 648 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
|
/Linux-v5.10/include/sound/sof/ |
D | stream.h | 90 uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */ member
|
/Linux-v5.10/sound/core/ |
D | pcm_lib.c | 2339 if (!info->chmap) in pcm_chmap_ctl_get() 2348 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_get() 2371 if (!info->chmap) in pcm_chmap_ctl_tlv() 2379 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_tlv() 2426 const struct snd_pcm_chmap_elem *chmap, in snd_pcm_add_chmap_ctls() argument 2450 info->chmap = chmap; in snd_pcm_add_chmap_ctls()
|
/Linux-v5.10/sound/pci/ali5451/ |
D | ali5451.c | 200 unsigned int chmap; /* bitmap for opened channels */ member 525 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_alloc_pcm_channel() 526 codec->synth.chmap |= 1 << idx; in snd_ali_alloc_pcm_channel() 592 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_free_channel_pcm() 598 codec->synth.chmap &= ~(1 << idx); in snd_ali_free_channel_pcm() 2101 codec->synth.chmap = 0; in snd_ali_create()
|
/Linux-v5.10/sound/pci/ |
D | via82xx.c | 1420 struct snd_pcm_chmap *chmap; in snd_via8233_pcm_new() local 1450 &chmap); in snd_via8233_pcm_new() 1474 &chmap); in snd_via8233_pcm_new() 1477 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233_pcm_new() 1488 struct snd_pcm_chmap *chmap; in snd_via8233a_pcm_new() local 1517 &chmap); in snd_via8233a_pcm_new() 1520 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233a_pcm_new()
|
D | atiixp.c | 1239 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()
|
D | intel8x0.c | 1481 struct snd_pcm_chmap *chmap; in snd_intel8x0_pcm1() local 1491 &chmap); in snd_intel8x0_pcm1() 1494 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_intel8x0_pcm1() 1495 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_intel8x0_pcm1()
|
/Linux-v5.10/sound/pci/ac97/ |
D | ac97_patch.c | 2532 map->chmap = snd_pcm_std_chmaps; in alc650_swap_surround_put() 2534 map->chmap = snd_pcm_alt_chmaps; in alc650_swap_surround_put()
|