aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/au6610.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2011-09-06 08:31:57 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-06 13:21:42 -0400
commit77eed219fed5a913f59329cc846420fdeab0150f (patch)
treeabcbcb0a970fb7b81efb11e229151adce78e166b /drivers/media/dvb/dvb-usb/au6610.c
parent4c66c9205c0788e18eb09d482461aa2f551ee046 (diff)
[media] dvb-usb: refactor MFE code for individual streaming config per frontend
refactor MFE code to allow for individual streaming configuration for each frontend Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Reviewed-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/au6610.c')
-rw-r--r--drivers/media/dvb/dvb-usb/au6610.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/au6610.c b/drivers/media/dvb/dvb-usb/au6610.c
index ebe6e1ffc319..b77994967b9b 100644
--- a/drivers/media/dvb/dvb-usb/au6610.c
+++ b/drivers/media/dvb/dvb-usb/au6610.c
@@ -140,9 +140,9 @@ static struct zl10353_config au6610_zl10353_config = {
140 140
141static int au6610_zl10353_frontend_attach(struct dvb_usb_adapter *adap) 141static int au6610_zl10353_frontend_attach(struct dvb_usb_adapter *adap)
142{ 142{
143 adap->fe[0] = dvb_attach(zl10353_attach, &au6610_zl10353_config, 143 adap->fe_adap[0].fe = dvb_attach(zl10353_attach, &au6610_zl10353_config,
144 &adap->dev->i2c_adap); 144 &adap->dev->i2c_adap);
145 if (adap->fe[0] == NULL) 145 if (adap->fe_adap[0].fe == NULL)
146 return -ENODEV; 146 return -ENODEV;
147 147
148 return 0; 148 return 0;
@@ -155,7 +155,7 @@ static struct qt1010_config au6610_qt1010_config = {
155static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap) 155static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
156{ 156{
157 return dvb_attach(qt1010_attach, 157 return dvb_attach(qt1010_attach,
158 adap->fe[0], &adap->dev->i2c_adap, 158 adap->fe_adap[0].fe, &adap->dev->i2c_adap,
159 &au6610_qt1010_config) == NULL ? -ENODEV : 0; 159 &au6610_qt1010_config) == NULL ? -ENODEV : 0;
160} 160}
161 161
@@ -204,6 +204,8 @@ static struct dvb_usb_device_properties au6610_properties = {
204 .num_adapters = 1, 204 .num_adapters = 1,
205 .adapter = { 205 .adapter = {
206 { 206 {
207 .num_frontends = 1,
208 .fe = {{
207 .frontend_attach = au6610_zl10353_frontend_attach, 209 .frontend_attach = au6610_zl10353_frontend_attach,
208 .tuner_attach = au6610_qt1010_tuner_attach, 210 .tuner_attach = au6610_qt1010_tuner_attach,
209 211
@@ -219,6 +221,7 @@ static struct dvb_usb_device_properties au6610_properties = {
219 } 221 }
220 } 222 }
221 }, 223 },
224 }},
222 } 225 }
223 }, 226 },
224 227