[kernel] Revert "fully drop now-unnecessary mic enablement patch"

Josh Boyer jwboyer at fedoraproject.org
Thu Nov 27 14:27:34 UTC 2014


commit 06ec1977a7a2c0536ca0f2e7d79ed3b8c0699553
Author: Josh Boyer <jwboyer at fedoraproject.org>
Date:   Wed Nov 26 16:50:55 2014 -0500

    Revert "fully drop now-unnecessary mic enablement patch"
    
    This reverts commit bd7d8d0d9e94b127c4c3b1677c9714fb1caece8f.

 kernel.spec             |    5 +++++
 rt5640_enable_mic.patch |   13 +++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 6b02d9f..3c8545e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -635,6 +635,10 @@ Patch31011: support-Dell-OEM-chipset-found-in-Venue-8-Pro-SDIO-I.patch
 # from Jan-Michael Brummer
 Patch31012: soc_button_use_leftmeta.patch
 
+# Enable mic on RT5640 (i.e. lots of Baytrail hardware, we hope)
+# from Jan-Michael Brummer
+Patch31013: rt5640_enable_mic.patch
+
 # Fix wifi on V8P(?) from Jan-Michael Brummer
 Patch31014: sdhci-pm.patch
 
@@ -1380,6 +1384,7 @@ ApplyPatch kernel-arm64.patch -R
 # AWB (BAYTRAIL) PATCH APPLICATIONS
 ApplyPatch V2-ACPI-Add-_DEP-Operation-Region-Dependencies-support-to-fix-battery-issue-on-the-Asus-T100TA.patch
 ApplyPatch support-Dell-OEM-chipset-found-in-Venue-8-Pro-SDIO-I.patch
+#ApplyPatch rt5640_enable_mic.patch
 ApplyPatch soc_button_use_leftmeta.patch
 ApplyPatch sdhci-pm.patch
 ApplyPatch baytrail-backlight.patch
diff --git a/rt5640_enable_mic.patch b/rt5640_enable_mic.patch
new file mode 100644
index 0000000..cfb8718
--- /dev/null
+++ b/rt5640_enable_mic.patch
@@ -0,0 +1,13 @@
+diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
+index f1ec6e6..e7e480d 100644
+--- a/sound/soc/codecs/rt5640.c
++++ b/sound/soc/codecs/rt5640.c
+@@ -2195,6 +2195,7 @@ static int rt5640_i2c_probe(struct i2c_client *i2c,
+ 		regmap_update_bits(rt5640->regmap, RT5640_IN3_IN4,
+ 					RT5640_IN_DF2, RT5640_IN_DF2);
+ 
++	rt5640->pdata.dmic_en = 1;
+ 	if (rt5640->pdata.dmic_en) {
+ 		regmap_update_bits(rt5640->regmap, RT5640_GPIO_CTRL1,
+ 			RT5640_GP2_PIN_MASK, RT5640_GP2_PIN_DMIC1_SCL);
+
\ No newline at end of file


More information about the scm-commits mailing list