• Home
  • Raw
  • Download

Lines Matching refs:chmap

322 static void hdmi_debug_channel_mapping(struct hdac_chmap *chmap,  in hdmi_debug_channel_mapping()  argument
330 channel = chmap->ops.pin_get_slot_channel( in hdmi_debug_channel_mapping()
331 chmap->hdac, pin_nid, i); in hdmi_debug_channel_mapping()
332 dev_dbg(&chmap->hdac->dev, "HDMI: ASP channel %d => slot %d\n", in hdmi_debug_channel_mapping()
338 static void hdmi_std_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_std_setup_channel_mapping() argument
380 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_std_setup_channel_mapping()
383 dev_dbg(&chmap->hdac->dev, "HDMI: channel mapping failed\n"); in hdmi_std_setup_channel_mapping()
504 static int hdmi_manual_setup_channel_mapping(struct hdac_chmap *chmap, in hdmi_manual_setup_channel_mapping() argument
526 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_manual_setup_channel_mapping()
549 void snd_hdac_setup_channel_mapping(struct hdac_chmap *chmap, in snd_hdac_setup_channel_mapping() argument
555 hdmi_manual_setup_channel_mapping(chmap, pin_nid, in snd_hdac_setup_channel_mapping()
558 hdmi_std_setup_channel_mapping(chmap, pin_nid, non_pcm, ca); in snd_hdac_setup_channel_mapping()
562 hdmi_debug_channel_mapping(chmap, pin_nid); in snd_hdac_setup_channel_mapping()
611 struct hdac_chmap *chmap = info->private_data; in hdmi_chmap_ctl_info() local
614 uinfo->count = chmap->channels_max; in hdmi_chmap_ctl_info()
620 static int hdmi_chmap_cea_alloc_validate_get_type(struct hdac_chmap *chmap, in hdmi_chmap_cea_alloc_validate_get_type() argument
633 unsigned int *chmap, int channels) in hdmi_cea_alloc_to_tlv_chmap() argument
644 chmap[count++] = snd_hdac_spk_to_chmap(spk); in hdmi_cea_alloc_to_tlv_chmap()
667 struct hdac_chmap *chmap = info->private_data; in hdmi_chmap_ctl_tlv() local
682 spk_alloc = chmap->ops.get_spk_alloc(chmap->hdac, pcm_idx); in hdmi_chmap_ctl_tlv()
702 type = chmap->ops.chmap_cea_alloc_validate_get_type( in hdmi_chmap_ctl_tlv()
703 chmap, cap, chs); in hdmi_chmap_ctl_tlv()
722 chmap->ops.cea_alloc_to_tlv_chmap(chmap, cap, in hdmi_chmap_ctl_tlv()
741 struct hdac_chmap *chmap = info->private_data; in hdmi_chmap_ctl_get() local
747 chmap->ops.get_chmap(chmap->hdac, pcm_idx, pcm_chmap); in hdmi_chmap_ctl_get()
763 unsigned char chmap[8], per_pin_chmap[8]; in hdmi_chmap_ctl_put() local
786 memset(chmap, 0, sizeof(chmap)); in hdmi_chmap_ctl_put()
787 for (i = 0; i < ARRAY_SIZE(chmap); i++) in hdmi_chmap_ctl_put()
788 chmap[i] = ucontrol->value.integer.value[i]; in hdmi_chmap_ctl_put()
791 if (!memcmp(chmap, per_pin_chmap, sizeof(chmap))) in hdmi_chmap_ctl_put()
793 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
798 ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
803 hchmap->ops.set_chmap(hchmap->hdac, pcm_idx, chmap, prepared); in hdmi_chmap_ctl_put()
817 struct hdac_chmap *chmap) in snd_hdac_register_chmap_ops() argument
819 chmap->ops = chmap_ops; in snd_hdac_register_chmap_ops()
820 chmap->hdac = hdac; in snd_hdac_register_chmap_ops()
828 struct snd_pcm_chmap *chmap; in snd_hdac_add_chmap_ctls() local
834 NULL, 0, pcm_idx, &chmap); in snd_hdac_add_chmap_ctls()
838 chmap->private_data = hchmap; in snd_hdac_add_chmap_ctls()
839 kctl = chmap->kctl; in snd_hdac_add_chmap_ctls()