linux/drivers/media
Mauro Carvalho Chehab 746f7ae0e9 [media] dib8000: Fix sub-channel range
isdbt_sb_subchannel is unsigned with 8 bits. So, it will
never be -1. Instead, any value bigger than 13 is invalid.

As is, the current code generates the following warnings:

drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_set_isdbt_common_channel':
drivers/media/dvb-frontends/dib8000.c:2358:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_tune':
drivers/media/dvb-frontends/dib8000.c:3107:8: warning: comparison is always false due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c:3153:9: warning: comparison is always false due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c:3160:5: warning: comparison is always false

It should also be noticed that ARIB STD-B31, item
"3.15.6.8 Number of segments" at TMCC table defines the
value 15 for unused segment, and 14 as reserved.

So, better to change the check to consider any value
bigger than 13 to mean that sub-channels should be
disabled, fixing the warning and doing the right thing
even if an invalid value is filled by userspace.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-04-25 15:13:49 -03:00
..
common [media] media: Fix randconfig error 2013-04-14 20:04:08 -03:00
dvb-core [media] dib7090p: remove the support for the dib7090E 2013-04-22 17:15:26 -03:00
dvb-frontends [media] dib8000: Fix sub-channel range 2013-04-25 15:13:49 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] s5c73m3: Add missing subdev .unregistered callback 2013-04-25 09:33:58 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
pci Merge branch 'topic/cx25821' into patchwork 2013-04-25 10:28:18 -03:00
platform [media] mem2mem_testdev: set timestamp_type and add debug param 2013-04-25 09:48:49 -03:00
radio [media] v4l2: Add a V4L2 driver for SI476X MFD 2013-04-18 21:20:34 -03:00
rc [media] media/rc/imon.c: kill urb when send_packet() is interrupted 2013-04-23 17:50:34 -03:00
tuners [media] r820t: quiet gcc warning on n_ring 2013-04-25 10:30:54 -03:00
usb Merge branch 'topic/r820t' into patchwork 2013-04-25 10:26:21 -03:00
v4l2-core [media] media: videobuf2: fix the length check for mmap 2013-04-25 09:54:00 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in media_device_enum_entities() 2013-04-23 16:58:52 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00