drm/edid: add a helper function to extract the speaker allocation data block (v3)

This adds a helper function to extract the speaker allocation
data block from the EDID.  This data block describes what speakers
are present on the display device.

v2: update per Ville Syrjälä's comments
v3: fix copy/paste typo in memory allocation

Signed-off-by: Alex Deucher <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Tested-by: Rafał Miłecki <[email protected]>
This commit is contained in:
Alex Deucher 2013-07-25 15:55:32 -04:00
commit d105f4768a
2 changed files with 53 additions and 0 deletions

View file

@ -259,6 +259,7 @@ struct hdmi_avi_infoframe;
void drm_edid_to_eld(struct drm_connector *connector, struct edid *edid);
int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads);
int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb);
int drm_av_sync_delay(struct drm_connector *connector,
struct drm_display_mode *mode);
struct drm_connector *drm_select_eld(struct drm_encoder *encoder,