[alsa-devel] [PATCH v3 04/16] ALSA: Oxygen: Add CS4245_SPI_READ constant
Roman Volkov
v1ron at mail.ru
Fri Jan 17 16:08:23 CET 2014
The driver needs this constant to perform SPI read operations.
The shift from CS4245_SPI_ADDRESS and CS4245_SPI_WRITE constants
removed, since when we need to send two bytes instead of three
in the SPI packet, we need to shift left by 8 instead of 16.
Signed-off-by: Roman Volkov <v1ron at mail.ru>
---
sound/pci/oxygen/cs4245.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/pci/oxygen/cs4245.h b/sound/pci/oxygen/cs4245.h
index 5e0197e..3dd487a 100644
--- a/sound/pci/oxygen/cs4245.h
+++ b/sound/pci/oxygen/cs4245.h
@@ -103,5 +103,6 @@
#define CS4245_ADC_UNDRFL 0x01
-#define CS4245_SPI_ADDRESS (0x9e << 16)
-#define CS4245_SPI_WRITE (0 << 16)
+#define CS4245_SPI_ADDRESS 0x9e
+#define CS4245_SPI_WRITE 0
+#define CS4245_SPI_READ 1
--
1.7.10.4
More information about the Alsa-devel
mailing list