---
name: "drm_edid_to_sad"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_edid_to_sad"
---

# drm\_edid\_to\_sad(9)

extracts SADs from EDID

## NAME

drm\_edid\_to\_sad - extracts SADs from EDID

## SYNOPSIS

**int drm\_edid\_to\_sad(struct edid \*** *edid***, struct cea\_sad \*\*** *sads***);**

## ARGUMENTS

*edid*

EDID to parse

*sads*

pointer that will be set to the extracted SADs

## DESCRIPTION

Looks for CEA EDID block and extracts SADs (Short Audio Descriptors) from it.

## NOTE

The returned pointer needs to be freed using **kfree**.

## RETURN

The number of found SADs or negative number on error.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
