linux/drivers/media
Daniel Scheller 8982735f8d media: dvb-frontends/cxd2841er: require STATE_ACTIVE_* for agc readout
When the demod driver puts the demod into sleep or shutdown state and it's
status is then polled e.g. via "dvb-fe-tool -m", i2c errors are printed
to the kernel log. If the last delsys was DVB-T/T2:

  cxd2841er: i2c wr failed=-5 addr=6c reg=00 len=1
  cxd2841er: i2c rd failed=-5 addr=6c reg=26

and if it was DVB-C:

  cxd2841er: i2c wr failed=-5 addr=6c reg=00 len=1
  cxd2841er: i2c rd failed=-5 addr=6c reg=49

This happens when read_status unconditionally calls into the
read_signal_strength() function which triggers the read_agc_gain_*()
functions, where these registered are polled.

This isn't a critical thing since when the demod is active again, no more
such errors are logged, however this might make users suspecting defects.

Fix this by requiring STATE_ACTIVE_* in priv->state. If it isn't in any
active state, additionally set the strength scale to NOT_AVAILABLE.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-25 09:05:26 -03:00
..
cec Linux 4.12-rc6 2017-06-20 08:51:56 -03:00
common [media] b2c2: constify nxt200x_config structure 2017-04-17 12:18:18 -03:00
dvb-core [media] dvb_ca_en50221: Fix wrong EXPORT_SYMBOL order 2017-06-07 13:21:25 -03:00
dvb-frontends media: dvb-frontends/cxd2841er: require STATE_ACTIVE_* for agc readout 2017-06-25 09:05:26 -03:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c media: i2c: tvp5150: remove useless variable assignment in tvp5150_set_vbi() 2017-06-24 19:04:46 -03:00
mmc
pci media: ddbridge: dev_* logging fixup 2017-06-25 09:04:51 -03:00
platform media: v4l: omap_vout: vrfb: Convert to dmaengine 2017-06-24 16:00:25 -03:00
radio media: radio: wl1273: add check on core->write() return value 2017-06-24 09:38:14 -03:00
rc [media] rc-core: cleanup rc_register_device pt2 2017-06-13 13:55:01 -03:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: tw5864, fc0011: better handle WARN_ON() 2017-06-24 16:19:27 -03:00
usb media: dvb-usb-v2: lmedm04: remove unnecessary variable in lme2510_stream_restart() 2017-06-24 18:46:05 -03:00
v4l2-core media: tuner-core: Remove unused #define PREFIX 2017-06-24 09:37:01 -03:00
Kconfig [media] cec: rename MEDIA_CEC_NOTIFIER to CEC_NOTIFIER 2017-06-04 15:23:35 -03:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: entity: Catch unbalanced media_pipeline_stop calls 2017-06-23 09:23:36 -03:00