]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: es8316: Handle optional IRQ assignment
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 28 Mar 2023 09:49:01 +0000 (12:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:46 +0000 (11:35 +0200)
commit822dc7c94176533af90535f07b0fd09979fdc1ca
treefb46924f1f6154514f778c4bede8c454f837f572
parentfd54be76213f2380ebbe3c43787d6b28aeefcc90
ASoC: es8316: Handle optional IRQ assignment

[ Upstream commit 39db65a0a17b54915b269d3685f253a4731f344c ]

The driver is able to work fine without relying on a mandatory interrupt
being assigned to the I2C device. This is only needed when making use of
the jack-detect support.

However, the following warning message is always emitted when there is
no such interrupt available:

  es8316 0-0011: Failed to get IRQ 0: -22

Do not attempt to request an IRQ if it is not available/valid. This also
ensures the rather misleading message is not displayed anymore.

Also note the IRQ validation relies on commit c92e55ca55899135 ("i2c /
ACPI: Use 0 to indicate that device does not have interrupt assigned").

Fixes: b4f2100cf51e ("ASoC: es8316: Add jack-detect support")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230328094901.50763-1-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/es8316.c