Searched refs:sad (Results 1 – 4 of 4) sorted by relevance
/sound/core/ |
D | pcm_drm_eld.c | 20 static unsigned int sad_max_channels(const u8 *sad) in sad_max_channels() argument 22 return 1 + (sad[0] & 7); in sad_max_channels() 31 const u8 *sad, *eld = rule->private; in eld_limit_rates() local 33 sad = drm_eld_sad(eld); in eld_limit_rates() 34 if (sad) { in eld_limit_rates() 37 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) { in eld_limit_rates() 38 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() 45 rate_mask |= sad[1]; in eld_limit_rates() 60 const u8 *sad, *eld = rule->private; in eld_limit_channels() local 62 sad = drm_eld_sad(eld); in eld_limit_channels() [all …]
|
/sound/pci/hda/ |
D | hda_eld.c | 270 hdmi_update_short_audio_desc(codec, e->sad + i, in snd_hdmi_parse_eld() 411 hdmi_show_short_audio_desc(codec, e->sad + i); in snd_hdmi_show_eld() 487 hdmi_print_sad_info(i, e->sad + i, buffer); in snd_hdmi_print_eld_info() 536 e->sad[n].format = val; in snd_hdmi_write_eld_info() 538 e->sad[n].channels = val; in snd_hdmi_write_eld_info() 540 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 542 e->sad[n].sample_bits = val; in snd_hdmi_write_eld_info() 544 e->sad[n].max_bitrate = val; in snd_hdmi_write_eld_info() 546 e->sad[n].profile = val; in snd_hdmi_write_eld_info() 573 struct cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info()
|
D | hda_local.h | 691 struct cea_sad sad[ELD_MAX_SAD]; member
|
/sound/soc/codecs/ |
D | hdac_hdmi.c | 295 static unsigned int sad_format(const u8 *sad) in sad_format() argument 297 return ((sad[0] >> 0x3) & 0x1f); in sad_format() 300 static unsigned int sad_sample_bits_lpcm(const u8 *sad) in sad_sample_bits_lpcm() argument 302 return (sad[2] & 7); in sad_sample_bits_lpcm() 310 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats() local 312 sad = drm_eld_sad(eld_buf); in hdac_hdmi_eld_limit_formats() 313 if (!sad) in hdac_hdmi_eld_limit_formats() 316 for (i = drm_eld_sad_count(eld_buf); i > 0; i--, sad += 3) { in hdac_hdmi_eld_limit_formats() 317 if (sad_format(sad) == 1) { /* AUDIO_CODING_TYPE_LPCM */ in hdac_hdmi_eld_limit_formats() 323 if (sad_sample_bits_lpcm(sad) & 0x6) in hdac_hdmi_eld_limit_formats()
|