]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-ioctl.c: fix enum_freq_bands handling
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 11 Jul 2014 10:01:39 +0000 (07:01 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 21:29:42 +0000 (18:29 -0300)
commitae021154aca6e179095f6f5bb8bf8d3374d2c66e
treef5f505e5dc74cf3210a8e9858044271d924aaa2a
parent8d0a5cd7c5afbea89ea36ceda6c63bb3c5154256
[media] v4l2-ioctl.c: fix enum_freq_bands handling

If the driver supports enum_freq_bands, but only for certain device
nodes, then it may return -ENOTTY. But in that case the code should
fall into the fall-back case where the current tuner/modulator range
is returned.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c