]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit1dc7df4d3d787639c9eeb8fc3841dd8d003de82a
treee05a0d41e1a6a82ad3d20f38230b466827cf48f5
parente36e6b5f26c14fd588d5c7e78527d3707f8ac836
[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