aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/gp8psk-fe.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-15 15:49:56 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-15 15:49:56 -0500
commit122804ecb59493fbb4d31b3ba9ac59faaf45276f (patch)
treecff4d8a158c412e4a8d3abc8d91bb0eb52b01c9a /drivers/media/dvb/dvb-usb/gp8psk-fe.c
parent16008d641670571ff4cd750b416c7caf2d89f467 (diff)
parent126400033940afb658123517a2e80eb68259fbd7 (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits) [media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver mb86a20s: Add a few more register settings at the init seq mb86a20s: Group registers into the same line [media] [PATCH] don't reset the delivery system on DTV_CLEAR [media] [BUG] it913x-fe fix typo error making SNR levels unstable [media] cx23885: Query the CX25840 during enum_input for status [media] cx25840: Add support for g_input_status [media] rc-videomate-m1f.c Rename to match remote controler name [media] drivers: media: au0828: Fix dependency for VIDEO_AU0828 [media] convert drivers/media/* to use module_platform_driver() [media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB [media] Exynos4 JPEG codec v4l2 driver [media] doc: v4l: selection: choose pixels as units for selection rectangles [media] v4l: s5p-tv: mixer: fix setup of VP scaling [media] v4l: s5p-tv: mixer: add support for selection API [media] v4l: emulate old crop API using extended crop/compose API [media] doc: v4l: add documentation for selection API [media] doc: v4l: add binary images for selection API [media] v4l: add support for selection api [media] hd29l2: fix review findings ...
Diffstat (limited to 'drivers/media/dvb/dvb-usb/gp8psk-fe.c')
-rw-r--r--drivers/media/dvb/dvb-usb/gp8psk-fe.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/drivers/media/dvb/dvb-usb/gp8psk-fe.c b/drivers/media/dvb/dvb-usb/gp8psk-fe.c
index 5426267980c7..67957dd99ede 100644
--- a/drivers/media/dvb/dvb-usb/gp8psk-fe.c
+++ b/drivers/media/dvb/dvb-usb/gp8psk-fe.c
@@ -113,28 +113,12 @@ static int gp8psk_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_front
113 return 0; 113 return 0;
114} 114}
115 115
116static int gp8psk_fe_set_property(struct dvb_frontend *fe, 116static int gp8psk_fe_set_frontend(struct dvb_frontend *fe)
117 struct dtv_property *tvp)
118{
119 deb_fe("%s(..)\n", __func__);
120 return 0;
121}
122
123static int gp8psk_fe_get_property(struct dvb_frontend *fe,
124 struct dtv_property *tvp)
125{
126 deb_fe("%s(..)\n", __func__);
127 return 0;
128}
129
130
131static int gp8psk_fe_set_frontend(struct dvb_frontend* fe,
132 struct dvb_frontend_parameters *fep)
133{ 117{
134 struct gp8psk_fe_state *state = fe->demodulator_priv; 118 struct gp8psk_fe_state *state = fe->demodulator_priv;
135 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 119 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
136 u8 cmd[10]; 120 u8 cmd[10];
137 u32 freq = fep->frequency * 1000; 121 u32 freq = c->frequency * 1000;
138 int gp_product_id = le16_to_cpu(state->d->udev->descriptor.idProduct); 122 int gp_product_id = le16_to_cpu(state->d->udev->descriptor.idProduct);
139 123
140 deb_fe("%s()\n", __func__); 124 deb_fe("%s()\n", __func__);
@@ -342,9 +326,9 @@ success:
342 326
343 327
344static struct dvb_frontend_ops gp8psk_fe_ops = { 328static struct dvb_frontend_ops gp8psk_fe_ops = {
329 .delsys = { SYS_DVBS },
345 .info = { 330 .info = {
346 .name = "Genpix DVB-S", 331 .name = "Genpix DVB-S",
347 .type = FE_QPSK,
348 .frequency_min = 800000, 332 .frequency_min = 800000,
349 .frequency_max = 2250000, 333 .frequency_max = 2250000,
350 .frequency_stepsize = 100, 334 .frequency_stepsize = 100,
@@ -366,8 +350,6 @@ static struct dvb_frontend_ops gp8psk_fe_ops = {
366 .init = NULL, 350 .init = NULL,
367 .sleep = NULL, 351 .sleep = NULL,
368 352
369 .set_property = gp8psk_fe_set_property,
370 .get_property = gp8psk_fe_get_property,
371 .set_frontend = gp8psk_fe_set_frontend, 353 .set_frontend = gp8psk_fe_set_frontend,
372 354
373 .get_tune_settings = gp8psk_fe_get_tune_settings, 355 .get_tune_settings = gp8psk_fe_get_tune_settings,