Lines Matching refs:channel_allocations
119 static struct hdac_cea_channel_speaker_allocation channel_allocations[] = { variable
224 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in init_channel_allocations()
225 p = channel_allocations + i; in init_channel_allocations()
240 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in get_channel_allocation_order()
241 if (channel_allocations[i].ca_index == ca) in get_channel_allocation_order()
294 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in hdmi_channel_allocation_spk_alloc_blk()
295 if (channels == channel_allocations[i].channels && in hdmi_channel_allocation_spk_alloc_blk()
296 (spk_mask & channel_allocations[i].spk_mask) == in hdmi_channel_allocation_spk_alloc_blk()
297 channel_allocations[i].spk_mask) { in hdmi_channel_allocation_spk_alloc_blk()
298 ca = channel_allocations[i].ca_index; in hdmi_channel_allocation_spk_alloc_blk()
308 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in hdmi_channel_allocation_spk_alloc_blk()
309 if (channels == channel_allocations[i].channels) { in hdmi_channel_allocation_spk_alloc_blk()
310 ca = channel_allocations[i].ca_index; in hdmi_channel_allocation_spk_alloc_blk()
351 ch_alloc = &channel_allocations[order]; in hdmi_std_setup_channel_mapping()
438 if (ordered_ca >= ARRAY_SIZE(channel_allocations)) in to_cea_slot()
443 if (channel_allocations[ordered_ca].speakers[7 - i] == mask) in to_cea_slot()
475 mask = channel_allocations[ordered_ca].speakers[7 - slot]; in from_cea_slot()
494 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++) { in hdmi_manual_channel_allocation()
495 if ((chs == channel_allocations[i].channels || in hdmi_manual_channel_allocation()
496 spks == channel_allocations[i].channels) && in hdmi_manual_channel_allocation()
497 (spk_mask & channel_allocations[i].spk_mask) == in hdmi_manual_channel_allocation()
498 channel_allocations[i].spk_mask) in hdmi_manual_channel_allocation()
499 return channel_allocations[i].ca_index; in hdmi_manual_channel_allocation()
542 if (ordered_ca < ARRAY_SIZE(channel_allocations) && in hdmi_setup_fake_chmap()
543 i < channel_allocations[ordered_ca].channels) in hdmi_setup_fake_chmap()
574 if (ordered_ca >= ARRAY_SIZE(channel_allocations)) in snd_hdac_get_active_channels()
577 return channel_allocations[ordered_ca].channels; in snd_hdac_get_active_channels()
583 return &channel_allocations[get_channel_allocation_order(ca)]; in snd_hdac_get_ch_alloc_from_ca()
692 cap = channel_allocations; in hdmi_chmap_ctl_tlv()
693 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++, cap++) { in hdmi_chmap_ctl_tlv()