summaryrefslogtreecommitdiff
path: root/Dockerfile.build-debian-mips
diff options
context:
space:
mode:
authorSimon Ser <simon.ser@intel.com>2019-09-20 13:47:30 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-11-26 13:53:14 +0200
commitbf56a97be5f6ec963dd1ea78c5e122020801944f (patch)
tree33fb36cb5e973f1a7207652746cf64f58837b017 /Dockerfile.build-debian-mips
parent19c851a3dd2d59ed010dcbb272bc2788e4768d52 (diff)
lib/igt_alsa: Check that ELD comes from IGT
Prior to this commit, audio tests play sound on all HDMI/DisplayPort PCM devices (by filtering devices with the "HDMI" prefix). This had several issues. First, the PCM device → connector mapping via the ELD wasn't checked. Second, it makes debugging more complicated: if ALSA doesn't detect the screen, we just get a Chamelium failure (because it doesn't receive any audio stream). Third, it would play sounds on real screens too (not only Chamelium) and this could theorically damage bad hardware (though this is just speculation). To mitigate this issue, check the monitor name of PCM devices we open and only keep them if it's an IGT EDID (ie. connected to the Chamelium board). Note that while this is a good improvement, it isn't a complete fix: the ELD is only exposed by the HDA Intel driver. This means non-IGT PCM devices won't be filtered out on non-Intel hardware. There is no driver-agnostic way to get the screen name, I'm afraid. Cc: Martin Peres <martin.peres@linux.intel.com> Signed-off-by: Simon Ser <simon.ser@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
Diffstat (limited to 'Dockerfile.build-debian-mips')
0 files changed, 0 insertions, 0 deletions