The patch number 9127 was added via Jean-Francois Moine <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

merge: v4l-dvb


---

 linux/drivers/media/dvb/dvb-usb/dib0700_devices.c |   21 ++++++++------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff -r 300361b31237 -r 32d0f16bb16e 
linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Thu Oct 09 08:14:03 
2008 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Thu Oct 09 08:15:28 
2008 +0200
@@ -1181,11 +1181,16 @@ static int dib0700_xc5000_tuner_callback
 {
        struct dvb_usb_adapter *adap = priv;
 
-       /* Reset the tuner */
-       dib0700_set_gpio(adap->dev, GPIO1, GPIO_OUT, 0);
-       msleep(330); /* from Windows USB trace */
-       dib0700_set_gpio(adap->dev, GPIO1, GPIO_OUT, 1);
-       msleep(330); /* from Windows USB trace */
+       if (command == XC5000_TUNER_RESET) {
+               /* Reset the tuner */
+               dib0700_set_gpio(adap->dev, GPIO1, GPIO_OUT, 0);
+               msleep(330); /* from Windows USB trace */
+               dib0700_set_gpio(adap->dev, GPIO1, GPIO_OUT, 1);
+               msleep(330); /* from Windows USB trace */
+       } else {
+               err("xc5000: unknown tuner callback command: %d\n", command);
+               return -EINVAL;
+       }
 
        return 0;
 }
@@ -1197,12 +1202,12 @@ static struct xc5000_config s5h1411_xc50
 
 static int xc5000_tuner_attach(struct dvb_usb_adapter *adap)
 {
+       /* FIXME: generalize & move to common area */
+       adap->fe->callback = dib0700_xc5000_tuner_callback;
+
        return dvb_attach(xc5000_attach, adap->fe, &adap->dev->i2c_adap,
                          &s5h1411_xc5000_tunerconfig)
                == NULL ? -ENODEV : 0;
-
-       /* FIXME: generalize & move to common area */
-       adap->fe->callback = dib0700_xc5000_tuner_callback;
 }
 
 /* DVB-USB and USB stuff follows */


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/32d0f16bb16e4698aa4fa76445284819ca7da4ba

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to