Linux Media Controller development
 help / color / mirror / Atom feed
* Typo in dib0700_devices.c
@ 2011-04-01 23:44 Dr. David Alan Gilbert
  0 siblings, 0 replies; only message in thread
From: Dr. David Alan Gilbert @ 2011-04-01 23:44 UTC (permalink / raw)
  To: olivier.grenie, patrick.boettcher, mchehab; +Cc: linux-media

Hi,
  sparse lead me to what looks like a typo in dib0700_devices.c:

drivers/media/dvb/dvb-usb/dib0700_devices.c:2160:18: warning: Initializer entry defined twice
drivers/media/dvb/dvb-usb/dib0700_devices.c:2165:18:   also defined here

2160            .agc1_pt1       = 0,      
                .agc1_pt2       = 0,
                .agc1_pt3       = 98,
                .agc1_slope1    = 0,
                .agc1_slope2    = 167,
2165            .agc1_pt1       = 98,
                .agc2_pt2       = 255,

Note the line 2165 says .agc1_pt1 - I believe that should be
agc*2*_pt1 (without knowing anything at all about your hardware!)

The last thing that changed that was Olivier's patch
b4d6046e841955be9cc49164b03b91c9524f9c2e

which was just a tidy up, but it had:

-               .agc1_pt1       = 98,     // agc2_pt1

....

+               .agc1_pt1       = 98,

Note the mismatch of the comment.

(I haven't got this hardware to test on - but if you've been having
some weird AGC issues on that card it might explain it!)

Dave 

-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-02  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 23:44 Typo in dib0700_devices.c Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox