[PATCH] cx88-dvb: fix nxt200x rf input switching
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 24 Mar 2007 17:21:53 +0000 (13:21 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 24 Mar 2007 23:49:22 +0000 (16:49 -0700)
After dvb tuner refactoring, the pllbuff has been altered such that the pll
address is now stored in buf[0].  Instead of sending buf to set_pll_input,
we should send buf+1.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Ivan Andrewjeski <ivan@fiero-gt.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/dvb/frontends/nxt200x.c

index 87c286ee6a00a2dbef8094ad1174a45debb1b320..b809f83d95635762b3de7103c4224826acafa537 100644 (file)
@@ -562,7 +562,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
 
                        /* set input */
                        if (state->config->set_pll_input)
-                               state->config->set_pll_input(buf, 1);
+                               state->config->set_pll_input(buf+1, 1);
                        break;
                case VSB_8:
                        /* Set non-punctured clock for VSB */
@@ -571,7 +571,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
 
                        /* set input */
                        if (state->config->set_pll_input)
-                               state->config->set_pll_input(buf, 0);
+                               state->config->set_pll_input(buf+1, 0);
                        break;
                default:
                        return -EINVAL;