V4L/DVB (13975): [STV090x] Added internal structure with shared settings and data.
commit97f7a2ae1a8a1e44a481456375efced75210e5eb
authorAndreas Regel <andreas.regel@gmx.de>
Tue, 5 Jan 2010 22:19:43 +0000 (5 19:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:36 +0000 (26 15:10 -0300)
tree0acc51538d65350219254dc06af3e2dc66f82520
parentb79c6df705e02b5dcb0e9360a15b28373813fec1
V4L/DVB (13975): [STV090x] Added internal structure with shared settings and data.

As the STV0900 features two demodulation paths in one chip there is
some information used by both instances of the driver when used in
dual mode. This information is now shared in an internal structure
referenced by I2C adapter and address.

Do initialisation of the demodulator only once when used in dual mode.
Moved global mutex demod_lock to internal structure.
Moved dev_ver and mclk to internal structure.
Removed unused tuner_refclk from stv090x_state.

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv090x.c
drivers/media/dvb/frontends/stv090x.h
drivers/media/dvb/frontends/stv090x_priv.h
drivers/media/dvb/ttpci/budget.c