Searched refs:chmap (Results 1 - 14 of 14) sorted by relevance

/linux-4.4.14/sound/usb/
H A Dstream.c51 kfree(fp->chmap); free_substream()
133 if (prev->chmap && have_dup_chmap()
134 !memcmp(prev->chmap, fp->chmap, sizeof(*fp->chmap))) have_dup_chmap()
158 if (!fp->chmap) usb_chmap_ctl_tlv()
163 ch_bytes = fp->chmap->channels * 4; usb_chmap_ctl_tlv()
170 for (i = 0; i < fp->chmap->channels; i++, dst++) { usb_chmap_ctl_tlv()
171 if (put_user(fp->chmap->map[i], dst)) usb_chmap_ctl_tlv()
188 struct snd_pcm_chmap_elem *chmap = NULL; usb_chmap_ctl_get() local
194 chmap = subs->cur_audiofmt->chmap; usb_chmap_ctl_get()
195 if (chmap) { usb_chmap_ctl_get()
196 for (i = 0; i < chmap->channels; i++) usb_chmap_ctl_get()
197 ucontrol->value.integer.value[i] = chmap->map[i]; usb_chmap_ctl_get()
202 /* create a chmap kctl assigned to the given USB substream */ add_chmap()
207 struct snd_pcm_chmap *chmap; add_chmap() local
212 if (fp->chmap) add_chmap()
214 /* no chmap is found */ add_chmap()
218 err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap); add_chmap()
223 chmap->private_data = subs; add_chmap()
224 kctl = chmap->kctl; add_chmap()
232 /* convert from USB ChannelConfig bits to ALSA chmap element */ convert_chmap()
281 struct snd_pcm_chmap_elem *chmap; convert_chmap() local
285 if (channels > ARRAY_SIZE(chmap->map)) convert_chmap()
288 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); convert_chmap()
289 if (!chmap) convert_chmap()
293 chmap->channels = channels; convert_chmap()
299 chmap->map[c++] = *maps; convert_chmap()
304 chmap->map[c++] = SNDRV_CHMAP_MONO; convert_chmap()
307 chmap->map[c++] = *maps; convert_chmap()
311 chmap->map[c] = SNDRV_CHMAP_UNKNOWN; convert_chmap()
313 return chmap; convert_chmap()
723 /* Create chmap */ snd_usb_parse_audio_interface()
726 fp->chmap = convert_chmap(fp->channels, chconfig, protocol); snd_usb_parse_audio_interface()
733 kfree(fp->chmap); snd_usb_parse_audio_interface()
H A Dcard.h31 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */ member in struct:audioformat
/linux-4.4.14/sound/pci/hda/
H A Dpatch_hdmi.c91 unsigned char chmap[8]; /* ALSA API channel-map */ member in struct:hdmi_spec_per_pin
124 unsigned int *chmap, int channels);
126 /* check that the user-given chmap is supported */
127 int (*chmap_validate)(int ca, int channels, unsigned char *chmap);
1142 ca = hdmi_manual_channel_allocation(channels, per_pin->chmap); hdmi_setup_audio_infoframe()
1158 channels, per_pin->chmap, hdmi_setup_audio_infoframe()
1895 memset(per_pin->chmap, 0, sizeof(per_pin->chmap)); hdmi_pcm_close()
1940 unsigned int *chmap, int channels) hdmi_cea_alloc_to_tlv_chmap()
1950 chmap[count++] = spk_to_chmap(spk); hdmi_cea_alloc_to_tlv_chmap()
2015 for (i = 0; i < ARRAY_SIZE(per_pin->chmap); i++) hdmi_chmap_ctl_get()
2016 ucontrol->value.integer.value[i] = per_pin->chmap[i]; hdmi_chmap_ctl_get()
2030 unsigned char chmap[8]; hdmi_chmap_ctl_put() local
2047 memset(chmap, 0, sizeof(chmap)); hdmi_chmap_ctl_put()
2048 for (i = 0; i < ARRAY_SIZE(chmap); i++) hdmi_chmap_ctl_put()
2049 chmap[i] = ucontrol->value.integer.value[i]; hdmi_chmap_ctl_put()
2050 if (!memcmp(chmap, per_pin->chmap, sizeof(chmap))) hdmi_chmap_ctl_put()
2052 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap); hdmi_chmap_ctl_put()
2056 err = spec->ops.chmap_validate(ca, ARRAY_SIZE(chmap), chmap); hdmi_chmap_ctl_put()
2062 memcpy(per_pin->chmap, chmap, sizeof(chmap)); hdmi_chmap_ctl_put()
2148 struct snd_pcm_chmap *chmap; generic_hdmi_build_controls() local
2157 NULL, 0, pin_idx, &chmap); generic_hdmi_build_controls()
2161 chmap->private_data = codec; generic_hdmi_build_controls()
2162 kctl = chmap->kctl; generic_hdmi_build_controls()
2903 struct snd_pcm_chmap *chmap; nvhdmi_7x_8ch_build_controls() local
2914 snd_pcm_alt_chmaps, 8, 0, &chmap); nvhdmi_7x_8ch_build_controls()
2922 chmap->channel_mask = (1U << 2) | (1U << 8); nvhdmi_7x_8ch_build_controls()
2925 chmap->channel_mask = (1U << 2) | (1U << 6) | (1U << 8); nvhdmi_7x_8ch_build_controls()
3374 unsigned int *chmap, int channels) atihdmi_paired_cea_alloc_to_tlv_chmap()
3386 chmap[count++] = SNDRV_CHMAP_NA; atihdmi_paired_cea_alloc_to_tlv_chmap()
3391 chmap[count++] = spk_to_chmap(spk); atihdmi_paired_cea_alloc_to_tlv_chmap()
1939 hdmi_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, unsigned int *chmap, int channels) hdmi_cea_alloc_to_tlv_chmap() argument
3373 atihdmi_paired_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, unsigned int *chmap, int channels) atihdmi_paired_cea_alloc_to_tlv_chmap() argument
H A Dhda_codec.h154 const struct snd_pcm_chmap_elem *chmap; /* chmap to override */ member in struct:hda_pcm_stream
H A Dhda_codec.c3058 struct snd_pcm_chmap *chmap; add_std_chmaps() local
3063 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; add_std_chmaps()
3066 0, &chmap); add_std_chmaps()
3069 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; add_std_chmaps()
H A Dpatch_realtek.c6413 /* override the 2.1 chmap */ alc_fixup_bass_chmap()
6419 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; alc_fixup_bass_chmap()
H A Dhda_generic.c5556 info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = snd_hda_gen_build_pcms()
/linux-4.4.14/sound/core/
H A Dpcm_lib.c2494 if (snd_BUG_ON(!info->chmap)) pcm_chmap_ctl_get()
2503 for (map = info->chmap; map->channels; map++) { pcm_chmap_ctl_get()
2526 if (snd_BUG_ON(!info->chmap)) pcm_chmap_ctl_tlv()
2534 for (map = info->chmap; map->channels; map++) { pcm_chmap_ctl_tlv()
2572 * @chmap: channel map elements (for query)
2581 const struct snd_pcm_chmap_elem *chmap, snd_pcm_add_chmap_ctls()
2603 info->chmap = chmap; snd_pcm_add_chmap_ctls()
2580 snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, const struct snd_pcm_chmap_elem *chmap, int max_channels, unsigned long private_value, struct snd_pcm_chmap **info_ret) snd_pcm_add_chmap_ctls() argument
/linux-4.4.14/sound/pci/ali5451/
H A Dali5451.c214 unsigned int chmap; /* bitmap for opened channels */ member in struct:snd_alidev
539 if (!(codec->synth.chmap & (1 << idx))) { snd_ali_alloc_pcm_channel()
540 codec->synth.chmap |= 1 << idx; snd_ali_alloc_pcm_channel()
606 if (!(codec->synth.chmap & (1 << idx))) { snd_ali_free_channel_pcm()
612 codec->synth.chmap &= ~(1 << idx); snd_ali_free_channel_pcm()
2151 codec->synth.chmap = 0; snd_ali_create()
/linux-4.4.14/include/sound/
H A Dpcm.h1356 const struct snd_pcm_chmap_elem *chmap; member in struct:snd_pcm_chmap
1363 * snd_pcm_chmap_substream - get the PCM substream assigned to the given chmap info
1364 * @info: chmap information
1388 const struct snd_pcm_chmap_elem *chmap,
/linux-4.4.14/sound/pci/
H A Datiixp.c1253 struct snd_pcm_chmap *chmap; snd_atiixp_pcm_new() local
1299 &chmap); snd_atiixp_pcm_new()
1302 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; snd_atiixp_pcm_new()
1303 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; snd_atiixp_pcm_new()
H A Dvia82xx.c1449 struct snd_pcm_chmap *chmap; snd_via8233_pcm_new() local
1479 &chmap); snd_via8233_pcm_new()
1503 &chmap); snd_via8233_pcm_new()
1506 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; snd_via8233_pcm_new()
1517 struct snd_pcm_chmap *chmap; snd_via8233a_pcm_new() local
1546 &chmap); snd_via8233a_pcm_new()
1549 chip->ac97->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; snd_via8233a_pcm_new()
H A Dintel8x0.c1553 struct snd_pcm_chmap *chmap; snd_intel8x0_pcm1() local
1563 &chmap); snd_intel8x0_pcm1()
1566 chmap->channel_mask = SND_PCM_CHMAP_MASK_2468; snd_intel8x0_pcm1()
1567 chip->ac97[0]->chmaps[SNDRV_PCM_STREAM_PLAYBACK] = chmap; snd_intel8x0_pcm1()
/linux-4.4.14/sound/pci/ac97/
H A Dac97_patch.c2547 map->chmap = snd_pcm_std_chmaps; alc650_swap_surround_put()
2549 map->chmap = snd_pcm_alt_chmaps; alc650_swap_surround_put()

Completed in 985 milliseconds