[alsa-devel] [PATCH] ASoC: All bytes readable in 6 byte PLL register in ADAU17x1

Ricard Wanderlof ricard.wanderlof at axis.com
Thu Sep 7 15:48:01 CEST 2017


The PLL register in the ADAU17x1 is 6 bytes long, so mark all bytes as 
readable.

This is of no importance for existing code, but is useful when 
instrumenting the code for debugging purposes.

Signed-off-by: Ricard Wanderlof <ricardw at axis.com>
---
diff --git a/sound/soc/codecs/adau17x1.c b/sound/soc/codecs/adau17x1.c
index 2c1bd27..b324c6f 100644
--- a/sound/soc/codecs/adau17x1.c
+++ b/sound/soc/codecs/adau17x1.c
@@ -759,7 +759,13 @@ bool adau17x1_readable_register(struct device *dev, unsigned int reg)
 
 	switch (reg) {
 	case ADAU17X1_CLOCK_CONTROL:
+	/* The PLL register is 6 bytes long */
 	case ADAU17X1_PLL_CONTROL:
+	case ADAU17X1_PLL_CONTROL + 1:
+	case ADAU17X1_PLL_CONTROL + 2:
+	case ADAU17X1_PLL_CONTROL + 3:
+	case ADAU17X1_PLL_CONTROL + 4:
+	case ADAU17X1_PLL_CONTROL + 5:
 	case ADAU17X1_REC_POWER_MGMT:
 	case ADAU17X1_MICBIAS:
 	case ADAU17X1_SERIAL_PORT0:

-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30


More information about the Alsa-devel mailing list