mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00

It works correctly with such file: $ cat /etc/modprobe.d/sof-essx8336.conf options snd_soc_sof_es8336 quirk=0x40 Otherwise it thinks that headsphones and microphone are connected.
95 lines
3.2 KiB
Diff
95 lines
3.2 KiB
Diff
From fb8811fd75612859fcd59f750e5aff64ec79e3fa Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Wed, 7 Sep 2022 15:13:53 +0300
|
|
Subject: [PATCH 424/425] ASoC: Intel: sof_es8336: Add more quirks for Russian
|
|
hardware
|
|
|
|
Ported from:
|
|
https://git.altlinux.org/gears/k/kernel-image-std-def.git?p=kernel-image-std-def.git;a=blob_plain;f=sound/soc/intel/boards/sof_es8336.c;h=d2a8309c3d520d97fb3e9a1747fa374dd7786beb;hb=882bb4ce852b88412e92bf6d508b19acdcee29e3
|
|
|
|
Except:
|
|
1) hardware added by commit https://git.altlinux.org/gears/k/kernel-image-std-def.git?p=kernel-image-std-def.git;a=commitdiff;h=5de44dd5ed0c6fa97f7142bad3157d6a897686b9
|
|
(see: https://github.com/thesofproject/linux/issues/3412)
|
|
because that is a complex patch and I currently do not have such hardware for tests
|
|
2) Aquarius which is added by another patch in a bit different form (board name instead of notebook model).
|
|
|
|
Original authors:
|
|
Nikolai Kostrigin <nickel@altlinux.org>
|
|
Vasiliy Kovalev <kovalev@altlinux.org>
|
|
---
|
|
sound/soc/intel/boards/sof_es8336.c | 59 +++++++++++++++++++++++++++++
|
|
1 file changed, 59 insertions(+)
|
|
|
|
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
|
|
index fd43fd773..b7903e9b5 100644
|
|
--- a/sound/soc/intel/boards/sof_es8336.c
|
|
+++ b/sound/soc/intel/boards/sof_es8336.c
|
|
@@ -311,6 +311,65 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
|
|
},
|
|
.driver_data = (void *)(SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
|
|
},
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .ident = "pa-enable ACPI deviant",
|
|
+ .matches = {
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "3Logic Group"),
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "Graviton N15i"),
|
|
+ },
|
|
+ .driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
|
|
+ SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
|
|
+ },
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .ident = "pa-enable ACPI deviant",
|
|
+ .matches = {
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "3Logic Group"),
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "Lime 15.6"),
|
|
+ },
|
|
+ .driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
|
|
+ SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
|
|
+ },
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .ident = "pa-enable ACPI deviant",
|
|
+ .matches = {
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "ICL"),
|
|
+ DMI_MATCH(DMI_BOARD_NAME, "Si16"),
|
|
+ },
|
|
+ .driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
|
|
+ SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
|
|
+ },
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .ident = "pa-enable ACPI deviant",
|
|
+ .matches = {
|
|
+ /* market name: HIPER TeachBook HTHLP-04R */
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "mtech"),
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "MTL1578"),
|
|
+ },
|
|
+ .driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
|
|
+ SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
|
|
+ },
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .matches = {
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "CHUWI Innovation And Technology"),
|
|
+ DMI_MATCH(DMI_BOARD_NAME, "Hi10 X"),
|
|
+ },
|
|
+ .driver_data = (void *)SOF_ES8336_SSP_CODEC(2)
|
|
+ },
|
|
+ {
|
|
+ .callback = sof_es8336_quirk_cb,
|
|
+ .matches = {
|
|
+ /* market name: Kraftway ACCORD S15T */
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "Kraftway"),
|
|
+ DMI_MATCH(DMI_BOARD_NAME, "S15T"),
|
|
+ },
|
|
+ .driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
|
|
+ SOF_ES8336_JD_INVERTED)
|
|
+ },
|
|
{
|
|
.callback = sof_es8336_quirk_cb,
|
|
.matches = {
|
|
--
|
|
2.35.2
|
|
|