[media] em28xx: improve em2710/em2820 distinction
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Thu, 11 Apr 2013 18:56:47 +0000 (15:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 23:04:36 +0000 (20:04 -0300)
commit61ff5d69dc39fecfe52ee5c8d4695a0ad4444d34
tree24e5a61abf7251cdc44ed9102f41ee3b0a33f7f8
parent2b64cbd1da7a026e0779a1ba61e83ac5fcf544e7
[media] em28xx: improve em2710/em2820 distinction

Chip id 18 is used by the em2710 and em2820.
The current code assumes that if the device is a camera, the chip is an em2710
and an em2820 otherwise.
But it turned out that the em2820 is also used in camera devices.
"Silvercrest 1.3 MPix" webcams for example are available with both chips.
Fortunately both variants are using different generic USD IDs which give us a
hint about the used chip.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c