ASoC: cs42l43: Add shared IRQ flag for shutters
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 15 Sep 2023 14:43:00 +0000 (15:43 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 15 Sep 2023 16:14:20 +0000 (17:14 +0100)
commitc923e7759a29cf67aa4dda77b816263771380f86
tree1e54940737ec6afad1c165018aecd09f2a737642
parentb19a5733de255cabba5feecabf6e900638b582d1
ASoC: cs42l43: Add shared IRQ flag for shutters

The microphone and speaker shutters on cs42l43 can be configured to
trigger from the same GPIO, in this case the current code returns an
error as we attempt to request two IRQ handlers for the same IRQ. Fix
this by always requesting the shutter IRQs with the IRQF_SHARED flag.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230915144300.120100-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43.c