Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36a495a3 authored by Patrice Chotard's avatar Patrice Chotard Committed by Mauro Carvalho Chehab
Browse files

[media] ngene: separate demodulator and tuner attach



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: default avatarPatrice Chotard <patricechotard@free.fr>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e7c953d2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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,