]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stk1160: Remove stk1160-mixer and setup internal AC97 codec automatically
authorMarcel Hasler <mahasler@gmail.com>
Thu, 15 Dec 2016 22:17:26 +0000 (20:17 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 13:25:51 +0000 (11:25 -0200)
commit3bbfcf2e94c576e672c5fb7a434870f04a5e1c08
tree9c8422f72379195fe5bc0944f13d4eea02d6ed55
parentf2d8c2e8481b8ef4c1e3430779275eb9780f18ad
[media] stk1160: Remove stk1160-mixer and setup internal AC97 codec automatically

Exposing all the channels of the device's internal AC97 codec to
userspace is unnecessary and confusing. Instead the driver should setup
the codec with proper values. This patch removes the mixer and sets up
the codec using optimal values, i.e. the same values set by the Windows
driver. This also makes the device work out-of-the-box, without the need
for the user to reconfigure the device every time it's plugged in.

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/Kconfig
drivers/media/usb/stk1160/Makefile
drivers/media/usb/stk1160/stk1160-ac97.c
drivers/media/usb/stk1160/stk1160-core.c
drivers/media/usb/stk1160/stk1160.h