diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-07 00:06:54 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-07 00:06:54 -0400 |
commit | 47b47d371e02c3585268e06325bf27bc3ec27dcc (patch) | |
tree | 2bfbb63efc46336e027c768a1902327b94983dd2 /linux/drivers/media/dvb/frontends/qt1010.h | |
parent | 39f8c8cf4eedd31a816f6cc20e8f3f4f13199758 (diff) | |
download | mediapointer-dvb-s2-47b47d371e02c3585268e06325bf27bc3ec27dcc.tar.gz mediapointer-dvb-s2-47b47d371e02c3585268e06325bf27bc3ec27dcc.tar.bz2 |
qt1010: correct hardlockup when an app access the DVB dongle
From: Jan Nijs <jan.nijs@scarlet.be>
This patch changes qt1010.h to use dvb_usb_device struct instead of a
dvb_usb_adapter for accessing the private area of the driver.
Without this patch my PC hard locks when an application tries to access
the DVB tuner.
Signed-off-by: Jan Nijs <jan.nijs@scarlet.be>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/qt1010.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/qt1010.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/qt1010.h b/linux/drivers/media/dvb/frontends/qt1010.h index 59ee1cd03..8196985e4 100644 --- a/linux/drivers/media/dvb/frontends/qt1010.h +++ b/linux/drivers/media/dvb/frontends/qt1010.h @@ -79,7 +79,7 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame { QT1010_W, 0x01, 0x00 }, }; struct i2c_msg msg; - struct dvb_usb_device *d = fe->dvb->priv; + struct dvb_usb_adapter *adap = fe->dvb->priv; unsigned long freq = params->frequency; if (freq % QT1010_MIN_STEP) @@ -203,10 +203,10 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame msg.flags = 0; msg.len = 2; - msg.addr = d->adapter[0].pll_addr; + msg.addr = adap->dev->adapter[0].pll_addr; msg.buf = &rd[i].reg; - if (i2c_transfer(&d->i2c_adap, &msg, 1) != 1) { + if (i2c_transfer(&adap->dev->i2c_adap, &msg, 1) != 1) { printk("tuner write failed\n"); return -EIO; } |