]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: Extract SADs properly from multiple audio data blocks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Mar 2016 20:07:46 +0000 (22:07 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 13 Mar 2016 18:36:17 +0000 (19:36 +0100)
commitff0636c4b5ea50deb52cf05c14d741df89c1ccf3
treef9931ff41fd50d525c5762091b4bdab5ed30b78c
parent7c0635e4e8f7977e0d36801bc3ac4286c1afd6e7
drm/edid: Extract SADs properly from multiple audio data blocks

SADs may span multiple CEA audio data blocks in the EDID.

CEA-861-E says:
"The order of the Data Blocks is not constrained. It is also possible
to have more than one of a specific type of data block if necessary to
include all of the descriptors needed to describe the sink’s capabilities."

Each audio data block can carry up to 10 SADs, whereas the ELD SAD limit
is 15 according to HDA 1.0a spec. So we should support at least two data
blocks. And apparently some devices take a more liberal interpretation
and stuff only one SAD per data block even when they would fit into one.

So let's try to extract all the SADs we can fit into the ELD even when
they span multiple data blocks.

While at it, toss in a comment to explain the 13 byte monitor name
string limit which confused me at first.

Cc: Arturo Pérez <artur999555@gmail.com>
Tested-by: Arturo Pérez <artur999555@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94197
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1457554066-8739-1-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_edid.c