ALSA: hda: cs35l41: Ignore errors when configuring IRQs
authorStefan Binding <sbinding@opensource.cirrus.com>
Mon, 29 Apr 2024 15:48:52 +0000 (16:48 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2024 16:14:17 +0000 (18:14 +0200)
commit762eba7096e3d4d81faefffcc57074a82b53613d
tree1e674041e54c8a175cefc034f012f6a73a6d3402
parent6b844f0626fca6acec83521081aaa82cdf9add6b
ALSA: hda: cs35l41: Ignore errors when configuring IRQs

IRQs used for CS35L41 HDA are used to detect and attempt to recover
from errors. Without these interrupts, the driver should behave as
normal.

For laptops which contain a bad configuration for the interrupt in the
BIOS, the current behaviour of failing when trying to configure the
interrupt means the probe fails, and audio is broken.

It is better for the user experience if the driver instead warns that
no interrupt is configured rather than simply failing.
The drawback is that if an error occurs without the interrupt, we
firstly would not be able to trace the issue, and secondly would not
be able to attempt to recover from the issue, but this is better than
failing immediately.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240429154853.9393-2-sbinding@opensource.cirrus.com
sound/pci/hda/cs35l41_hda.c