Lines Matching refs:cap
121 int (*chmap_cea_alloc_validate_get_type)(struct cea_channel_speaker_allocation *cap,
123 void (*cea_alloc_to_tlv_chmap)(struct cea_channel_speaker_allocation *cap,
1928 static int hdmi_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, in hdmi_chmap_cea_alloc_validate_get_type() argument
1932 if (cap->channels != channels) in hdmi_chmap_cea_alloc_validate_get_type()
1939 static void hdmi_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, in hdmi_cea_alloc_to_tlv_chmap() argument
1946 int spk = cap->speakers[c]; in hdmi_cea_alloc_to_tlv_chmap()
1973 struct cea_channel_speaker_allocation *cap; in hdmi_chmap_ctl_tlv() local
1974 cap = channel_allocations; in hdmi_chmap_ctl_tlv()
1975 for (i = 0; i < ARRAY_SIZE(channel_allocations); i++, cap++) { in hdmi_chmap_ctl_tlv()
1977 int type = spec->ops.chmap_cea_alloc_validate_get_type(cap, chs); in hdmi_chmap_ctl_tlv()
1994 spec->ops.cea_alloc_to_tlv_chmap(cap, tlv_chmap, chs); in hdmi_chmap_ctl_tlv()
2955 static int nvhdmi_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, in nvhdmi_chmap_cea_alloc_validate_get_type() argument
2958 if (cap->ca_index == 0x00 && channels == 2) in nvhdmi_chmap_cea_alloc_validate_get_type()
2961 return hdmi_chmap_cea_alloc_validate_get_type(cap, channels); in nvhdmi_chmap_cea_alloc_validate_get_type()
3236 struct cea_channel_speaker_allocation *cap; in atihdmi_paired_chmap_validate() local
3241 cap = &channel_allocations[get_channel_allocation_order(ca)]; in atihdmi_paired_chmap_validate()
3252 if (cap->speakers[chan_idx] == mask) { in atihdmi_paired_chmap_validate()
3260 int comp_mask_act = cap->speakers[comp_chan_idx]; in atihdmi_paired_chmap_validate()
3345 …ic int atihdmi_paired_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, in atihdmi_paired_chmap_cea_alloc_validate_get_type() argument
3363 if (cap->speakers[c] || cap->speakers[c+1]) in atihdmi_paired_chmap_cea_alloc_validate_get_type()
3373 static void atihdmi_paired_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, in atihdmi_paired_cea_alloc_to_tlv_chmap() argument
3382 int spk = cap->speakers[chan]; in atihdmi_paired_cea_alloc_to_tlv_chmap()
3385 if (cap->speakers[chan + (chan % 2 ? -1 : 1)]) in atihdmi_paired_cea_alloc_to_tlv_chmap()