[media] af9035: move device configuration to the state
Fixes most problems when having more than one device connected
as demod and tuner configurations are not shared.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/dvb/dvb-usb/af9035.h b/drivers/media/dvb/dvb-usb/af9035.h
index 27a484b..262cc3f 100644
--- a/drivers/media/dvb/dvb-usb/af9035.h
+++ b/drivers/media/dvb/dvb-usb/af9035.h
@@ -26,6 +26,11 @@
#define DVB_USB_LOG_PREFIX "af9035"
#include "dvb-usb.h"
+#include "af9033.h"
+#include "tua9001.h"
+#include "fc0011.h"
+#include "mxl5007t.h"
+#include "tda18218.h"
struct reg_val {
u32 reg;
@@ -47,9 +52,11 @@
u8 *rbuf;
};
-struct config {
+struct state {
bool dual_mode;
bool hw_not_supported;
+
+ struct af9033_config af9033_config[2];
};
u32 clock_lut[] = {