aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-mpeg.c')
-rw-r--r--drivers/media/video/cx88/cx88-mpeg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c
index 6aba7af9160a..499f8d512ad6 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -599,13 +599,22 @@ struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board
599static int cx8802_request_acquire(struct cx8802_driver *drv) 599static int cx8802_request_acquire(struct cx8802_driver *drv)
600{ 600{
601 struct cx88_core *core = drv->core; 601 struct cx88_core *core = drv->core;
602 unsigned int i;
602 603
603 /* Fail a request for hardware if the device is busy. */ 604 /* Fail a request for hardware if the device is busy. */
604 if (core->active_type_id != CX88_BOARD_NONE && 605 if (core->active_type_id != CX88_BOARD_NONE &&
605 core->active_type_id != drv->type_id) 606 core->active_type_id != drv->type_id)
606 return -EBUSY; 607 return -EBUSY;
607 608
608 core->input = CX88_VMUX_DVB; 609 core->input = 0;
610 for (i = 0;
611 i < (sizeof(core->board.input) / sizeof(struct cx88_input));
612 i++) {
613 if (core->board.input[i].type == CX88_VMUX_DVB) {
614 core->input = i;
615 break;
616 }
617 }
609 618
610 if (drv->advise_acquire) 619 if (drv->advise_acquire)
611 { 620 {