]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: tas2764: Enable main IRQs
authorHector Martin <marcan@marcan.st>
Sat, 5 Apr 2025 23:15:08 +0000 (09:15 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:07 +0000 (11:07 +0100)
[ Upstream commit dd50f0e38563f15819059c923bf142200453e003 ]

IRQ handling was added in commit dae191fb957f ("ASoC: tas2764: Add IRQ
handling") however that same commit masks all interrupts coming from
the chip. Unmask the "main" interrupts so that we can see and
deal with a number of errors including clock, voltage, and current.

Fixes: dae191fb957f ("ASoC: tas2764: Add IRQ handling")
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20250406-apple-codec-changes-v5-4-50a00ec850a3@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2764.c

index 10f0f07b90ff28c1123966a9d5832cba666e5821..8baf92abcf0004147feb5477c3dbea62b4c06c10 100644 (file)
@@ -542,7 +542,7 @@ static int tas2764_codec_probe(struct snd_soc_component *component)
        tas2764_reset(tas2764);
 
        if (tas2764->irq) {
-               ret = snd_soc_component_write(tas2764->component, TAS2764_INT_MASK0, 0xff);
+               ret = snd_soc_component_write(tas2764->component, TAS2764_INT_MASK0, 0x00);
                if (ret < 0)
                        return ret;