[linux-dvb] Re: Patch for Yuan PD300 mini

Michael Krufky mkrufky at linuxtv.org
Tue Oct 10 03:58:31 CEST 2006


On 10/8/06, Gunther Mayer <gunther.mayer at gmx.net> wrote:
> Ben Woods wrote:
> > This patch fixes the cold boot id for the Yuan PD300 mini USB pen.
> > It can be applied with the following command from within the v4l-dvb
> > directory:
> > patch -p1 < /path/to/yuan.patch
> >
> > When using this card, you need to have the dvb-usb-wt220u-02.fw
> > firmware file in the correct directory (eg. /lib/firmware/`uname
> > -r`/).
> >
> > Can this patch be tested by folk and then hopefully applied?
> No. Your patch breaks cards with ID 0x222.

Ben Woods wrote:
> Ok - i see.
> 
> Is there anyway we can include the correct cold boot id for my device
> without breaking it for other devices? mkrufky - you were quite
> helpful with this once before... any ideas?

It's rather simple, actually.  Rather than replacing the current pid with yours, what you need to do
is add an additional pid to dvb-usb-ids.h.  Then add the new id's to the driver's usb table, reference
them in the device properties, and increase num_device_descs.

For example, the changeset in the following link does just what you're trying to do now, but with a
different device:

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ac9ffb90b8d0d28e3d9e5b5a045ee870a6269b5f

In your case, you are creating a new entry, using 0x220 as the cold id, and 0x221 as the warm id.  Since
that warm idea is already recognized by the driver, you only have to add the missing cold id.

Your patch should look very similar to the one in the link above.

Hope this helps,

Mike



More information about the linux-dvb mailing list