summaryrefslogtreecommitdiff
path: root/lib/igt_eld.h
AgeCommit message (Collapse)Author
2019-06-12lib/igt_eld: add eld_get_igtSimon Ser
The existing eld_has_igt function doesn't allow the caller to retrieve the parsed ELD and check audio parameters. Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2019-06-04lib/igt_eld: parse Short Audio DescriptorsSimon Ser
Each valid ELD entry can contain zero, one or more Short Audio Descriptor blocks. These are exposed in sadN_* fields (N being the index of the SAD). We need to parse them to be able to check that ALSA has properly processed them. Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2019-06-04lib/igt_eld: consolidate ELD parsingSimon Ser
Make the ELD enumeration more robust, and implement proper parsing for ELD fields. This will become useful when other ELD fields (formats, sample rates, sample sizes) will be parsed and checked. Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2019-06-04lib/igt_eld: introduce an ELD librarySimon Ser
There are two reasons why I want to introduce this library: - I want to use it from the Chamelium tests for DisplayPort - I want to expand it to also check that audio parameters parsed by ALSA are correct (formats, sampling rates, sample sizes and so on) Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>