85ca6b17e2
The Lenovo Miix 2 10 has a keyboard dock with extra speakers in the dock.
Rather then the ACL5672's GPIO1 pin being used as IRQ to the CPU, it is
actually used to enable the amplifier for these speakers
(the IRQ to the CPU comes directly from the jack-detect switch).
Add a quirk for having an ext speaker-amplifier enable pin on GPIO1
and replace the Lenovo Miix 2 10's dmi_system_id table entry's wrong
GPIO_DEV quirk (which needs to be renamed to GPIO1_IS_IRQ) with the
new RT5670_GPIO1_IS_EXT_SPK_EN quirk, so that we enable the external
speaker-amplifier as necessary.
Also update the ident field for the dmi_system_id table entry, the
Miix models are not Thinkpads.
Fixes: 67e03ff3f3
("ASoC: codecs: rt5670: add Thinkpad Tablet 10 quirk")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1786723
Link: https://lore.kernel.org/r/20200628155231.71089-4-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
27 lines
533 B
C
27 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/sound/rt5670.h -- Platform data for RT5670
|
|
*
|
|
* Copyright 2014 Realtek Microelectronics
|
|
*/
|
|
|
|
#ifndef __LINUX_SND_RT5670_H
|
|
#define __LINUX_SND_RT5670_H
|
|
|
|
struct rt5670_platform_data {
|
|
int jd_mode;
|
|
bool in2_diff;
|
|
bool dev_gpio;
|
|
bool gpio1_is_ext_spk_en;
|
|
|
|
bool dmic_en;
|
|
unsigned int dmic1_data_pin;
|
|
/* 0 = GPIO6; 1 = IN2P; 3 = GPIO7*/
|
|
unsigned int dmic2_data_pin;
|
|
/* 0 = GPIO8; 1 = IN3N; */
|
|
unsigned int dmic3_data_pin;
|
|
/* 0 = GPIO9; 1 = GPIO10; 2 = GPIO5*/
|
|
};
|
|
|
|
#endif
|