Lines Matching refs:ca
236 static int get_channel_allocation_order(int ca) in get_channel_allocation_order() argument
241 if (channel_allocations[i].ca_index == ca) in get_channel_allocation_order()
272 int ca = 0; in hdmi_channel_allocation_spk_alloc_blk() local
298 ca = channel_allocations[i].ca_index; in hdmi_channel_allocation_spk_alloc_blk()
303 if (!ca) { in hdmi_channel_allocation_spk_alloc_blk()
310 ca = channel_allocations[i].ca_index; in hdmi_channel_allocation_spk_alloc_blk()
318 ca, channels, buf); in hdmi_channel_allocation_spk_alloc_blk()
320 return ca; in hdmi_channel_allocation_spk_alloc_blk()
342 int ca) in hdmi_std_setup_channel_mapping() argument
350 order = get_channel_allocation_order(ca); in hdmi_std_setup_channel_mapping()
353 if (hdmi_channel_mapping[ca][1] == 0) { in hdmi_std_setup_channel_mapping()
361 hdmi_channel_mapping[ca][i] = (i << 4) | hdmi_slot++; in hdmi_std_setup_channel_mapping()
366 hdmi_channel_mapping[ca][i++] = (0xf << 4) | hdmi_slot; in hdmi_std_setup_channel_mapping()
377 int slotsetup = non_pcm ? non_pcm_mapping[i] : hdmi_channel_mapping[ca][i]; in hdmi_std_setup_channel_mapping()
508 int ca) in hdmi_manual_setup_channel_mapping() argument
510 int ordered_ca = get_channel_allocation_order(ca); in hdmi_manual_setup_channel_mapping()
536 static void hdmi_setup_fake_chmap(unsigned char *map, int ca) in hdmi_setup_fake_chmap() argument
539 int ordered_ca = get_channel_allocation_order(ca); in hdmi_setup_fake_chmap()
544 map[i] = from_cea_slot(ordered_ca, hdmi_channel_mapping[ca][i] & 0x0f); in hdmi_setup_fake_chmap()
551 hda_nid_t pin_nid, bool non_pcm, int ca, in snd_hdac_setup_channel_mapping() argument
557 channels, map, ca); in snd_hdac_setup_channel_mapping()
559 hdmi_std_setup_channel_mapping(chmap, pin_nid, non_pcm, ca); in snd_hdac_setup_channel_mapping()
560 hdmi_setup_fake_chmap(map, ca); in snd_hdac_setup_channel_mapping()
567 int snd_hdac_get_active_channels(int ca) in snd_hdac_get_active_channels() argument
569 int ordered_ca = get_channel_allocation_order(ca); in snd_hdac_get_active_channels()
581 struct hdac_cea_channel_speaker_allocation *snd_hdac_get_ch_alloc_from_ca(int ca) in snd_hdac_get_ch_alloc_from_ca() argument
583 return &channel_allocations[get_channel_allocation_order(ca)]; in snd_hdac_get_ch_alloc_from_ca()
590 int ca; in snd_hdac_channel_allocation() local
593 ca = hdmi_manual_channel_allocation(channels, map); in snd_hdac_channel_allocation()
595 ca = hdmi_channel_allocation_spk_alloc_blk(hdac, in snd_hdac_channel_allocation()
598 if (ca < 0) in snd_hdac_channel_allocation()
599 ca = 0; in snd_hdac_channel_allocation()
601 return ca; in snd_hdac_channel_allocation()
765 int i, err, ca, prepared = 0; in hdmi_chmap_ctl_put() local
794 ca = hdmi_manual_channel_allocation(ARRAY_SIZE(chmap), chmap); in hdmi_chmap_ctl_put()
795 if (ca < 0) in hdmi_chmap_ctl_put()
798 err = hchmap->ops.chmap_validate(hchmap, ca, in hdmi_chmap_ctl_put()