diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2011-09-06 08:31:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-06 13:21:42 -0400 |
commit | 77eed219fed5a913f59329cc846420fdeab0150f (patch) | |
tree | abcbcb0a970fb7b81efb11e229151adce78e166b /drivers/media/dvb/dvb-usb/ec168.c | |
parent | 4c66c9205c0788e18eb09d482461aa2f551ee046 (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/ec168.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/ec168.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/ec168.c b/drivers/media/dvb/dvb-usb/ec168.c index 581bdfc0b1ff..78442fe4aa5e 100644 --- a/drivers/media/dvb/dvb-usb/ec168.c +++ b/drivers/media/dvb/dvb-usb/ec168.c | |||
@@ -200,9 +200,9 @@ static struct ec100_config ec168_ec100_config = { | |||
200 | static int ec168_ec100_frontend_attach(struct dvb_usb_adapter *adap) | 200 | static int ec168_ec100_frontend_attach(struct dvb_usb_adapter *adap) |
201 | { | 201 | { |
202 | deb_info("%s:\n", __func__); | 202 | deb_info("%s:\n", __func__); |
203 | adap->fe[0] = dvb_attach(ec100_attach, &ec168_ec100_config, | 203 | adap->fe_adap[0].fe = dvb_attach(ec100_attach, &ec168_ec100_config, |
204 | &adap->dev->i2c_adap); | 204 | &adap->dev->i2c_adap); |
205 | if (adap->fe[0] == NULL) | 205 | if (adap->fe_adap[0].fe == NULL) |
206 | return -ENODEV; | 206 | return -ENODEV; |
207 | 207 | ||
208 | return 0; | 208 | return 0; |
@@ -228,7 +228,7 @@ static struct mxl5005s_config ec168_mxl5003s_config = { | |||
228 | static int ec168_mxl5003s_tuner_attach(struct dvb_usb_adapter *adap) | 228 | static int ec168_mxl5003s_tuner_attach(struct dvb_usb_adapter *adap) |
229 | { | 229 | { |
230 | deb_info("%s:\n", __func__); | 230 | deb_info("%s:\n", __func__); |
231 | return dvb_attach(mxl5005s_attach, adap->fe[0], &adap->dev->i2c_adap, | 231 | return dvb_attach(mxl5005s_attach, adap->fe_adap[0].fe, &adap->dev->i2c_adap, |
232 | &ec168_mxl5003s_config) == NULL ? -ENODEV : 0; | 232 | &ec168_mxl5003s_config) == NULL ? -ENODEV : 0; |
233 | } | 233 | } |
234 | 234 | ||
@@ -382,6 +382,8 @@ static struct dvb_usb_device_properties ec168_properties = { | |||
382 | .num_adapters = 1, | 382 | .num_adapters = 1, |
383 | .adapter = { | 383 | .adapter = { |
384 | { | 384 | { |
385 | .num_frontends = 1, | ||
386 | .fe = {{ | ||
385 | .streaming_ctrl = ec168_streaming_ctrl, | 387 | .streaming_ctrl = ec168_streaming_ctrl, |
386 | .frontend_attach = ec168_ec100_frontend_attach, | 388 | .frontend_attach = ec168_ec100_frontend_attach, |
387 | .tuner_attach = ec168_mxl5003s_tuner_attach, | 389 | .tuner_attach = ec168_mxl5003s_tuner_attach, |
@@ -395,6 +397,7 @@ static struct dvb_usb_device_properties ec168_properties = { | |||
395 | } | 397 | } |
396 | } | 398 | } |
397 | }, | 399 | }, |
400 | }}, | ||
398 | } | 401 | } |
399 | }, | 402 | }, |
400 | 403 | ||