[media] dvb-frontend: add core support for tuner suspend/resume
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 9 Aug 2014 18:23:35 +0000 (15:23 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:28 +0000 (12:00 +0900)
commit02bdb8c8e94ee0724e4cf33ca6d12c6441c26612
tree2be841fc1f149534313f686776cc01cb2e7b4e03
parent8a9a7efabde1c2a190eadea446a58bcea7f33c20
[media] dvb-frontend: add core support for tuner suspend/resume

While several tuners have some sort of suspend/resume
implementation, this is currently mangled with an optional
.sleep callback that it is also used to put the device on
low power mode.

Not all drivers implement it, as returning the driver from
low power may require to re-load the firmware, with takes
some time. Also, some drivers may delay it.

So, the more coherent is to add two new optional callbacks
that will let the tuners to directy implement suspend and
resume callbacks if they need.

Change-Id: I0cf3b2cb2879cf538a86fa88a4ce210dd6dd3225
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h
drivers/media/v4l2-core/tuner-core.c