]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stk1160: Check whether to use AC97 codec
authorMarcel Hasler <mahasler@gmail.com>
Thu, 15 Dec 2016 22:13:34 +0000 (20:13 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 13:26:32 +0000 (11:26 -0200)
commit4bec81993bc38e284f86b007dd51d8c4bf6f67ff
treee05a0d41e1a6a82ad3d20f38230b466827cf48f5
parent3bbfcf2e94c576e672c5fb7a434870f04a5e1c08
[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>
drivers/media/usb/stk1160/stk1160-ac97.c
drivers/media/usb/stk1160/stk1160-core.c
drivers/media/usb/stk1160/stk1160-reg.h