Skip to contentSkip to conversation

PATCH Pinnacle 320cx Terratec Cinergy HT USB XE - Draft 2

linux-dvb Hans-Frieder Vogt 2 participants 6 messages Mar 21, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect, though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line? Thanks very much.

Hans-Frieder

Signature · 2 lines
--
Hans-Frieder Vogt                 e-mail: hfvogt <at> gmx .dot. net

This patch introduces support for the Terratec Cinergy HT USB XE (USB-ID: 0ccd:0058) and the Pinnacle 320CX (2304:022e).

drivers/media/dvb/dvb-usb/dvb-usb-ids.h +2 -0
@@ -135,6 +135,8 @@
 #define USB_PID_AVERMEDIA_VOLAR				0xa807
 #define USB_PID_AVERMEDIA_VOLAR_2			0xb808
 #define USB_PID_TERRATEC_CINERGY_DT_XS_DIVERSITY	0x005a
+#define USB_PID_TERRATEC_CINERGY_HT_USB_XE		0x0058
+#define USB_PID_PINNACLE_EXPRESSCARD_320CX		0x022e
 #define USB_PID_PINNACLE_PCTV2000E			0x022c
 #define USB_PID_PINNACLE_PCTV_DVB_T_FLASH		0x0228
 #define USB_PID_PINNACLE_PCTV_DUAL_DIVERSITY_DVB_T	0x0229
drivers/media/dvb/dvb-usb/dib0700_devices.c +172 -0

196 lines not on this page · raw message

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw

Perfect!! it seems great, now I will check it (sorry, I was very busy last two days). I also will add support for Felix's card and the two cards I have pending (just add device id and small modifications), so it will be easier for patrick to add the different patches to the current source. Just one comment, how you generated the patch? because mauro suggested it's better to use hg diff. In a minutes I will send the modified patch (I hope it will be the last version).

Albert

2008/3/21, Hans-Frieder Vogt <[email protected]>:

Quoted 20 lines

Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add
the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect,
though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that
checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other
areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line?
Thanks very much.

Quoted 8 lines

Hans-Frieder

--

--
Hans-Frieder Vogt e-mail: hfvogt <at> gmx .dot. net

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw

Hi Albert,

creating the patch was nothing spectacular: as Mauro suggested, I used
diff -upr orig-file1 new-file1 > patch-file; diff -upr orig-file2 new-file2 >> patch-file
(and because I do not have two full directory trees I changed afterwards the file names in the patch). As the baseline for v4l-dvb, I use a snapshot of early march, but I confirmed the relevant files (dib0700_devices.c and dvb-usb-ids.h) are still the same in the current mercurial repository.
I have no experience so far with hg diff, but will try this command next time.

Cheers,
Hans-Frieder

Quoted 40 lines

Perfect!! it seems great, now I will check it (sorry, I was very busy last two days). I also will add support for Felix's card and the two cards I have pending (just add device id and small modifications), so it will be easier for patrick to add the different patches to the current source. Just one comment, how you generated the patch? because mauro suggested it's better to use hg diff. In a minutes I will send the modified patch (I hope it will be the last version).

Albert

2008/3/21, Hans-Frieder Vogt <[email protected]>:

Quoted 28 lines

Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add
the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect,
though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that
checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other
areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line?
Thanks very much.

Hans-Frieder

--

--
Hans-Frieder Vogt e-mail: hfvogt <at> gmx .dot. net

Signature · 7 lines
--
Hans-Frieder Vogt                 e-mail: hfvogt <at> gmx .dot. net

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#3 lore raw
In reply to Albert Comerma

Hey Hans, I'm spending some time, because right now I've not been able to make my card working with your patch. Everything seems ok, but no channels detected and no video at all... strange. Did you checked that it was working ok?

2008/3/21, Albert Comerma <[email protected]>:

Quoted 9 lines

Perfect!! it seems great, now I will check it (sorry, I was very busy last two days). I also will add support for Felix's card and the two cards I have pending (just add device id and small modifications), so it will be easier for patrick to add the different patches to the current source. Just one comment, how you generated the patch? because mauro suggested it's better to use hg diff. In a minutes I will send the modified patch (I hope it will be the last version).

Quoted 32 lines

Albert

2008/3/21, Hans-Frieder Vogt <[email protected]>:

Quoted 28 lines

Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add
the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect,
though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that
checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other
areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line? Thanks very much.

Hans-Frieder

--

--
Hans-Frieder Vogt e-mail: hfvogt <at> gmx .dot. net

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#4 lore raw

Finally I found it; I have to keep this on xc2028 callback or the device will not work; case XC2028_RESET_CLK: break;
Now I will add other cards and resend the patch.

Albert

2008/3/21, Albert Comerma <[email protected]>:

Quoted 49 lines

Hey Hans, I'm spending some time, because right now I've not been able to make my card working with your patch. Everything seems ok, but no channels detected and no video at all... strange. Did you checked that it was working ok?

2008/3/21, Albert Comerma <[email protected]>:

Quoted 41 lines

Perfect!! it seems great, now I will check it (sorry, I was very busy last two days). I also will add support for Felix's card and the two cards I have pending (just add device id and small modifications), so it will be easier for patrick to add the different patches to the current source. Just one comment, how you generated the patch? because mauro suggested it's better to use hg diff. In a minutes I will send the modified patch (I hope it will be the last version).

Albert

2008/3/21, Hans-Frieder Vogt <[email protected]>:

Quoted 28 lines

Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add
the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect,
though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that
checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other
areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line? Thanks very much.

Hans-Frieder

--

--
Hans-Frieder Vogt e-mail: hfvogt <at> gmx .dot. net

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#5 lore raw

Albert,

I am really sorry. It seems I was over-active here. Strange enough the Cinergy gives an output even without the XC2028_RESET_CLK case. However, what I did not realise first, without the reset case the picture was stuttering. Thanks for spotting this bug.

Cheers,
Hans-Frieder

Quoted 32 lines

Finally I found it; I have to keep this on xc2028 callback or the device will not work; case XC2028_RESET_CLK: break; Now I will add other cards and resend the patch.

Albert

2008/3/21, Albert Comerma <[email protected]>:
Hey Hans, I'm spending some time, because right now I've not been able to make my card working with your patch. Everything seems ok, but no channels detected and no video at all... strange. Did you checked that it was working ok?

2008/3/21, Albert Comerma <[email protected]>:
Perfect!! it seems great, now I will check it (sorry, I was very busy last two days). I also will add support for Felix's card and the two cards I have pending (just add device id and small modifications), so it will be easier for patrick to add the different patches to the current source. Just one comment, how you generated the patch? because mauro suggested it's better to use hg diff. In a minutes I will send the modified patch (I hope it will be the last version).

Albert

2008/3/21, Hans-Frieder Vogt <[email protected]>:
Hi Albert,

I have slightly changed the stk7700ph_frontend_attach GPIO sequence to be in line with the Windows behaviour and also add the demod-value in stk7700ph_xc3028_ctrl, to make the driver load the right SCODE file (which seems to have no effect, though). Also, I removed the unused and unneeded xc3028_bw_config_12mhz structure.
In addition, I followed Mauro's request for coding style changes and also add some more kernel style changes that checkpatch highlighted (I only introduced changes where they seemed sensible, there are many, many other areas in the file dib0700_devices.c where it does not follow the strict coding guidelines as well).

Can you please confirm that I included your changes for the Pinnacle 320cx correctly and perhaps also add a signoff-line? Thanks very much.

Hans-Frieder

--

--
Hans-Frieder Vogt                 e-mail: hfvogt <at> gmx .dot. net

Signature · 7 lines
--
Hans-Frieder Vogt                 e-mail: hfvogt <at> gmx .dot. net

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb