On Mon, Nov 28, 2011 at 3:53 AM, Alessandro Miceli
<angelofsky1...@gmail.com> wrote:
> Here is the patch to support the Sundtek SkyTV Ultimate device.
> It's a USB DVB-S/S2 device based on Empia chipset 28174 + NXP TDA 10071.
> Device tested with success on Intel Core i5, Ubuntu 11.10, Kernel
> 3.0.0, Kaffeine and latest media_build env.
> The hardware profile of Sundtek device seems a clone of PCTV 460e
> already supported by LinuxTV.
>
> Signed-off-by: Alessandro Miceli <angelofsky1...@gmail.com>
>
> diff -uprN orig/drivers/media/video/em28xx//em28xx-cards.c
> linux/drivers/media/video/em28xx//em28xx-cards.c
> --- orig/drivers/media/video/em28xx//em28xx-cards.c    2011-11-25
> 05:45:29.000000000 +0100
> +++ linux/drivers/media/video/em28xx//em28xx-cards.c    2011-11-27
> 20:36:24.626783803 +0100
> @@ -1888,6 +1888,14 @@ struct em28xx_board em28xx_boards[] = {
>         .has_dvb       = 1,
>         .ir_codes      = RC_MAP_PINNACLE_PCTV_HD,
>     },
> +    [EM2884_BOARD_SUNDTEK_DVBS2] = {
> +                .i2c_speed     = EM2874_I2C_SECONDARY_BUS_SELECT |
> +                        EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ,
> +                .name          = "Sundtek SkyTV Ultimate",
> +                .tuner_type    = TUNER_ABSENT,
> +                .tuner_gpio    = pctv_460e,
> +                .has_dvb       = 1,
> +        },
>  };
>  const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
>
> @@ -2027,6 +2035,8 @@ struct usb_device_id em28xx_id_table[] =
>             .driver_info = EM28174_BOARD_PCTV_460E },
>     { USB_DEVICE(0x2040, 0x1605),
>             .driver_info = EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C },
> +        { USB_DEVICE(0xeb1a, 0x51be),
> +                        .driver_info = EM2884_BOARD_SUNDTEK_DVBS2 },
>     { },
>  };
>  MODULE_DEVICE_TABLE(usb, em28xx_id_table);
> diff -uprN orig/drivers/media/video/em28xx//em28xx-dvb.c
> linux/drivers/media/video/em28xx//em28xx-dvb.c
> --- orig/drivers/media/video/em28xx//em28xx-dvb.c    2011-11-25
> 05:45:29.000000000 +0100
> +++ linux/drivers/media/video/em28xx//em28xx-dvb.c    2011-11-27
> 20:45:08.738805535 +0100
> @@ -936,6 +936,11 @@ static int em28xx_dvb_init(struct em28xx
>                sizeof(dvb->fe[0]->ops.tuner_ops));
>
>         break;
> +    case EM2884_BOARD_SUNDTEK_DVBS2:
> +                /* attach demod */
> +                dvb->fe[0] = dvb_attach(tda10071_attach,
> +                        &em28xx_tda10071_config, &dev->i2c_adap);
> +                break;
>     case EM28174_BOARD_PCTV_460E:
>         /* attach demod */
>         dvb->fe[0] = dvb_attach(tda10071_attach,
> diff -uprN orig/drivers/media/video/em28xx//em28xx.h
> linux/drivers/media/video/em28xx//em28xx.h
> --- orig/drivers/media/video/em28xx//em28xx.h    2011-11-25
> 05:45:29.000000000 +0100
> +++ linux/drivers/media/video/em28xx//em28xx.h    2011-11-27
> 20:35:34.286781718 +0100
> @@ -124,6 +124,7 @@
>  #define EM28174_BOARD_PCTV_460E                   80
>  #define EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C      81
>  #define EM2884_BOARD_CINERGY_HTC_STICK          82
> +#define EM2884_BOARD_SUNDTEK_DVBS2          84
>
>  /* Limits minimum and default number of buffers */
>  #define EM28XX_MIN_BUF 4

This might only work with Rev 1 of the device Rev 2 - 4 definitely
won't work with that.
Revision 5 uses a completely different demodulator and will only cause
errors with this.
And by far it's no clone of the other device the circuits are totally different.
If you insist on supporting our devices don't load it as default only
people who have the
first rev. with bad sensitivity should use it.

Not accepted because of that.

Best Regards,
Markus

> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to