Home
last modified time | relevance | path

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

/Linux-v4.19/sound/hda/
Dhdmi_chmap.c322 static void hdmi_debug_channel_mapping(struct hdac_chmap *chmap, in hdmi_debug_channel_mapping() argument
330 channel = chmap->ops.pin_get_slot_channel( in hdmi_debug_channel_mapping()
331 chmap->hdac, pin_nid, i); in hdmi_debug_channel_mapping()
332 dev_dbg(&chmap->hdac->dev, "HDMI: ASP channel %d => slot %d\n", in hdmi_debug_channel_mapping()
338 static void hdmi_std_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_std_setup_channel_mapping() argument
380 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_std_setup_channel_mapping()
383 dev_dbg(&chmap->hdac->dev, "HDMI: channel mapping failed\n"); in hdmi_std_setup_channel_mapping()
504 static int hdmi_manual_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_manual_setup_channel_mapping() argument
526 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_manual_setup_channel_mapping()
549 void snd_hdac_setup_channel_mapping(struct hdac_chmap *chmap, in snd_hdac_setup_channel_mapping() argument
[all …]
/Linux-v4.19/sound/usb/
Dstream.c53 kfree(fp->chmap); in free_substream()
144 if (prev->chmap && in have_dup_chmap()
145 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) in have_dup_chmap()
169 if (!fp->chmap) in usb_chmap_ctl_tlv()
174 ch_bytes = fp->chmap->channels * 4; in usb_chmap_ctl_tlv()
181 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv()
182 if (put_user(fp->chmap->map[i], dst)) in usb_chmap_ctl_tlv()
199 struct snd_pcm_chmap_elem *chmap = NULL; in usb_chmap_ctl_get() local
205 chmap = subs->cur_audiofmt->chmap; in usb_chmap_ctl_get()
206 if (chmap) { in usb_chmap_ctl_get()
[all …]
Dcard.h32 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
/Linux-v4.19/include/sound/
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);
Dpcm.h1396 const struct snd_pcm_chmap_elem *chmap; member
1428 const struct snd_pcm_chmap_elem *chmap,
/Linux-v4.19/sound/x86/
Dintel_hdmi_audio.c481 struct snd_pcm_chmap_elem *chmap; in had_build_channel_allocation_map() local
485 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map()
486 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map()
488 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map()
489 if (!chmap) in had_build_channel_allocation_map()
526 chmap->map[c] = spk_to_chmap( in had_build_channel_allocation_map()
530 chmap->channels = channel_allocations[i].channels; in had_build_channel_allocation_map()
531 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map()
536 kfree(chmap); in had_build_channel_allocation_map()
558 const struct snd_pcm_chmap_elem *chmap; in had_chmap_ctl_get() local
[all …]
Dintel_hdmi_audio.h111 struct snd_pcm_chmap *chmap; member
/Linux-v4.19/sound/pci/hda/
Dpatch_hdmi.c102 unsigned char chmap[8]; /* ALSA API channel-map */ member
182 struct hdac_chmap chmap; member
714 struct hdac_chmap *chmap = &spec->chmap; in hdmi_setup_audio_infoframe() local
734 per_pin->chmap_set, non_pcm, per_pin->chmap); in hdmi_setup_audio_infoframe()
738 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe()
745 snd_hdac_setup_channel_mapping(&spec->chmap, in hdmi_setup_audio_infoframe()
747 per_pin->chmap, per_pin->chmap_set); in hdmi_setup_audio_infoframe()
1425 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1780 if (chans > spec->chmap.channels_max) in hdmi_add_cvt()
1781 spec->chmap.channels_max = chans; in hdmi_add_cvt()
[all …]
Dhda_codec.h155 const struct snd_pcm_chmap_elem *chmap; /* chmap to override */ member
Dhda_codec.c2964 struct snd_pcm_chmap *chmap; in add_std_chmaps() local
2969 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
2972 0, &chmap); in add_std_chmaps()
2975 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in add_std_chmaps()
Dpatch_ca0132.c5742 struct snd_pcm_chmap *chmap; in ca0132_alt_add_chmap_ctls() local
5749 elem, hinfo->channels_max, 0, &chmap); in ca0132_alt_add_chmap_ctls()
6011 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap in ca0132_build_pcms()
Dpatch_realtek.c7628 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
Dhda_generic.c5724 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = in snd_hda_gen_build_pcms()
/Linux-v4.19/sound/soc/codecs/
Dhdac_hdmi.c113 unsigned char chmap[8]; /* ALSA API channel-map */ member
140 struct hdac_chmap chmap; member
359 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe()
362 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe()
364 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe()
365 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe()
616 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close()
638 if (chans > hdmi->chmap.channels_max) in hdac_hdmi_query_cvt_params()
639 hdmi->chmap.channels_max = chans; in hdac_hdmi_query_cvt_params()
1753 err = snd_hdac_add_chmap_ctls(snd_pcm, device, &hdmi->chmap); in hdac_hdmi_jack_init()
[all …]
Dhdmi-codec.c346 hcp->chmap_info->chmap = hdmi_codec_8ch_chmaps; in hdmi_codec_eld_chmap()
348 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_eld_chmap()
383 map = info->chmap[hcp->chmap_idx].map; in hdmi_codec_chmap_ctl_get()
677 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
/Linux-v4.19/sound/core/
Dpcm_lib.c2335 if (!info->chmap) in pcm_chmap_ctl_get()
2344 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_get()
2367 if (!info->chmap) in pcm_chmap_ctl_tlv()
2375 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_tlv()
2422 const struct snd_pcm_chmap_elem *chmap, in snd_pcm_add_chmap_ctls() argument
2446 info->chmap = chmap; in snd_pcm_add_chmap_ctls()
/Linux-v4.19/sound/pci/ali5451/
Dali5451.c214 unsigned int chmap; /* bitmap for opened channels */ member
539 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_alloc_pcm_channel()
540 codec->synth.chmap |= 1 << idx; in snd_ali_alloc_pcm_channel()
606 if (!(codec->synth.chmap & (1 << idx))) { in snd_ali_free_channel_pcm()
612 codec->synth.chmap &= ~(1 << idx); in snd_ali_free_channel_pcm()
2150 codec->synth.chmap = 0; in snd_ali_create()
/Linux-v4.19/sound/pci/
Dvia82xx.c1451 struct snd_pcm_chmap *chmap; in snd_via8233_pcm_new() local
1481 &chmap); in snd_via8233_pcm_new()
1505 &chmap); in snd_via8233_pcm_new()
1508 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233_pcm_new()
1519 struct snd_pcm_chmap *chmap; in snd_via8233a_pcm_new() local
1548 &chmap); in snd_via8233a_pcm_new()
1551 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233a_pcm_new()
Datiixp.c1253 struct snd_pcm_chmap *chmap; in snd_atiixp_pcm_new() local
1299 &chmap); in snd_atiixp_pcm_new()
1302 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_atiixp_pcm_new()
1303 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_atiixp_pcm_new()
Dintel8x0.c1549 struct snd_pcm_chmap *chmap; in snd_intel8x0_pcm1() local
1559 &chmap); in snd_intel8x0_pcm1()
1562 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in snd_intel8x0_pcm1()
1563 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_intel8x0_pcm1()
/Linux-v4.19/sound/pci/ac97/
Dac97_patch.c2547 map->chmap = snd_pcm_std_chmaps; in alc650_swap_surround_put()
2549 map->chmap = snd_pcm_alt_chmaps; in alc650_swap_surround_put()