diff mbox series

ASoC: rt5645: Add platform-data for Medion E1239T

Message ID 20200402185257.3355-1-hdegoede@redhat.com (mailing list archive)
State Accepted
Commit 4146575eb0f0cb41e6d909234b654064d1bed183
Headers show
Series ASoC: rt5645: Add platform-data for Medion E1239T | expand

Commit Message

Hans de Goede April 2, 2020, 6:52 p.m. UTC
The Medion E1239T uses the default jack-detect mode 3, but instead of
using an analog microphone it is using a DMIC on dmic-data-pin 1,
like other models following Intel's Brasswell's reference design.

This commit adds a DMI quirk pointing to the intel_braswell_platform_data
for this model.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 sound/soc/codecs/rt5645.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Pierre-Louis Bossart April 6, 2020, 3:30 p.m. UTC | #1
On 4/2/20 1:52 PM, Hans de Goede wrote:
> The Medion E1239T uses the default jack-detect mode 3, but instead of
> using an analog microphone it is using a DMIC on dmic-data-pin 1,
> like other models following Intel's Brasswell's reference design.
> 
> This commit adds a DMI quirk pointing to the intel_braswell_platform_data
> for this model.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> ---
>   sound/soc/codecs/rt5645.c | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
> index 92d67010aeed..6ba1849a77b0 100644
> --- a/sound/soc/codecs/rt5645.c
> +++ b/sound/soc/codecs/rt5645.c
> @@ -3758,6 +3758,14 @@ static const struct dmi_system_id dmi_platform_data[] = {
>   		},
>   		.driver_data = (void *)&kahlee_platform_data,
>   	},
> +	{
> +		.ident = "Medion E1239T",
> +		.matches = {
> +			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "MEDION"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "E1239T MD60568"),
> +		},
> +		.driver_data = (void *)&intel_braswell_platform_data,
> +	},
>   	{ }
>   };
>   
>
diff mbox series

Patch

diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 92d67010aeed..6ba1849a77b0 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3758,6 +3758,14 @@  static const struct dmi_system_id dmi_platform_data[] = {
 		},
 		.driver_data = (void *)&kahlee_platform_data,
 	},
+	{
+		.ident = "Medion E1239T",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "MEDION"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "E1239T MD60568"),
+		},
+		.driver_data = (void *)&intel_braswell_platform_data,
+	},
 	{ }
 };