diff options
author | Christoph Pfister <pfister@linuxtv.org> | 2008-04-09 16:34:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:59 -0400 |
commit | 8727073beff795ec0c9cb18833431d0b606f8264 (patch) | |
tree | a94b409cf78e365f853d0e387a0090c4fb59f463 /drivers/media/dvb/ttpci/budget-av.c | |
parent | d5a50e498603f5fa78e0373c389e2d2c3c13d709 (diff) |
V4L/DVB (7530): budget-av: Fix support for certain cams
The current ci implementation doesn't accept 0xff when reading data bytes (address == 0),
thus breaks cams which report a buffer size of 0x--ff like my orion one.
Remove the 0xff check altogether, because validation is really the job of a higher layer.
Signed-off-by: Christoph Pfister <pfister@linuxtv.org>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/budget-av.c')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-av.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index 2d64d557b977..f0689e064f06 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -178,7 +178,7 @@ static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addre | |||
178 | udelay(1); | 178 | udelay(1); |
179 | 179 | ||
180 | result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); | 180 | result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); |
181 | if ((result == -ETIMEDOUT) || ((result == 0xff) && ((address & 3) < 2))) { | 181 | if (result == -ETIMEDOUT) { |
182 | ciintf_slot_shutdown(ca, slot); | 182 | ciintf_slot_shutdown(ca, slot); |
183 | printk(KERN_INFO "budget-av: cam ejected 3\n"); | 183 | printk(KERN_INFO "budget-av: cam ejected 3\n"); |
184 | return -ETIMEDOUT; | 184 | return -ETIMEDOUT; |