path: root/drivers/media/usb/stk1160/stk1160-reg.h
diff options
authorMarcel Hasler <mahasler@gmail.com>2016-12-15 20:13:34 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-02-03 11:26:32 -0200
commit1dc7df4d3d787639c9eeb8fc3841dd8d003de82a (patch)
treee05a0d41e1a6a82ad3d20f38230b466827cf48f5 /drivers/media/usb/stk1160/stk1160-reg.h
parente36e6b5f26c14fd588d5c7e78527d3707f8ac836 (diff)
[media] stk1160: Check whether to use AC97 codec
Some STK1160-based devices use the chip's internal 8-bit ADC. This is configured through a strap pin. The value of this and other pins can be read through the POSVA register. If the internal ADC is used, or if audio is disabled altogether, there's no point trying to setup the AC97 codec. Signed-off-by: Marcel Hasler <mahasler@gmail.com> Acked-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/stk1160/stk1160-reg.h')
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-reg.h b/drivers/media/usb/stk1160/stk1160-reg.h
index 81ff3a15d96e..296a9e712c81 100644
--- a/drivers/media/usb/stk1160/stk1160-reg.h
+++ b/drivers/media/usb/stk1160/stk1160-reg.h
@@ -26,6 +26,14 @@
/* Remote Wakup Control */
#define STK1160_RMCTL 0x00c
+/* Power-on Strapping Data */
+#define STK1160_POSVA 0x010
+#define STK1160_POSV_L 0x010
+#define STK1160_POSV_M 0x011
+#define STK1160_POSV_H 0x012
+#define STK1160_POSV_L_ACDOUT BIT(3)
+#define STK1160_POSV_L_ACSYNC BIT(2)
* Decoder Control Register:
* This byte controls capture start/stop

Privacy Policy