]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: tas2764: Apply Apple quirks
authorMartin Povišer <povik+lin@cutebit.org>
Sat, 5 Apr 2025 23:15:10 +0000 (09:15 +1000)
committerMark Brown <broonie@kernel.org>
Sun, 13 Apr 2025 19:23:33 +0000 (20:23 +0100)
commitf33b01e0947d81c514bc8ff31ad28cae7ff6d91f
treee16c192bdd29c48dff98e62c377f46293c6188da
parentf0aff451f399d09aaf2a23c4e2ef2077b9857ca5
ASoC: tas2764: Apply Apple quirks

Apple's SN012776 driver has some peculiar aspects to its behavior that
are suspected to work around issues in the codec part. Add a module
parameter for enabling individual quirks that should be imitated after
the Apple driver.

Setting some of these by default seems to be required. For example,
setting 0xf fixes an issue with transient overcurrent errors which
can crash the chip until the next system reboot. To be safe, let's
enable all of them by default.

Reviewed-by: Neal Gompa <neal@gompa.dev>
Co-developed-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Co-developed-by: James Calligeros <jcalligeros99@gmail.com>
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20250406-apple-codec-changes-v5-6-50a00ec850a3@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2764-quirks.h [new file with mode: 0644]
sound/soc/codecs/tas2764.c