linux/drivers/media
Frank Schaefer 85316cf8da [media] em28xx: don't treat device as webcam if an unknown sensor is detected
With an unknown sensor, norm_maxw() and norm_maxh() return 0 as max.
height and width values, which causes a devide by zero in size_to_scale().
Of course we could use speculative default values for unknown sensors,
but the chance that the device works at this resolution without any
driver/setup is very low and therefore not worth the efforts.
Instead, just don't treat the device as camera.
A message will then be printed to the log that the device isn't supported.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-17 17:32:15 -03:00
..
cec [media] cec: fix confusing CEC_CAP_RC and IS_REACHABLE(CONFIG_RC_CORE) code 2017-04-10 13:15:29 -03:00
common [media] b2c2: constify nxt200x_config structure 2017-04-17 12:18:18 -03:00
dvb-core [media] media/dvb-core: Race condition when writing to CAM 2017-04-17 17:20:23 -03:00
dvb-frontends [media] dvb-frontends/drxk: don't log errors on unsupported operation mode 2017-04-17 17:07:57 -03:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c [media] tc358743: Add OF device ID table 2017-04-17 13:11:06 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] media: pci: saa7164: remove dead code 2017-04-17 13:07:50 -03:00
platform [media] drivers/media: Convert remaining use of pr_warning to pr_warn 2017-04-17 10:39:59 -03:00
radio [media] wl128x: use setup_timer 2017-04-10 14:56:37 -03:00
rc [media] imon: use setup_timer 2017-04-10 14:56:57 -03:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners [media] si2157: Add support for Si2141-A10 2017-04-14 22:27:47 -03:00
usb [media] em28xx: don't treat device as webcam if an unknown sensor is detected 2017-04-17 17:32:15 -03:00
v4l2-core [media] v4l2-ctrls.c: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for ROTATE 2017-04-14 22:54:35 -03:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
cec-notifier.c [media] media: add CEC notifier support 2017-04-10 12:48:28 -03:00
Kconfig [media] media: add CEC notifier support 2017-04-10 12:48:28 -03:00
Makefile [media] media: add CEC notifier support 2017-04-10 12:48:28 -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] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
media-entity.c [media] media: entity: Add debug information to graph walk 2017-01-30 11:33:26 -02:00