Home
last modified time | relevance | path

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

12

/sound/hda/core/
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()
805 memset(chmap, 0, sizeof(chmap)); in hdmi_chmap_ctl_put()
810 if (!memcmp(chmap, per_pin_chmap, sizeof(chmap))) in hdmi_chmap_ctl_put()
812 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
817 ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
839 chmap->hdac = hdac; in snd_hdac_register_chmap_ops()
[all …]
/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()
322 return chmap; in convert_chmap()
338 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in convert_chmap_v3()
339 if (!chmap) in convert_chmap_v3()
932 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.h40 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
/sound/hda/codecs/hdmi/
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 …]
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()
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()
A Dhdmi.c543 struct hdac_chmap *chmap = &spec->chmap; in snd_hda_hdmi_setup_audio_infoframe() local
577 snd_hdac_setup_channel_mapping(&spec->chmap, in snd_hda_hdmi_setup_audio_infoframe()
579 per_pin->chmap, per_pin->chmap_set); in snd_hda_hdmi_setup_audio_infoframe()
1132 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1563 if (chans > spec->chmap.channels_max) in hdmi_add_cvt()
1564 spec->chmap.channels_max = chans; in hdmi_add_cvt()
1818 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_close()
1851 unsigned char *chmap) in hdmi_get_chmap() argument
1861 memcpy(chmap, per_pin->chmap, ARRAY_SIZE(per_pin->chmap)); in hdmi_get_chmap()
1865 unsigned char *chmap, int prepared) in hdmi_set_chmap() argument
[all …]
A Dnvhdmi-mcp.c255 struct snd_pcm_chmap *chmap; in nvhdmi_mcp_build_controls() local
269 snd_pcm_alt_chmaps, 8, 0, &chmap); in nvhdmi_mcp_build_controls()
277 chmap->channel_mask = (1U << 2) | (1U << 8); in nvhdmi_mcp_build_controls()
280 chmap->channel_mask = (1U << 2) | (1U << 6) | (1U << 8); in nvhdmi_mcp_build_controls()
A Dhdmi_local.h54 unsigned char chmap[8]; /* ALSA API channel-map */ member
156 struct hdac_chmap chmap; member
/sound/x86/
A Dintel_hdmi_audio.c480 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map()
481 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map()
483 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map()
484 if (!chmap) in had_build_channel_allocation_map()
526 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map()
531 kfree(chmap); in had_build_channel_allocation_map()
558 if (!intelhaddata->chmap->chmap) { in had_chmap_ctl_get()
563 chmap = intelhaddata->chmap->chmap; in had_chmap_ctl_get()
585 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
/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()
/sound/soc/codecs/
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()
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.channels_max = chans; in hdac_hdmi_query_cvt_params()
1770 unsigned char *chmap) in hdac_hdmi_get_chmap() argument
1775 memcpy(chmap, pcm->chmap, ARRAY_SIZE(pcm->chmap)); in hdac_hdmi_get_chmap()
1779 unsigned char *chmap, int prepared) in hdac_hdmi_set_chmap() argument
[all …]
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()
813 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
/sound/soc/atmel/
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()
/sound/core/
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()
/sound/pci/
A Dvia82xx.c1423 struct snd_pcm_chmap *chmap; in snd_via8233_pcm_new() local
1453 &chmap); in snd_via8233_pcm_new()
1477 &chmap); in snd_via8233_pcm_new()
1480 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233_pcm_new()
1491 struct snd_pcm_chmap *chmap; in snd_via8233a_pcm_new() local
1520 &chmap); in snd_via8233a_pcm_new()
1523 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233a_pcm_new()
A Datiixp.c1237 struct snd_pcm_chmap *chmap; in snd_atiixp_pcm_new() local
1282 &chmap); in snd_atiixp_pcm_new()
1285 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_atiixp_pcm_new()
1286 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_atiixp_pcm_new()
A Dintel8x0.c1465 struct snd_pcm_chmap *chmap; in snd_intel8x0_pcm1() local
1475 &chmap); in snd_intel8x0_pcm1()
1478 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_intel8x0_pcm1()
1479 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_intel8x0_pcm1()
/sound/pci/ali5451/
A Dali5451.c199 unsigned int chmap; /* bitmap for opened channels */ member
522 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_alloc_pcm_channel()
523 codec->synth.chmap |= 1 << idx; in snd_ali_alloc_pcm_channel()
589 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_free_channel_pcm()
595 codec->synth.chmap &= ~(1 << idx); in snd_ali_free_channel_pcm()
2056 codec->synth.chmap = 0; in snd_ali_create()
/sound/hda/common/
A Dcodec.c3035 struct snd_pcm_chmap *chmap; in add_std_chmaps() local
3040 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3043 0, &chmap); in add_std_chmaps()
3046 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in add_std_chmaps()
/sound/pci/ac97/
A Dac97_patch.c2561 map->chmap = snd_pcm_std_chmaps; in alc650_swap_surround_put()
2563 map->chmap = snd_pcm_alt_chmaps; in alc650_swap_surround_put()
/sound/hda/codecs/realtek/
A Drealtek.c1119 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
/sound/hda/codecs/
A Dca0132.c6956 struct snd_pcm_chmap *chmap; in ca0132_alt_add_chmap_ctls() local
6963 elem, hinfo->channels_max, 0, &chmap); in ca0132_alt_add_chmap_ctls()
7302 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap in ca0132_build_pcms()

Completed in 133 milliseconds

12