summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-12 10:56:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-12 10:56:21 -0300
commit6cef2ed6aed0628ee5e9eb3c56a5b265ce53d128 (patch)
tree468be9312104666290f5b6720a79d9a8624a5223 /linux/drivers/media
parent2fcdd2e821f5a9e43d178378bd1d8801158ea794 (diff)
downloadmediapointer-dvb-s2-6cef2ed6aed0628ee5e9eb3c56a5b265ce53d128.tar.gz
mediapointer-dvb-s2-6cef2ed6aed0628ee5e9eb3c56a5b265ce53d128.tar.bz2
em28xx: detects sensors also with the generic em2750/2750 entry
From: Mauro Carvalho Chehab <mchehab@redhat.com> Webcams in general don't have eeprom. So, the sensor hint code should be called to properly detect what sensor is inside. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-cards.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c
index f8a3f28a2..a50ef1216 100644
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -218,7 +218,7 @@ static struct em28xx_reg_seq silvercrest_reg_seq[] = {
*/
struct em28xx_board em28xx_boards[] = {
[EM2750_BOARD_UNKNOWN] = {
- .name = "Unknown EM2750/EM2751 webcam grabber",
+ .name = "EM2710/EM2750/EM2751 webcam grabber",
.xclk = EM28XX_XCLK_FREQUENCY_48MHZ,
.tuner_type = TUNER_ABSENT,
.is_webcam = 1,
@@ -1791,7 +1791,8 @@ static int em28xx_hint_sensor(struct em28xx *dev)
__be16 version_be;
u16 version;
- if (dev->model != EM2820_BOARD_UNKNOWN)
+ if (dev->model != EM2820_BOARD_UNKNOWN &&
+ dev->model != EM2750_BOARD_UNKNOWN)
return 0;
dev->i2c_client.addr = 0xba >> 1;
@@ -1809,11 +1810,11 @@ static int em28xx_hint_sensor(struct em28xx *dev)
sensor_name = "mt9v011";
break;
default:
- printk("Unknown Sensor 0x%04x\n", be16_to_cpu(version));
+ printk("Unknown Micron Sensor 0x%04x\n", be16_to_cpu(version));
return -EINVAL;
}
- em28xx_errdev("Sensor is %s, assuming that webcam is %s\n",
+ em28xx_errdev("Sensor is %s, using model %s entry.\n",
sensor_name, em28xx_boards[dev->model].name);
return 0;