Lines Matching refs:chmap
474 struct snd_pcm_chmap_elem *chmap; in had_build_channel_allocation_map() local
478 kfree(intelhaddata->chmap->chmap); in had_build_channel_allocation_map()
479 intelhaddata->chmap->chmap = NULL; in had_build_channel_allocation_map()
481 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); in had_build_channel_allocation_map()
482 if (!chmap) in had_build_channel_allocation_map()
519 chmap->map[c] = spk_to_chmap( in had_build_channel_allocation_map()
523 chmap->channels = channel_allocations[i].channels; in had_build_channel_allocation_map()
524 intelhaddata->chmap->chmap = chmap; in had_build_channel_allocation_map()
529 kfree(chmap); in had_build_channel_allocation_map()
551 const struct snd_pcm_chmap_elem *chmap; in had_chmap_ctl_get() local
556 if (!intelhaddata->chmap->chmap) { in had_chmap_ctl_get()
561 chmap = intelhaddata->chmap->chmap; in had_chmap_ctl_get()
562 for (i = 0; i < chmap->channels; i++) in had_chmap_ctl_get()
563 ucontrol->value.integer.value[i] = chmap->map[i]; in had_chmap_ctl_get()
576 &intelhaddata->chmap); in had_register_chmap_ctls()
580 intelhaddata->chmap->private_data = intelhaddata; in had_register_chmap_ctls()
581 intelhaddata->chmap->kctl->info = had_chmap_ctl_info; in had_register_chmap_ctls()
582 intelhaddata->chmap->kctl->get = had_chmap_ctl_get; in had_register_chmap_ctls()
583 intelhaddata->chmap->chmap = NULL; in had_register_chmap_ctls()
1367 kfree(intelhaddata->chmap->chmap); in had_process_hot_unplug()
1368 intelhaddata->chmap->chmap = NULL; in had_process_hot_unplug()