Skip to contentSkip to conversation

rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

PATCH In review Christian Dale 2 participants 4 messages Mar 9, 2015 – Mar 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U.

I have not tested the remote, but it is the Y04G0051 model.

---
 drivers/media/dvb-core/dvb-usb-ids.h    | 1 +
 drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++
 2 files changed, 3 insertions(+)
drivers/media/dvb-core/dvb-usb-ids.h +1 -0
index 80ab8d0..339ee5c 100644
@@ -318,6 +318,7 @@
 #define USB_PID_GRANDTEC_DVBT_USB2_COLD			0x0bc6
 #define USB_PID_GRANDTEC_DVBT_USB2_WARM			0x0bc7
 #define USB_PID_WINFAST_DTV2000DS			0x6a04
+#define USB_PID_WINFAST_DTV2000DS_PLUS			0x6f12
 #define USB_PID_WINFAST_DTV_DONGLE_COLD			0x6025
 #define USB_PID_WINFAST_DTV_DONGLE_WARM			0x6026
 #define USB_PID_WINFAST_DTV_DONGLE_STK7700P		0x6f00
drivers/media/usb/dvb-usb-v2/rtl28xxu.c +2 -0
index 77dcfdf..aa5e58b 100644
@@ -1726,6 +1726,8 @@ static const struct usb_device_id rtl28xxu_id_table[] = {
 		&rtl28xxu_props, "DigitalNow Quad DVB-T Receiver", NULL) },
 	{ DVB_USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV_DONGLE_MINID,
 		&rtl28xxu_props, "Leadtek Winfast DTV Dongle Mini D", NULL) },
+	{ DVB_USB_DEVICE(USB_VID_LEADTEK, USB_PID_WINFAST_DTV2000DS_PLUS,
+		&rtl28xxu_props, "Leadtek WinFast DTV2000DS Plus", RC_MAP_LEADTEK_Y04G0051) },
 	{ DVB_USB_DEVICE(USB_VID_TERRATEC, 0x00d3,
 		&rtl28xxu_props, "TerraTec Cinergy T Stick RC (Rev. 3)", NULL) },
 	{ DVB_USB_DEVICE(USB_VID_DEXATEK, 0x1102,
Signature · 1 line
2.3.2
#1 lore raw
Quoted 4 lines · Christian Dale

Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U.

I have not tested the remote, but it is the Y04G0051 model.

Thanks for doing this Christian. I have one of these cards also, 0x6f12. I wrote the same patch some time ago and it is not working for me. Can you give a few details of what kernel you tested on etc?

I am testing on ubuntu 14.04 LTS

[    0.000000] Linux version 3.13.0-45-generic (buildd@kissel) (gcc

version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #74-Ubuntu SMP Tue Jan 13 19:37:48 UTC 2015 (Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13)

The symptom I have is when I try to tune with 'scan' from dvb-apps, the program wedges and I get this in dmesg:

[  163.138982] fc0013: fc0013_set_params: failed: -22
[  164.246233] fc0013: fc0013_set_params: failed: -22
[  165.167758] fc0013: fc0013_set_params: failed: -22
[  166.250280] fc0013: fc0013_set_params: failed: -22
[  167.196580] fc0013: fc0013_set_params: failed: -22
[  168.286208] fc0013: fc0013_set_params: failed: -22

...

kind regards
Vince

#2 lore raw

I'm currently running on ArchLinux

[    0.000000] Linux version 3.18.6-1-ARCH (cdale@huntsman) (gcc version 4.9.2 20150204 (prerelease) (GCC) ) #2 SMP PREEMPT Sun Mar 8 10:00:24 AEST 2015

On boot the card is detected by the kernel:

[   13.575736] usb 5-1: dvb_usb_v2: found a 'Leadtek WinFast DTV2000DS Plus' in warm state
[   13.625489] usb 5-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[   13.625495] DVB: registering new adapter (Leadtek WinFast DTV2000DS Plus)
[   13.625630] i2c i2c-9: Added multiplexed i2c bus 10
[   13.628355] i2c i2c-9: Added multiplexed i2c bus 11
[   13.628357] usb 5-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[   13.636492] fc0013: Fitipower FC0013 successfully attached.
[   13.639454] media: Linux media interface: v0.10
[   13.642166] Linux video capture interface: v2.00
[   13.645296] usb 5-1: Registered as swradio0
[   13.645298] i2c i2c-9: rtl2832_sdr: Realtek RTL2832 SDR attached
[   13.645299] usb 5-1: rtl2832_sdr: SDR API is still slightly experimental and functionality changes may follow
[   13.680959] Registered IR keymap rc-leadtek-y04g0051
[   13.681023] input: Leadtek WinFast DTV2000DS Plus as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/0000:06:01.2/usb5/5-1/rc/rc0/input18
[   13.681110] rc0: Leadtek WinFast DTV2000DS Plus as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/0000:06:01.2/usb5/5-1/rc/rc0
[   13.681943] IR RC5(x/sz) protocol handler initialized
[   13.681951] IR NEC protocol handler initialized
[   13.682226] IR RC6 protocol handler initialized
[   13.682869] IR Sony protocol handler initialized
[   13.682976] IR JVC protocol handler initialized
[   13.683088] IR SANYO protocol handler initialized
[   13.683643] IR Sharp protocol handler initialized
[   13.684296] usb 5-1: dvb_usb_v2: schedule remote query interval to 400 msecs
[   13.684415] lirc_dev: IR Remote Control driver registered, major 246
[   13.684492] IR XMP protocol handler initialized
[   13.684688] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as /devices/virtual/input/input19
[   13.684996] IR MCE Keyboard/mouse protocol handler initialized
[   13.685031] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0
[   13.685033] IR LIRC bridge handler initialized
[   13.700080] usb 5-1: dvb_usb_v2: 'Leadtek WinFast DTV2000DS Plus' successfully initialized and connected
[   13.700095] usb 5-2: dvb_usb_v2: found a 'Leadtek WinFast DTV2000DS Plus' in warm state
[   13.741247] usb 5-2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[   13.741253] DVB: registering new adapter (Leadtek WinFast DTV2000DS Plus)
[   13.741474] i2c i2c-12: Added multiplexed i2c bus 13
[   13.744120] i2c i2c-12: Added multiplexed i2c bus 14
[   13.744123] usb 5-2: DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))...
[   13.744164] fc0013: Fitipower FC0013 successfully attached.
[   13.744413] usb 5-2: Registered as swradio1
[   13.744415] i2c i2c-12: rtl2832_sdr: Realtek RTL2832 SDR attached
[   13.744416] usb 5-2: rtl2832_sdr: SDR API is still slightly experimental and functionality changes may follow
[   13.751351] Registered IR keymap rc-leadtek-y04g0051
[   13.751403] input: Leadtek WinFast DTV2000DS Plus as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/0000:06:01.2/usb5/5-2/rc/rc1/input20
[   13.751438] rc1: Leadtek WinFast DTV2000DS Plus as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/0000:06:01.2/usb5/5-2/rc/rc1
[   13.751486] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as /devices/virtual/input/input21
[   13.751732] rc rc1: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 1
[   13.751734] usb 5-2: dvb_usb_v2: schedule remote query interval to 400 msecs
[   13.763740] usb 5-2: dvb_usb_v2: 'Leadtek WinFast DTV2000DS Plus' successfully initialized and connected
[   13.763755] usbcore: registered new interface driver dvb_usb_rtl28xxu

Following that, everything just worked when using mythtv. Found all the channels just fine. I haven't played with any SDR stuff yet, though it was something I wanted to look at.

I've just tried to use "scan" now, and I do get a segfault from it. So I might need to take a look at what's going on there.

[252013.059718] scan[20552]: segfault at ffffffff ip 00007fbb2bbf5ca2 sp 00007fffa80956b0 error 4 in libc-2.21.so[7fbb2bbad000+199000]

Kind of useless until I build with some debug symbols...

I do get this error from mythbackend every 5 minutes. Not sure if it's related.

mythbackend[1513]: 2015-03-13 20:05:23.284218 E DVBChan[3](/dev/dvb/adapter1/frontend0): Getting Frontend uncorrected block count failed. mythbackend[1513]: eno: Operation not supported (95)
mythbackend[1513]: 2015-03-13 20:05:23.284225 W DVBSigMon[3](/dev/dvb/adapter1/frontend0): Cannot count Uncorrected Blocks mythbackend[1513]: eno: Operation not supported (95)

Never seen that error happen on adapter0. Only adapter1.

I'm going to play around over the next week and see if I can find out why scan is segfaulting for me.

Christian

Quoted 27 lines · Vincent McIntyre
Quoted 4 lines · Christian Dale

Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U.

I have not tested the remote, but it is the Y04G0051 model.

Thanks for doing this Christian. I have one of these cards also, 0x6f12. I wrote the same patch some time ago and it is not working for me. Can you give a few details of what kernel you tested on etc?

I am testing on ubuntu 14.04 LTS

[    0.000000] Linux version 3.13.0-45-generic (buildd@kissel) (gcc

version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #74-Ubuntu SMP Tue Jan 13 19:37:48 UTC 2015 (Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13)

The symptom I have is when I try to tune with 'scan' from dvb-apps, the program wedges and I get this in dmesg:

[  163.138982] fc0013: fc0013_set_params: failed: -22
[  164.246233] fc0013: fc0013_set_params: failed: -22
[  165.167758] fc0013: fc0013_set_params: failed: -22
[  166.250280] fc0013: fc0013_set_params: failed: -22
[  167.196580] fc0013: fc0013_set_params: failed: -22
[  168.286208] fc0013: fc0013_set_params: failed: -22

...

kind regards
Vince

#3 lore raw
In reply to Vincent McIntyre

I should note, that patch does not work for the 3.18 kernel.
In the driver, rtl2832u_props was updated to rtl28xxu_props in commit 723abfd787f7cccaff89036b8aa14f56a2f7a11a. So you'd need to invert that change for the patch to work against 3.18.

Quoted 27 lines · Vincent McIntyre
Quoted 4 lines · Christian Dale

Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U.

I have not tested the remote, but it is the Y04G0051 model.

Thanks for doing this Christian. I have one of these cards also, 0x6f12. I wrote the same patch some time ago and it is not working for me. Can you give a few details of what kernel you tested on etc?

I am testing on ubuntu 14.04 LTS

[    0.000000] Linux version 3.13.0-45-generic (buildd@kissel) (gcc

version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #74-Ubuntu SMP Tue Jan 13 19:37:48 UTC 2015 (Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13)

The symptom I have is when I try to tune with 'scan' from dvb-apps, the program wedges and I get this in dmesg:

[  163.138982] fc0013: fc0013_set_params: failed: -22
[  164.246233] fc0013: fc0013_set_params: failed: -22
[  165.167758] fc0013: fc0013_set_params: failed: -22
[  166.250280] fc0013: fc0013_set_params: failed: -22
[  167.196580] fc0013: fc0013_set_params: failed: -22
[  168.286208] fc0013: fc0013_set_params: failed: -22

...

kind regards
Vince