diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2017-04-15 07:05:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-17 17:32:15 -0300 |
commit | 85316cf8da9e808f28c81343a050f489ac03e20e (patch) | |
tree | a1a52cae096ef81c82a4c9fb4e1e90a763748928 /drivers/media/dvb-frontends/dvb_dummy_fe.c | |
parent | bb42fc4ad442d4de78b4a16233db98a5396988ff (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb-frontends/dvb_dummy_fe.c')
0 files changed, 0 insertions, 0 deletions