Lines Matching refs:a

171 					 struct cea_sad *a,  in hdmi_update_short_audio_desc()  argument
178 a->rates = 0; in hdmi_update_short_audio_desc()
181 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc()
183 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc()
184 a->channels++; in hdmi_update_short_audio_desc()
186 a->sample_bits = 0; in hdmi_update_short_audio_desc()
187 a->max_bitrate = 0; in hdmi_update_short_audio_desc()
189 a->format = GRAB_BITS(buf, 0, 3, 4); in hdmi_update_short_audio_desc()
190 switch (a->format) { in hdmi_update_short_audio_desc()
199 a->sample_bits |= cea_sample_sizes[i + 1]; in hdmi_update_short_audio_desc()
209 a->max_bitrate = GRAB_BITS(buf, 2, 0, 8); in hdmi_update_short_audio_desc()
210 a->max_bitrate *= 8000; in hdmi_update_short_audio_desc()
229 a->profile = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc()
233 a->format = GRAB_BITS(buf, 2, 3, 5); in hdmi_update_short_audio_desc()
234 if (a->format == AUDIO_CODING_XTYPE_HE_REF_CT || in hdmi_update_short_audio_desc()
235 a->format >= AUDIO_CODING_XTYPE_FIRST_RESERVED) { in hdmi_update_short_audio_desc()
238 a->format); in hdmi_update_short_audio_desc()
239 a->format = 0; in hdmi_update_short_audio_desc()
241 a->format += AUDIO_CODING_TYPE_HE_AAC - in hdmi_update_short_audio_desc()
397 struct cea_sad *a) in hdmi_show_short_audio_desc() argument
402 if (!a->format) in hdmi_show_short_audio_desc()
405 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc()
407 if (a->format == AUDIO_CODING_TYPE_LPCM) in hdmi_show_short_audio_desc()
408 snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8); in hdmi_show_short_audio_desc()
409 else if (a->max_bitrate) in hdmi_show_short_audio_desc()
411 ", max bitrate = %d", a->max_bitrate); in hdmi_show_short_audio_desc()
417 cea_audio_coding_type_names[a->format], in hdmi_show_short_audio_desc()
418 a->channels, buf, buf2); in hdmi_show_short_audio_desc()
453 static void hdmi_print_sad_info(int i, struct cea_sad *a, in hdmi_print_sad_info() argument
459 i, a->format, cea_audio_coding_type_names[a->format]); in hdmi_print_sad_info()
460 snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); in hdmi_print_sad_info()
462 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info()
463 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info()
465 if (a->format == AUDIO_CODING_TYPE_LPCM) { in hdmi_print_sad_info()
466 snd_print_pcm_bits(a->sample_bits, buf, sizeof(buf)); in hdmi_print_sad_info()
468 i, a->sample_bits, buf); in hdmi_print_sad_info()
471 if (a->max_bitrate) in hdmi_print_sad_info()
473 i, a->max_bitrate); in hdmi_print_sad_info()
475 if (a->profile) in hdmi_print_sad_info()
476 snd_iprintf(buffer, "sad%d_profile\t\t%d\n", i, a->profile); in hdmi_print_sad_info()
610 struct cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info() local
611 rates |= a->rates; in snd_hdmi_eld_update_pcm_info()
612 if (a->channels > channels_max) in snd_hdmi_eld_update_pcm_info()
613 channels_max = a->channels; in snd_hdmi_eld_update_pcm_info()
614 if (a->format == AUDIO_CODING_TYPE_LPCM) { in snd_hdmi_eld_update_pcm_info()
615 if (a->sample_bits & AC_SUPPCM_BITS_20) { in snd_hdmi_eld_update_pcm_info()
620 if (a->sample_bits & AC_SUPPCM_BITS_24) { in snd_hdmi_eld_update_pcm_info()