Commit 2dc6e1a4 authored by Hans de Goede's avatar Hans de Goede Committed by Mark Brown

ASoC: rt5645: set in2_diff flag for GPD win and pocket devices

The GPD pocket has a differential signal microphone and needs in2_diff
to be set to avoid getting a very noisy signal.

Since the GPD pocket and win use the same DMI strings, they share their
platform data-definition, so enabling in2_diff on the pocket also sets
it on the GPD win. The GPD win has a normal microphone, but setting
in2_diff there does not negatively impact the sound from the microphone.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent aa9c387c
...@@ -3628,6 +3628,8 @@ static const struct rt5645_platform_data gpd_win_platform_data = { ...@@ -3628,6 +3628,8 @@ static const struct rt5645_platform_data gpd_win_platform_data = {
.jd_mode = 3, .jd_mode = 3,
.inv_jd1_1 = true, .inv_jd1_1 = true,
.long_name = "gpd-win-pocket-rt5645", .long_name = "gpd-win-pocket-rt5645",
/* The GPD pocket has a diff. mic, for the win this does not matter. */
.in2_diff = true,
}; };
static const struct dmi_system_id dmi_platform_gpd_win[] = { static const struct dmi_system_id dmi_platform_gpd_win[] = {
......
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