|
Takashi Iwai |
34daf2 |
From cd8499d5c03ba260e3191e90236d0e5f6b147563 Mon Sep 17 00:00:00 2001
|
|
Takashi Iwai |
34daf2 |
From: David Ward <david.ward@gatech.edu>
|
|
Takashi Iwai |
34daf2 |
Date: Sun, 18 Apr 2021 09:46:57 -0400
|
|
Takashi Iwai |
34daf2 |
Subject: [PATCH] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable
|
|
Takashi Iwai |
34daf2 |
Git-commit: cd8499d5c03ba260e3191e90236d0e5f6b147563
|
|
Takashi Iwai |
34daf2 |
Patch-mainline: v5.13-rc1
|
|
Takashi Iwai |
34daf2 |
References: git-fixes
|
|
Takashi Iwai |
34daf2 |
|
|
Takashi Iwai |
34daf2 |
The GPIO configuration cannot be applied if the registers are inaccessible.
|
|
Takashi Iwai |
34daf2 |
This prevented the headset mic from working on the Dell XPS 13 9343.
|
|
Takashi Iwai |
34daf2 |
|
|
Takashi Iwai |
34daf2 |
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=114171
|
|
Takashi Iwai |
34daf2 |
Signed-off-by: David Ward <david.ward@gatech.edu>
|
|
Takashi Iwai |
34daf2 |
Link: https://lore.kernel.org/r/20210418134658.4333-5-david.ward@gatech.edu
|
|
Takashi Iwai |
34daf2 |
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
|
Takashi Iwai |
34daf2 |
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
Takashi Iwai |
34daf2 |
Acked-by: Takashi Iwai <tiwai@suse.de>
|
|
Takashi Iwai |
34daf2 |
|
|
Takashi Iwai |
34daf2 |
---
|
|
Takashi Iwai |
34daf2 |
sound/soc/codecs/rt286.c | 3 +++
|
|
Takashi Iwai |
34daf2 |
1 file changed, 3 insertions(+)
|
|
Takashi Iwai |
34daf2 |
|
|
Takashi Iwai |
34daf2 |
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c
|
|
Takashi Iwai |
34daf2 |
index f9b29782b62a..e16e7237156f 100644
|
|
Takashi Iwai |
34daf2 |
--- a/sound/soc/codecs/rt286.c
|
|
Takashi Iwai |
34daf2 |
+++ b/sound/soc/codecs/rt286.c
|
|
Takashi Iwai |
34daf2 |
@@ -171,6 +171,9 @@ static bool rt286_readable_register(struct device *dev, unsigned int reg)
|
|
Takashi Iwai |
34daf2 |
case RT286_PROC_COEF:
|
|
Takashi Iwai |
34daf2 |
case RT286_SET_AMP_GAIN_ADC_IN1:
|
|
Takashi Iwai |
34daf2 |
case RT286_SET_AMP_GAIN_ADC_IN2:
|
|
Takashi Iwai |
34daf2 |
+ case RT286_SET_GPIO_MASK:
|
|
Takashi Iwai |
34daf2 |
+ case RT286_SET_GPIO_DIRECTION:
|
|
Takashi Iwai |
34daf2 |
+ case RT286_SET_GPIO_DATA:
|
|
Takashi Iwai |
34daf2 |
case RT286_SET_POWER(RT286_DAC_OUT1):
|
|
Takashi Iwai |
34daf2 |
case RT286_SET_POWER(RT286_DAC_OUT2):
|
|
Takashi Iwai |
34daf2 |
case RT286_SET_POWER(RT286_ADC_IN1):
|
|
Takashi Iwai |
34daf2 |
--
|
|
Takashi Iwai |
34daf2 |
2.26.2
|
|
Takashi Iwai |
34daf2 |
|