Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] fix saa7111 non-detection

One saa7111 device is reporting a different ID:

saa7115 0-0024: chip found @ 0x48 (ID 0f7111d0e111111) does not match a known saa711x chip.

As this is for sure a saa7111, change the detection code to also
cover this device.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Russell King and committed by
Mauro Carvalho Chehab
bed3c1de 56b0ec30

+1 -1
+1 -1
drivers/media/video/saa7115.c
··· 1565 1565 chip_id = name[5]; 1566 1566 1567 1567 /* Check whether this chip is part of the saa711x series */ 1568 - if (memcmp(name, "1f711", 5)) { 1568 + if (memcmp(name + 1, "f711", 4)) { 1569 1569 v4l_dbg(1, debug, client, "chip found @ 0x%x (ID %s) does not match a known saa711x chip.\n", 1570 1570 client->addr << 1, name); 1571 1571 return -ENODEV;