]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs-amp-lib-test: Add test for getting cal data from HP EFI
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 9 Sep 2025 11:30:39 +0000 (12:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 9 Sep 2025 11:42:10 +0000 (12:42 +0100)
commite5b4ad2183f7ab18aaf7c73a120d17241ee58e97
tree6e07035f97a8718ae622a219c718a8538533df69
parentb78dd64208a83f66fc21951bd8758281a7d445a5
ASoC: cs-amp-lib-test: Add test for getting cal data from HP EFI

Add a test case that cs_amp_get_efi_calibration_data() returns data
when it is in the HP-specific EFI variable.

This uses redirected implementation of cs_amp_get_efi_variable() that
only returns data if the passes name and GUID match the HP EFI variable.
A simple test case installs this function hook and then checks that
calibration data is returned.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Message-ID: <20250909113039.922065-7-rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs-amp-lib-test.c