Lines Matching refs:chmap

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