diff options
author | Marcel Hasler <mahasler@gmail.com> | 2016-12-15 23:13:34 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-03 14:26:32 +0100 |
commit | 1dc7df4d3d787639c9eeb8fc3841dd8d003de82a (patch) | |
tree | e05a0d41e1a6a82ad3d20f38230b466827cf48f5 /drivers/media/usb/stk1160/stk1160-reg.h | |
parent | [media] stk1160: Remove stk1160-mixer and setup internal AC97 codec automatic... (diff) | |
download | linux-1dc7df4d3d787639c9eeb8fc3841dd8d003de82a.tar.xz linux-1dc7df4d3d787639c9eeb8fc3841dd8d003de82a.zip |
[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')
-rw-r--r-- | drivers/media/usb/stk1160/stk1160-reg.h | 8 |
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 |