Commit a2c00a0e authored by Klaus Frahm's avatar Klaus Frahm Committed by Mauro Carvalho Chehab

V4L/DVB (4464): FIX_ AverTV A800 trouble

A new revision of the Avermedia A800 does not reenumerate after download the firmware.
Signed-off-by: default avatarKlaus Frahm <frahm@irsamc.ups-tlse.fr>
Signed-off-by: default avatarMartin Habbecke <M.Habbecke@gmx.de>
Signed-off-by: default avatarPatrick Boettcher <pb@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 6c95f61b
...@@ -26,6 +26,13 @@ static int a800_power_ctrl(struct dvb_usb_device *d, int onoff) ...@@ -26,6 +26,13 @@ static int a800_power_ctrl(struct dvb_usb_device *d, int onoff)
return 0; 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[] = { static struct dvb_usb_rc_key a800_rc_keys[] = {
{ 0x02, 0x01, KEY_PROG1 }, /* SOURCE */ { 0x02, 0x01, KEY_PROG1 }, /* SOURCE */
{ 0x02, 0x00, KEY_POWER }, /* POWER */ { 0x02, 0x00, KEY_POWER }, /* POWER */
...@@ -113,6 +120,7 @@ static struct dvb_usb_properties a800_properties = { ...@@ -113,6 +120,7 @@ static struct dvb_usb_properties a800_properties = {
.power_ctrl = a800_power_ctrl, .power_ctrl = a800_power_ctrl,
.frontend_attach = dibusb_dib3000mc_frontend_attach, .frontend_attach = dibusb_dib3000mc_frontend_attach,
.tuner_attach = dibusb_dib3000mc_tuner_attach, .tuner_attach = dibusb_dib3000mc_tuner_attach,
.identify_state = a800_identify_state,
.rc_interval = DEFAULT_RC_INTERVAL, .rc_interval = DEFAULT_RC_INTERVAL,
.rc_key_map = a800_rc_keys, .rc_key_map = a800_rc_keys,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment