]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit481643d1372902314c7354f2805321c1b8e2c7fa
tree1cddd4c73fbca4569d43027e1fb28436d61d2ad0
parentc40156cf39f46c1466f81ff0a4302e0d130477b2
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