Richard Fitzgerald
2b62e66626
ASoC: cs-amp-lib: Add function to write calibration to UEFI
...
Add cs_amp_set_efi_calibration_data() to write an amp calibration
blob to UEFI calibration variable.
The UEFI variable will be updated or created as necessary.
- If a Vendor-specific variable exists it will be updated,
else if the Cirrus variable exists it will be update
else the Cirrus variable will be created.
Some collateral changes are required:
- cs_amp_convert_efi_status() now specifically handles
EFI_WRITE_PROTECTED error.
- cs_amp_get_cal_efi_buffer() can optionally return the name,
guid and attr of the variable it found.
- cs_amp_get_cal_efi_buffer() will update the 'size' field of
the returned data blob if it is zero. The BIOS could have
pre-allocated the UEFI variable as zero-filled
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251021105022.1013685-9-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-10-27 14:07:48 +00:00
..
2024-07-03 15:16:54 +02:00
2025-08-29 13:34:16 +02:00
2023-12-30 10:10:41 +01:00
2024-08-08 07:49:45 +02:00
2023-02-03 12:04:02 +00:00
2024-02-12 11:50:24 +01:00
2023-05-23 12:11:21 +02:00
2024-09-07 10:42:17 +02:00
2025-09-08 09:33:24 +02:00
2024-08-09 14:25:24 +02:00
2025-05-05 12:36:29 +02:00
2025-06-13 10:19:34 +02:00
2025-10-27 14:07:43 +00:00
2024-02-19 17:02:18 +00:00
2023-08-18 23:41:54 +01:00
2025-04-15 13:58:43 +01:00
2025-04-15 13:58:43 +01:00
2023-12-01 16:59:21 +00:00
2025-10-27 14:07:48 +00:00
2023-05-23 18:49:36 +01:00
2023-08-23 13:56:40 +01:00
2025-08-10 21:09:12 +01:00
2025-09-01 13:52:40 +02:00
2021-07-19 16:17:14 +02:00
2024-01-22 13:04:22 +01:00
2024-08-08 07:47:24 +02:00
2023-09-25 14:16:14 +02:00
2025-09-01 13:53:02 +02:00
2025-08-29 11:52:13 +02:00
2023-10-19 14:56:25 +02:00
2024-10-14 12:00:52 +02:00
2022-02-11 15:18:56 +01:00
2025-03-08 16:06:41 +00:00
2025-03-10 12:31:19 +05:30
2025-04-07 14:39:57 +01:00
2025-08-29 11:52:14 +02:00
2025-01-26 14:01:12 +02:00
2023-08-17 09:24:01 +02:00
2023-08-08 14:45:45 +02:00
2022-05-17 11:58:04 +01:00
2024-03-22 12:40:46 +01:00
2025-06-06 12:45:35 -07:00
2022-07-05 13:00:49 +01:00
2023-09-11 12:50:05 +01:00
2024-08-01 12:45:49 +02:00
2023-10-26 09:43:15 +02:00
2025-02-05 13:04:00 +01:00
2023-11-27 17:27:41 +01:00
2023-03-24 14:52:58 +01:00
2025-05-22 20:34:24 +02:00
2022-05-07 22:55:48 +02:00
2025-04-11 13:02:32 +02:00
2025-01-14 16:52:07 +01:00
2024-06-19 14:50:34 +01:00
2023-08-17 15:10:11 +01:00
2023-08-17 15:10:12 +01:00
2023-08-17 15:10:13 +01:00
2023-11-14 17:39:27 +00:00
2024-02-12 11:50:24 +01:00
2025-07-15 19:45:51 +01:00
2025-09-04 12:53:07 +01:00
2025-06-23 00:26:53 +01:00
2025-06-30 16:04:18 +01:00
2025-02-27 13:09:14 +00:00
2025-09-02 10:50:29 +01:00
2022-11-28 13:04:24 +00:00
2023-05-23 12:11:33 +02:00
2024-08-17 16:32:31 +02:00
2025-02-06 17:26:22 +00:00
2023-09-26 17:18:45 +02:00
2025-05-11 16:24:48 +02:00
2025-09-22 14:00:40 +02:00
2024-08-02 14:04:55 +01:00
2024-03-28 13:58:14 +00:00
2025-04-14 11:22:18 +01:00
2024-08-09 14:24:55 +02:00
2025-09-20 08:38:17 +02:00
2025-09-08 09:33:24 +02:00
2025-09-18 22:24:18 +01:00
2025-02-16 23:51:06 +00:00
2024-03-26 17:13:45 +00:00
2024-05-27 01:31:15 +01:00
2025-04-11 13:02:31 +02:00
2025-09-18 22:24:13 +01:00
2025-05-06 22:48:03 +09:00
2025-09-01 13:54:27 +02:00
2025-09-09 08:42:50 +02:00
2024-08-22 13:34:12 +01:00
2025-07-29 17:48:29 +02:00
2025-04-30 07:36:25 +02:00
2025-09-20 08:38:17 +02:00
2025-08-18 11:10:57 +02:00
2025-10-13 11:08:09 +01:00
2025-08-11 09:13:42 +02:00
2025-07-13 22:36:54 +01:00
2025-04-29 14:52:06 +02:00
2025-05-11 16:27:55 +02:00
2025-01-12 13:12:21 +01:00
2024-08-08 07:47:23 +02:00
2023-10-26 09:43:24 +02:00
2023-12-08 14:31:57 +00:00
2023-12-08 14:31:59 +00:00
2023-12-08 14:31:59 +00:00
2025-03-20 12:42:29 +00:00
2023-12-08 14:32:00 +00:00