Skip to content

Commit

Permalink
V4L/DVB (6645): xc2028: allow selection of D2633 firmware
Browse files Browse the repository at this point in the history
Add a bit to select D2633 DTV firmware to struct xc2028_ctrl, so that it can
be enabled via .set_config.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent d7b22c5 commit 59a636e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,10 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode,
tuner_dbg("I should change bandwidth %u\n", change_digital_bandwidth);

if (change_digital_bandwidth) {

/*FIXME: Should allow selecting between D2620 and D2633 */
type |= D2620;
if (priv->ctrl.d2633)
type |= D2633;
else
type |= D2620;

/* FIXME: When should select a DTV78 firmware?
*/
Expand Down
1 change: 1 addition & 0 deletions drivers/media/video/tuner-xc2028.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct xc2028_ctrl {
enum xc2028_firm_type type;
char *fname;
int max_len;
int d2633:1;
};

struct xc2028_config {
Expand Down

0 comments on commit 59a636e

Please sign in to comment.