Lines Matching defs:chmap
323 static void hdmi_debug_channel_mapping(struct hdac_chmap *chmap,
331 channel = chmap->ops.pin_get_slot_channel(
332 chmap->hdac, pin_nid, i);
333 dev_dbg(&chmap->hdac->dev, "HDMI: ASP channel %d => slot %d\n",
339 static void hdmi_std_setup_channel_mapping(struct hdac_chmap *chmap,
381 err = chmap->ops.pin_set_slot_channel(chmap->hdac,
384 dev_dbg(&chmap->hdac->dev, "HDMI: channel mapping failed\n");
505 static int hdmi_manual_setup_channel_mapping(struct hdac_chmap *chmap,
527 err = chmap->ops.pin_set_slot_channel(chmap->hdac,
550 void snd_hdac_setup_channel_mapping(struct hdac_chmap *chmap,
556 hdmi_manual_setup_channel_mapping(chmap, pin_nid,
559 hdmi_std_setup_channel_mapping(chmap, pin_nid, non_pcm, ca);
563 hdmi_debug_channel_mapping(chmap, pin_nid);
612 struct hdac_chmap *chmap = info->private_data;
615 uinfo->count = chmap->channels_max;
621 static int hdmi_chmap_cea_alloc_validate_get_type(struct hdac_chmap *chmap,
634 unsigned int *chmap, int channels)
645 chmap[count++] = snd_hdac_spk_to_chmap(spk);
668 struct hdac_chmap *chmap = info->private_data;
683 spk_alloc = chmap->ops.get_spk_alloc(chmap->hdac, pcm_idx);
703 type = chmap->ops.chmap_cea_alloc_validate_get_type(
704 chmap, cap, chs);
723 chmap->ops.cea_alloc_to_tlv_chmap(chmap, cap,
742 struct hdac_chmap *chmap = info->private_data;
748 chmap->ops.get_chmap(chmap->hdac, pcm_idx, pcm_chmap);
764 unsigned char chmap[8], per_pin_chmap[8];
768 * It's invalid to setup the chmap
787 memset(chmap, 0, sizeof(chmap));
788 for (i = 0; i < ARRAY_SIZE(chmap); i++)
789 chmap[i] = ucontrol->value.integer.value[i];
792 if (!memcmp(chmap, per_pin_chmap, sizeof(chmap)))
794 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap);
799 ARRAY_SIZE(chmap), chmap);
804 hchmap->ops.set_chmap(hchmap->hdac, pcm_idx, chmap, prepared);
818 struct hdac_chmap *chmap)
820 chmap->ops = chmap_ops;
821 chmap->hdac = hdac;
829 struct snd_pcm_chmap *chmap;
835 NULL, 0, pcm_idx, &chmap);
839 chmap->private_data = hchmap;
840 kctl = chmap->kctl;