mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
![]() |
From 4a8534c45283718a4fcd01c031a06b49a2f47240 Mon Sep 17 00:00:00 2001
|
||
|
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
||
|
Date: Tue, 8 Mar 2022 13:26:05 -0600
|
||
|
Subject: [PATCH 408/424] ASoC: Intel: sof_es8336: log all quirks
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
We only logged the SSP quirk, make sure the GPIO and DMIC quirks are
|
||
|
exposed.
|
||
|
|
||
|
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
||
|
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
||
|
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
|
||
|
Link: https://lore.kernel.org/r/20220308192610.392950-16-pierre-louis.bossart@linux.intel.com
|
||
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
||
|
---
|
||
|
sound/soc/intel/boards/sof_es8336.c | 7 ++++++-
|
||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
|
||
|
index 1a8680470..e2daa5790 100644
|
||
|
--- a/sound/soc/intel/boards/sof_es8336.c
|
||
|
+++ b/sound/soc/intel/boards/sof_es8336.c
|
||
|
@@ -63,7 +63,12 @@ static const struct acpi_gpio_mapping *gpio_mapping = acpi_es8336_gpios;
|
||
|
|
||
|
static void log_quirks(struct device *dev)
|
||
|
{
|
||
|
- dev_info(dev, "quirk SSP%ld", SOF_ES8336_SSP_CODEC(quirk));
|
||
|
+ dev_info(dev, "quirk mask %#lx\n", quirk);
|
||
|
+ dev_info(dev, "quirk SSP%ld\n", SOF_ES8336_SSP_CODEC(quirk));
|
||
|
+ if (quirk & SOF_ES8336_ENABLE_DMIC)
|
||
|
+ dev_info(dev, "quirk DMIC enabled\n");
|
||
|
+ if (quirk & SOF_ES8336_TGL_GPIO_QUIRK)
|
||
|
+ dev_info(dev, "quirk TGL GPIO enabled\n");
|
||
|
}
|
||
|
|
||
|
static int sof_es8316_speaker_power_event(struct snd_soc_dapm_widget *w,
|
||
|
--
|
||
|
2.35.2
|
||
|
|