ASoC: rt5640: Allow snd_soc_component_set_jack() to override the codec IRQ
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Jan 2022 11:01:25 +0000 (12:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jan 2022 13:55:49 +0000 (13:55 +0000)
commitb35a9ab4904973a68b4473c2985b8ac0b6d57089
tree1cddd4c73fbca4569d43027e1fb28436d61d2ad0
parenta3b1aaf7aef9fa945810de3fd7c15b2e93ecdbfd
ASoC: rt5640: Allow snd_soc_component_set_jack() to override the codec IRQ

On some boards where the firmware/fwnode information is in essence
read-only (x86 + ACPI boards) the i2c_client for the codec may contain
the wrong IRQ or no IRQ at all.

Since we only request the IRQ once snd_soc_component_set_jack() gets
called, allow machine drivers to override the IRQ with the proper one
through the data parameter to snd_soc_component_set_jack().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220106110128.66049-4-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5640.h