From: Andy Walls Date: Sun, 5 Dec 2010 22:42:30 +0000 (-0300) Subject: [media] cx25840: Prevent device probe failure due to volume control ERANGE error X-Git-Tag: v2.6.37~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f23b7952d37c69c0caa6c8dfb85dbf2eb9e5fcaa;p=pandora-kernel.git [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 Cc: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed