]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx25840: Prevent device probe failure due to volume control ERANGE error
authorAndy Walls <awalls@md.metrocast.net>
Sun, 5 Dec 2010 22:42:30 +0000 (19:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 3 Jan 2011 11:08:16 +0000 (09:08 -0200)
commit7dc8891f3cfad59c3218ce3999c1d7b88151d5c6
tree813fda00f48aeafbd785d494d8c1ae8c660f6f5a
parent099756b9ca3e7d2e66f30c3d6be51e198342ff4d
[media] cx25840: Prevent device probe failure due to volume control ERANGE error

This patch fixes a regression that crept into 2.6.36.

The volume control scale in the cx25840 driver has an unusual mapping
from register values to v4l2 volume control values.  Enforce the mapping
limits, so that the default volume control setting does not fall out of
bounds to prevent the cx25840 module device probe from failing.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx25840/cx25840-core.c