• Home
  • Raw
  • Download

Lines Matching refs:a

169 static void hdmi_update_short_audio_desc(struct cea_sad *a,  in hdmi_update_short_audio_desc()  argument
176 a->rates = 0; in hdmi_update_short_audio_desc()
179 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc()
181 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc()
182 a->channels++; in hdmi_update_short_audio_desc()
184 a->sample_bits = 0; in hdmi_update_short_audio_desc()
185 a->max_bitrate = 0; in hdmi_update_short_audio_desc()
187 a->format = GRAB_BITS(buf, 0, 3, 4); in hdmi_update_short_audio_desc()
188 switch (a->format) { in hdmi_update_short_audio_desc()
198 a->sample_bits |= cea_sample_sizes[i + 1]; in hdmi_update_short_audio_desc()
208 a->max_bitrate = GRAB_BITS(buf, 2, 0, 8); in hdmi_update_short_audio_desc()
209 a->max_bitrate *= 8000; in hdmi_update_short_audio_desc()
228 a->profile = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc()
232 a->format = GRAB_BITS(buf, 2, 3, 5); in hdmi_update_short_audio_desc()
233 if (a->format == AUDIO_CODING_XTYPE_HE_REF_CT || in hdmi_update_short_audio_desc()
234 a->format >= AUDIO_CODING_XTYPE_FIRST_RESERVED) { in hdmi_update_short_audio_desc()
237 a->format); in hdmi_update_short_audio_desc()
238 a->format = 0; in hdmi_update_short_audio_desc()
240 a->format += AUDIO_CODING_TYPE_HE_AAC - in hdmi_update_short_audio_desc()
397 static void hdmi_show_short_audio_desc(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, in hdmi_show_short_audio_desc()
455 static void hdmi_print_sad_info(int i, struct cea_sad *a, in hdmi_print_sad_info() argument
461 i, a->format, cea_audio_coding_type_names[a->format]); in hdmi_print_sad_info()
462 snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); in hdmi_print_sad_info()
464 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info()
465 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info()
467 if (a->format == AUDIO_CODING_TYPE_LPCM) { in hdmi_print_sad_info()
468 snd_print_pcm_bits(a->sample_bits, buf, sizeof(buf)); in hdmi_print_sad_info()
470 i, a->sample_bits, buf); in hdmi_print_sad_info()
473 if (a->max_bitrate) in hdmi_print_sad_info()
475 i, a->max_bitrate); in hdmi_print_sad_info()
477 if (a->profile) in hdmi_print_sad_info()
478 snd_iprintf(buffer, "sad%d_profile\t\t%d\n", i, a->profile); in hdmi_print_sad_info()
650 struct cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info() local
651 rates |= a->rates; in snd_hdmi_eld_update_pcm_info()
652 if (a->channels > channels_max) in snd_hdmi_eld_update_pcm_info()
653 channels_max = a->channels; in snd_hdmi_eld_update_pcm_info()
654 if (a->format == AUDIO_CODING_TYPE_LPCM) { in snd_hdmi_eld_update_pcm_info()
655 if (a->sample_bits & AC_SUPPCM_BITS_20) { in snd_hdmi_eld_update_pcm_info()
660 if (a->sample_bits & AC_SUPPCM_BITS_24) { in snd_hdmi_eld_update_pcm_info()