android_kernel_oneplus_msm8998/drivers/media
Gianluca Gennari d138210ffa [media] smsdvb: fix get_frontend
In the get_frontend function, an internal copy of the dtv_frontend_properties
struct (which is never initialized) is copied over the frontend property cache
data structure, resetting everything to 0.
In particular, the delivery system is reset to 0 (which is an invalid value)
so the driver stops working as soon as a DVBv3 application calls the
get_frontend function, giving this error:

dvb_frontend_ioctl_legacy: doesn't know how to handle a DVBv3 call to delivery
system 0

This patch eliminates the unused internal copy of the dtv_frontend_properties
struct, and gives a proper implementation of the get_frontend function.

The original author of the patch is Panagiotis Malakoudis, who also tested
this new version on Ubuntu 11.10 with the latest media_build tree installed.
The original patch has been used on MIPS set-top-boxes for over one year,
but it was never posted on the linux-media list.
I ported the code to the current media_build tree (converting it to use the
dtv_frontend_properties struct) and added basic support for ISDB-T (untested).

Signed-off-by: Panagiotis Malakoudis <malakudi@gmail.com>
Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-08 11:20:12 -03:00
..
common [media] Add registers names to XC2028 tuner from datahseet and use them 2012-01-16 12:24:39 -02:00
dvb [media] smsdvb: fix get_frontend 2012-03-08 11:20:12 -03:00
radio [media] wl128x: fix build errors when GPIOLIB is not enabled 2012-02-15 12:47:00 -02:00
rc [media] imon: don't wedge hardware after early callbacks 2012-01-26 17:04:29 -02:00
video [media] media: davinci: added module.h to resolve unresolved macros 2012-02-28 17:06:54 -03:00
Kconfig
Makefile
media-device.c [media] media: fix truncated entity specification 2011-12-20 09:31:50 -02:00
media-devnode.c
media-entity.c