Commit 123b9510 authored by Hui Wang's avatar Hui Wang Committed by Greg Kroah-Hartman

ASoC: rt5645: Headphone Jack sense inverts on the LattePanda board

[ Upstream commit 406dcbc5 ]

The LattePanda board has a sound card chtrt5645, when there is nothing
plugged in the headphone jack, the system thinks the headphone is
plugged in, while we plug a headphone in the jack, the system thinks
the headphone is unplugged.

If adding quirk=0x21 in the module parameter, the headphone jack can
work well. So let us fix it via platform_data.

https://bugs.launchpad.net/bugs/182459Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ec277112
...@@ -3662,6 +3662,11 @@ static const struct rt5645_platform_data jd_mode3_platform_data = { ...@@ -3662,6 +3662,11 @@ static const struct rt5645_platform_data jd_mode3_platform_data = {
.jd_mode = 3, .jd_mode = 3,
}; };
static const struct rt5645_platform_data lattepanda_board_platform_data = {
.jd_mode = 2,
.inv_jd1_1 = true
};
static const struct dmi_system_id dmi_platform_data[] = { static const struct dmi_system_id dmi_platform_data[] = {
{ {
.ident = "Chrome Buddy", .ident = "Chrome Buddy",
...@@ -3759,6 +3764,15 @@ static const struct dmi_system_id dmi_platform_data[] = { ...@@ -3759,6 +3764,15 @@ static const struct dmi_system_id dmi_platform_data[] = {
}, },
.driver_data = (void *)&intel_braswell_platform_data, .driver_data = (void *)&intel_braswell_platform_data,
}, },
{
.ident = "LattePanda board",
.matches = {
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
DMI_EXACT_MATCH(DMI_BOARD_VERSION, "Default string"),
},
.driver_data = (void *)&lattepanda_board_platform_data,
},
{ } { }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment