From fe8831366bf523a357ef956b9b13ba3c10ae65a4 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sun, 4 Mar 2018 01:00:34 +0100 Subject: [PATCH] a7xelte: Simplify clock control The clocks can never be on at this stage, because we explicitly enable them before starting the amplifier and disable them when we stop it. Change-Id: Ic28bd30ceb286ba3ffa862aa528959a842e599dc (cherry picked from commit 21ebcea84f1dfd371685a39d94088b86eed9e083) --- amplifier/tfa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amplifier/tfa.c b/amplifier/tfa.c index 293cc8f..858c820 100644 --- a/amplifier/tfa.c +++ b/amplifier/tfa.c @@ -182,10 +182,8 @@ int tfa_power(tfa_device_t *tfa_dev, bool on) { } // this implementation requires explicit clock control - if (on && !tfa_dev->clock_enabled) { + if (on) { tfa_clock_on(tfa_dev); - } else if (!on && tfa_dev->clock_enabled) { - tfa_clock_off(tfa_dev); } rc = tfa_dev->tfa_enable(tfa_dev->tfa_handle, on ? 1 : 0); -- 2.20.1