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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
---
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux