Home
last modified time | relevance | path

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

/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 …]
/sound/usb/
Dstream.c51 kfree(fp->chmap); in free_substream()
131 if (prev->chmap && in have_dup_chmap()
132 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) in have_dup_chmap()
156 if (!fp->chmap) in usb_chmap_ctl_tlv()
161 ch_bytes = fp->chmap->channels * 4; in usb_chmap_ctl_tlv()
168 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv()
169 if (put_user(fp->chmap->map[i], dst)) in usb_chmap_ctl_tlv()
186 struct snd_pcm_chmap_elem *chmap = NULL; in usb_chmap_ctl_get() local
192 chmap = subs->cur_audiofmt->chmap; in usb_chmap_ctl_get()
193 if (chmap) { in usb_chmap_ctl_get()
[all …]
Dcard.h32 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member
/sound/x86/
Dintel_hdmi_audio.c479 struct snd_pcm_chmap_elem *chmap; in had_build_channel_allocation_map() local
483 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map()
484 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map()
486 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map()
487 if (!chmap) in had_build_channel_allocation_map()
524 chmap->map[c] = spk_to_chmap( in had_build_channel_allocation_map()
528 chmap->channels = channel_allocations[i].channels; in had_build_channel_allocation_map()
529 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map()
534 kfree(chmap); in had_build_channel_allocation_map()
556 const struct snd_pcm_chmap_elem *chmap; in had_chmap_ctl_get() local
[all …]
Dintel_hdmi_audio.h111 struct snd_pcm_chmap *chmap; member
/sound/pci/hda/
Dpatch_hdmi.c102 unsigned char chmap[8]; /* ALSA API channel-map */ member
182 struct hdac_chmap chmap; member
713 struct hdac_chmap *chmap = &spec->chmap; in hdmi_setup_audio_infoframe() local
733 per_pin->chmap_set, non_pcm, per_pin->chmap); in hdmi_setup_audio_infoframe()
737 chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, in hdmi_setup_audio_infoframe()
744 snd_hdac_setup_channel_mapping(&spec->chmap, in hdmi_setup_audio_infoframe()
746 per_pin->chmap, per_pin->chmap_set); in hdmi_setup_audio_infoframe()
1426 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); in hdmi_pcm_reset_pin()
1788 if (chans > spec->chmap.channels_max) in hdmi_add_cvt()
1789 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.c3007 struct snd_pcm_chmap *chmap; in add_std_chmaps() local
3012 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3015 0, &chmap); in add_std_chmaps()
3018 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; in add_std_chmaps()
Dpatch_realtek.c7606 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
Dhda_generic.c5587 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = in snd_hda_gen_build_pcms()
/sound/soc/codecs/
Dhdac_hdmi.c113 unsigned char chmap[8]; /* ALSA API channel-map */ member
137 struct hdac_chmap chmap; member
364 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe()
367 hdmi->chmap.ops.set_channel_count(&hdac->hdac, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe()
369 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe()
370 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe()
623 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close()
646 if (chans > hdmi->chmap.channels_max) in hdac_hdmi_query_cvt_params()
647 hdmi->chmap.channels_max = chans; in hdac_hdmi_query_cvt_params()
1732 err = snd_hdac_add_chmap_ctls(snd_pcm, device, &hdmi->chmap); in hdac_hdmi_jack_init()
[all …]
Dhdmi-codec.c353 hcp->chmap_info->chmap = hdmi_codec_8ch_chmaps; in hdmi_codec_eld_chmap()
355 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()
686 hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps; in hdmi_codec_pcm_new()
/sound/core/
Dpcm_lib.c2344 if (!info->chmap) in pcm_chmap_ctl_get()
2353 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_get()
2376 if (!info->chmap) in pcm_chmap_ctl_tlv()
2384 for (map = info->chmap; map->channels; map++) { in pcm_chmap_ctl_tlv()
2431 const struct snd_pcm_chmap_elem *chmap, in snd_pcm_add_chmap_ctls() argument
2455 info->chmap = chmap; in snd_pcm_add_chmap_ctls()
/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()
2153 codec->synth.chmap = 0; in snd_ali_create()
/sound/pci/
Dvia82xx.c1449 struct snd_pcm_chmap *chmap; in snd_via8233_pcm_new() local
1479 &chmap); in snd_via8233_pcm_new()
1503 &chmap); in snd_via8233_pcm_new()
1506 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; in snd_via8233_pcm_new()
1517 struct snd_pcm_chmap *chmap; in snd_via8233a_pcm_new() local
1546 &chmap); in snd_via8233a_pcm_new()
1549 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()
/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()