armbian-build/patch/kernel/rockchip64-legacy/check/0006-es8316-patch-for-rockpi-print-error-message.patch
Igor Pečovnik 36405e3397
Add Rockpi 4C (#2129)
* Add Rockpi 4C

* Update config/boards/rockpi-4c.conf

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>

* Change backward compatibility link to B model

* Various changes - tested for building.

 - add Radxa overlays
 - update naming with mainline
 - add Rockpi-E

* Reverting improvements for rockpi legacy and create a link to new DT only

* Copied ROCK Pi 4 device treesplitting patches to dev which was broken

* Add Rockpi 4c targets

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
2020-08-29 00:16:28 +02:00

30 lines
929 B
Diff

From 49b436cd66683e185f53435e9572f15044ee4132 Mon Sep 17 00:00:00 2001
From: brian <brian@vamrs.com>
Date: Tue, 25 Sep 2018 14:06:01 +0800
Subject: [PATCH 06/97] es8316 patch for rockpi print error message
Change-Id: I54b1775c4d2bd695f7a5373149b14bc2501ce136
---
sound/soc/codecs/es8316.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c
index 86d0eea444c5..e2a14976d8d2 100644
--- a/sound/soc/codecs/es8316.c
+++ b/sound/soc/codecs/es8316.c
@@ -103,7 +103,10 @@ static void es8316_enable_spk(struct es8316_priv *es8316, bool enable)
bool level;
level = enable ? es8316->spk_active_level : !es8316->spk_active_level;
- gpio_set_value(es8316->spk_ctl_gpio, level);
+
+ if (INVALID_GPIO != es8316->spk_ctl_gpio) {
+ gpio_set_value(es8316->spk_ctl_gpio, level);
+ }
}
static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -9600, 50, 1);
--
2.25.1