• Home
  • Raw
  • Download

Lines Matching refs:chmap

51 		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()
194 for (i = 0; i < chmap->channels; i++) in usb_chmap_ctl_get()
195 ucontrol->value.integer.value[i] = chmap->map[i]; in usb_chmap_ctl_get()
205 struct snd_pcm_chmap *chmap; in add_chmap() local
210 if (fp->chmap) in add_chmap()
216 err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap); in add_chmap()
221 chmap->private_data = subs; in add_chmap()
222 kctl = chmap->kctl; in add_chmap()
279 struct snd_pcm_chmap_elem *chmap; in convert_chmap() local
283 if (channels > ARRAY_SIZE(chmap->map)) in convert_chmap()
286 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in convert_chmap()
287 if (!chmap) in convert_chmap()
291 chmap->channels = channels; in convert_chmap()
297 chmap->map[c++] = *maps; in convert_chmap()
302 chmap->map[c++] = SNDRV_CHMAP_MONO; in convert_chmap()
305 chmap->map[c++] = *maps; in convert_chmap()
309 chmap->map[c] = SNDRV_CHMAP_UNKNOWN; in convert_chmap()
311 return chmap; in convert_chmap()
722 fp->chmap = convert_chmap(fp->channels, chconfig, protocol); in snd_usb_parse_audio_interface()
729 kfree(fp->chmap); in snd_usb_parse_audio_interface()