OSDN Git Service

ASoC: Intel: bytcr_rt5640: Add quirk for the Mele PCG03 Mini PC
authorHans de Goede <hdegoede@redhat.com>
Sat, 9 Jan 2021 21:01:19 +0000 (22:01 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jan 2021 14:11:57 +0000 (14:11 +0000)
commitdf33032146baefb29d7e61193738f39e454917e3
tree71b29c63478ae0837bfaf984455a07f32d5966c3
parent46466ab68e752d054b4b7aece1bfadc9f9bbf272
ASoC: Intel: bytcr_rt5640: Add quirk for the Mele PCG03 Mini PC

Add a quirk for the Mele PCG03 Mini PC, being a Mini PC this device
has no speakers and no internal microphone.

To make matters worse the speaker output pins are shorted (to gnd or
to each other?) and SPKVDD is provided. So trying to output sound on the
speakers leads to shorting SPKVDD, this leads to a power dip after
which the codec is an unknown state. Sometimes it drops of the i2c
bus, sometimes it does still respond to i2c transfers, but is otherwise
not functional. TL;DR: trying to use the speaker outputs on this model
is BAD.

Besides not having speakers / an internal mic, this is a Bay Trail CR
device without a CHAN package in ACPI, so we default to SSP0-AIF2 as
codec connection. But the device is actually using SSP0-AIF1, so we
need to quirk that too.

Cc: Rasmus Porsager <rasmus@beat.dk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210109210119.159032-4-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c