diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-07-29 23:49:36 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-07-29 23:49:36 +0200 |
commit | 023c6aeff851c8703bf2eaf7c02dc8b85af3261b (patch) | |
tree | 9752c338f8c829adc84e9ecf9af543bbf608e632 | |
parent | d0507b8f780dfd5f91a2d51a123a1f98c5c47e57 (diff) | |
download | mediapointer-dvb-s2-023c6aeff851c8703bf2eaf7c02dc8b85af3261b.tar.gz mediapointer-dvb-s2-023c6aeff851c8703bf2eaf7c02dc8b85af3261b.tar.bz2 |
FIX_ AverTV A800 trouble
From: Klaus Frahm <frahm@irsamc.ups-tlse.fr>
A new revision of the Avermedia A800 does not reenumerate after download the firmware.
Signed-off-by: Klaus Frahm <frahm@irsamc.ups-tlse.fr>
Signed-off-by: Martin Habbecke <M.Habbecke@gmx.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/a800.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/a800.c b/linux/drivers/media/dvb/dvb-usb/a800.c index cb338ed20..d5aeceb92 100644 --- a/linux/drivers/media/dvb/dvb-usb/a800.c +++ b/linux/drivers/media/dvb/dvb-usb/a800.c @@ -26,6 +26,13 @@ static int a800_power_ctrl(struct dvb_usb_device *d, int onoff) return 0; } +/* assure to put cold to 0 for iManufacturer == 1 */ +static int a800_identify_state(struct usb_device *udev, struct dvb_usb_properties *props,struct dvb_usb_device_description **desc, int *cold) +{ + *cold = udev->descriptor.iManufacturer != 1; + return 0; +} + static struct dvb_usb_rc_key a800_rc_keys[] = { { 0x02, 0x01, KEY_PROG1 }, /* SOURCE */ { 0x02, 0x00, KEY_POWER }, /* POWER */ @@ -113,6 +120,7 @@ static struct dvb_usb_properties a800_properties = { .power_ctrl = a800_power_ctrl, .frontend_attach = dibusb_dib3000mc_frontend_attach, .tuner_attach = dibusb_dib3000mc_tuner_attach, + .identify_state = a800_identify_state, .rc_interval = DEFAULT_RC_INTERVAL, .rc_key_map = a800_rc_keys, |