ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()
authorHans de Goede <hdegoede@redhat.com>
Wed, 20 Jan 2021 21:49:56 +0000 (22:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 11:34:13 +0000 (12:34 +0100)
commite8ad7fac69389ec630306a5b523ce8a528b3cba4
tree736cca18ffdb73c2aaf7c696b88d853e8778dd69
parent1fdde02e5f34925944fcd00b7a88ce7f7ff4d3a1
ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()

[ Upstream commit 8ade6d8b02b1ead741bd4f6c42921035caab6560 ]

Some Bay Trail systems:
1. Use a non CR version of the Bay Trail SoC
2. Contain at least 6 interrupt resources so that the
   platform_get_resource(pdev, IORESOURCE_IRQ, 5) check to workaround
   non CR systems which list their IPC IRQ at index 0 despite being
   non CR does not work
3. Despite 1. and 2. still have their IPC IRQ at index 0 rather then 5

Add a DMI quirk table to check for the few known models with this issue,
so that the right IPC IRQ index is used on these systems.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210120214957.140232-5-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/common/soc-intel-quirks.h