[Sound-open-firmware] [PATCH 2/5] DMIC: Set TH and BFTH bit fields via the variables in HW version 2 code

Seppo Ingalsuo seppo.ingalsuo at linux.intel.com
Tue Jun 19 17:14:50 CEST 2018


This aligns the HW versions 1 and 2 code and avoids a build error about
unused variables.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo at linux.intel.com>
---
 src/drivers/dmic.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/drivers/dmic.c b/src/drivers/dmic.c
index 0f55474..70942a2 100644
--- a/src/drivers/dmic.c
+++ b/src/drivers/dmic.c
@@ -818,14 +818,14 @@ static int configure_registers(struct dai *dai, struct dmic_configuration *cfg,
 		OUTCONTROL0_SIP(0) |
 		OUTCONTROL0_FINIT(1) |
 		OUTCONTROL0_FCI(0) |
-		OUTCONTROL0_BFTH(3) |
+		OUTCONTROL0_BFTH(bfth) |
 		OUTCONTROL0_OF(of0) |
 		OUTCONTROL0_NUMBER_OF_DECIMATORS(ipm) |
 		OUTCONTROL0_IPM_SOURCE_1(source[0]) |
 		OUTCONTROL0_IPM_SOURCE_2(source[1]) |
 		OUTCONTROL0_IPM_SOURCE_3(source[2]) |
 		OUTCONTROL0_IPM_SOURCE_4(source[3]) |
-		OUTCONTROL0_TH(3);
+		OUTCONTROL0_TH(th);
 	dmic_write(dai, OUTCONTROL0, val);
 	trace_value(val);
 
@@ -833,14 +833,14 @@ static int configure_registers(struct dai *dai, struct dmic_configuration *cfg,
 		OUTCONTROL1_SIP(0) |
 		OUTCONTROL1_FINIT(1) |
 		OUTCONTROL1_FCI(0) |
-		OUTCONTROL1_BFTH(3) |
+		OUTCONTROL1_BFTH(bfth) |
 		OUTCONTROL1_OF(of1) |
 		OUTCONTROL1_NUMBER_OF_DECIMATORS(ipm) |
 		OUTCONTROL1_IPM_SOURCE_1(source[0]) |
 		OUTCONTROL1_IPM_SOURCE_2(source[1]) |
 		OUTCONTROL1_IPM_SOURCE_3(source[2]) |
 		OUTCONTROL1_IPM_SOURCE_4(source[3]) |
-		OUTCONTROL1_TH(3);
+		OUTCONTROL1_TH(th);
 	dmic_write(dai, OUTCONTROL1, val);
 	trace_value(val);
 #endif
-- 
2.14.1



More information about the Sound-open-firmware mailing list