Lines Matching refs:a
248 struct snd_cea_sad *a, in hdmi_update_short_audio_desc() argument
255 a->rates = 0; in hdmi_update_short_audio_desc()
258 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc()
260 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc()
261 a->channels++; in hdmi_update_short_audio_desc()
263 a->sample_bits = 0; in hdmi_update_short_audio_desc()
264 a->max_bitrate = 0; in hdmi_update_short_audio_desc()
266 a->format = GRAB_BITS(buf, 0, 3, 4); in hdmi_update_short_audio_desc()
267 switch (a->format) { in hdmi_update_short_audio_desc()
276 a->sample_bits |= cea_sample_sizes[i + 1]; in hdmi_update_short_audio_desc()
286 a->max_bitrate = GRAB_BITS(buf, 2, 0, 8); in hdmi_update_short_audio_desc()
287 a->max_bitrate *= 8000; in hdmi_update_short_audio_desc()
306 a->profile = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc()
310 a->format = GRAB_BITS(buf, 2, 3, 5); in hdmi_update_short_audio_desc()
311 if (a->format == AUDIO_CODING_XTYPE_HE_REF_CT || in hdmi_update_short_audio_desc()
312 a->format >= AUDIO_CODING_XTYPE_FIRST_RESERVED) { in hdmi_update_short_audio_desc()
315 a->format); in hdmi_update_short_audio_desc()
316 a->format = 0; in hdmi_update_short_audio_desc()
318 a->format += AUDIO_CODING_TYPE_HE_AAC - in hdmi_update_short_audio_desc()
425 struct snd_cea_sad *a) in hdmi_show_short_audio_desc() argument
430 if (!a->format) in hdmi_show_short_audio_desc()
433 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc()
435 if (a->format == AUDIO_CODING_TYPE_LPCM) in hdmi_show_short_audio_desc()
436 eld_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8); in hdmi_show_short_audio_desc()
437 else if (a->max_bitrate) in hdmi_show_short_audio_desc()
439 ", max bitrate = %d", a->max_bitrate); in hdmi_show_short_audio_desc()
445 cea_audio_coding_type_names[a->format], in hdmi_show_short_audio_desc()
446 a->channels, buf, buf2); in hdmi_show_short_audio_desc()
482 static void hdmi_print_sad_info(int i, struct snd_cea_sad *a, in hdmi_print_sad_info() argument
488 i, a->format, cea_audio_coding_type_names[a->format]); in hdmi_print_sad_info()
489 snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); in hdmi_print_sad_info()
491 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info()
492 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info()
494 if (a->format == AUDIO_CODING_TYPE_LPCM) { in hdmi_print_sad_info()
495 eld_print_pcm_bits(a->sample_bits, buf, sizeof(buf)); in hdmi_print_sad_info()
497 i, a->sample_bits, buf); in hdmi_print_sad_info()
500 if (a->max_bitrate) in hdmi_print_sad_info()
502 i, a->max_bitrate); in hdmi_print_sad_info()
504 if (a->profile) in hdmi_print_sad_info()
505 snd_iprintf(buffer, "sad%d_profile\t\t%d\n", i, a->profile); in hdmi_print_sad_info()