]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: avs: Check maximum valid CPUID leaf
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 27 Mar 2026 02:15:15 +0000 (03:15 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 27 Mar 2026 23:27:11 +0000 (00:27 +0100)
commit93a1f0e61329f538cfc7122d7fa0e7a1803e326d
tree76024df6b0cec8eef9251ad1239ee89d9e16ea53
parent584d752b8a1f0ee3a7d5a831e55623c10e7ca0ee
ASoC: Intel: avs: Check maximum valid CPUID leaf

The Intel AVS driver queries CPUID(0x15) before checking if the CPUID leaf
is available.  Check the maximum-valid CPU standard leaf beforehand.

Use the CPUID_LEAF_TSC macro instead of the custom local one for the
CPUID(0x15) leaf number.

Fixes: cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platforms")
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260327021645.555257-2-darwi@linutronix.de
sound/soc/intel/avs/tgl.c