diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 09:22:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:30 -0500 |
commit | e0f0b37a3e624440b1b0e8a5978b367895226e75 (patch) | |
tree | 98135357e75ca922b093996b3e5a15d68978c8f0 /drivers/media/video/tuner-xc2028.h | |
parent | 59a636e50f339f91880b3a1e395829c43cc6541a (diff) |
V4L/DVB (6646): xc2028: rework firmware (re)loading process
Define a list of valid "firmware types" for each combination of BASE,
DTV and SCODEs. By masking the appropriate firmware bits off we can
just use one "type" for the firmware searching and also flag when we
are looking for a BASE, DTV or SCODE type firmware. This makes it
much easier to track if we need to change device modes or flash an
individual firmware part.
Add a structure to remember what firmware properties we have. This
contains the currently loaded/wanted base firmware (type), video std
(id), video std requested (std_req), scode file and number in use.
Incorporate said structure into the tuner private data.
When checking whether the current firmware needs to be reloaded, first
figure out exactly what "type" of firmware we want (base, std and
scode), and then proceed to load the appropriate matching base,
std-specific and scode records iff there are any changes required.
This removes guesswork from the process because we no longer need to
individually code a check for every tuning parameter's interactions.
Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.h')
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index 4edc4b735c84..16259b14ce90 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -21,6 +21,7 @@ struct xc2028_ctrl { | |||
21 | char *fname; | 21 | char *fname; |
22 | int max_len; | 22 | int max_len; |
23 | int d2633:1; | 23 | int d2633:1; |
24 | unsigned int scode_table; | ||
24 | }; | 25 | }; |
25 | 26 | ||
26 | struct xc2028_config { | 27 | struct xc2028_config { |