Skip to content

Commit

Permalink
[media] ngene: separate demodulator and tuner attach
Browse files Browse the repository at this point in the history
Previously, demodulator and tuner attach was done in the
demod_attach callback. Migrate the tuner part in the
tuner_attach callback in ngene_info to do thing in right place.

Signed-off-by: Patrice Chotard <patricechotard@free.fr>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Patrice Chotard authored and Mauro Carvalho Chehab committed Dec 27, 2012
1 parent e7c953d commit 36a495a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/media/pci/ngene/ngene-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@ static int demod_attach_drxd(struct ngene_channel *chan)
pr_err("No DRXD found!\n");
return -ENODEV;
}
return 0;
}

static int tuner_attach_dtt7520x(struct ngene_channel *chan)
{
struct drxd_config *feconf;

feconf = chan->dev->card_info->fe_config[chan->number];

if (!dvb_attach(dvb_pll_attach, chan->fe, feconf->pll_address,
&chan->i2c_adapter,
Expand Down

0 comments on commit 36a495a

Please sign in to comment.