aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/bt8xx/dvb-bt8xx.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2006-02-26 22:09:37 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-26 22:09:37 -0500
commitdf5a4f4fd378367db1f48e92f46ce312814cf745 (patch)
treecd83bf68b03594fbc31b40296a0b8e367060eb7f /drivers/media/dvb/bt8xx/dvb-bt8xx.c
parent918c4563d9c0fafce0072ce0962a703ceba8f05d (diff)
V4L/DVB (3392): Do a RESYNC for all cards
After a FIFO corruptions occurrs (generally due to buffer overflow), FIFO contents needs to be discarted. Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r--drivers/media/dvb/bt8xx/dvb-bt8xx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
index f5bfcd2b3803..b8eab69d2c56 100644
--- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
@@ -813,14 +813,14 @@ static int dvb_bt8xx_probe(struct bttv_sub_device *sub)
813 card->gpio_mode = 0x0400c060; 813 card->gpio_mode = 0x0400c060;
814 /* should be: BT878_A_GAIN=0,BT878_A_PWRDN,BT878_DA_DPM,BT878_DA_SBR, 814 /* should be: BT878_A_GAIN=0,BT878_A_PWRDN,BT878_DA_DPM,BT878_DA_SBR,
815 BT878_DA_IOM=1,BT878_DA_APP to enable serial highspeed mode. */ 815 BT878_DA_IOM=1,BT878_DA_APP to enable serial highspeed mode. */
816 card->op_sync_orin = 0; 816 card->op_sync_orin = BT878_RISC_SYNC_MASK;
817 card->irq_err_ignore = 0; 817 card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR;
818 break; 818 break;
819 819
820 case BTTV_BOARD_DVICO_DVBT_LITE: 820 case BTTV_BOARD_DVICO_DVBT_LITE:
821 card->gpio_mode = 0x0400C060; 821 card->gpio_mode = 0x0400C060;
822 card->op_sync_orin = 0; 822 card->op_sync_orin = BT878_RISC_SYNC_MASK;
823 card->irq_err_ignore = 0; 823 card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR;
824 /* 26, 15, 14, 6, 5 824 /* 26, 15, 14, 6, 5
825 * A_PWRDN DA_DPM DA_SBR DA_IOM_DA 825 * A_PWRDN DA_DPM DA_SBR DA_IOM_DA
826 * DA_APP(parallel) */ 826 * DA_APP(parallel) */
@@ -835,15 +835,15 @@ static int dvb_bt8xx_probe(struct bttv_sub_device *sub)
835 case BTTV_BOARD_NEBULA_DIGITV: 835 case BTTV_BOARD_NEBULA_DIGITV:
836 case BTTV_BOARD_AVDVBT_761: 836 case BTTV_BOARD_AVDVBT_761:
837 card->gpio_mode = (1 << 26) | (1 << 14) | (1 << 5); 837 card->gpio_mode = (1 << 26) | (1 << 14) | (1 << 5);
838 card->op_sync_orin = 0; 838 card->op_sync_orin = BT878_RISC_SYNC_MASK;
839 card->irq_err_ignore = 0; 839 card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR;
840 /* A_PWRDN DA_SBR DA_APP (high speed serial) */ 840 /* A_PWRDN DA_SBR DA_APP (high speed serial) */
841 break; 841 break;
842 842
843 case BTTV_BOARD_AVDVBT_771: //case 0x07711461: 843 case BTTV_BOARD_AVDVBT_771: //case 0x07711461:
844 card->gpio_mode = 0x0400402B; 844 card->gpio_mode = 0x0400402B;
845 card->op_sync_orin = BT878_RISC_SYNC_MASK; 845 card->op_sync_orin = BT878_RISC_SYNC_MASK;
846 card->irq_err_ignore = 0; 846 card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR;
847 /* A_PWRDN DA_SBR DA_APP[0] PKTP=10 RISC_ENABLE FIFO_ENABLE*/ 847 /* A_PWRDN DA_SBR DA_APP[0] PKTP=10 RISC_ENABLE FIFO_ENABLE*/
848 break; 848 break;
849 849
@@ -867,8 +867,8 @@ static int dvb_bt8xx_probe(struct bttv_sub_device *sub)
867 867
868 case BTTV_BOARD_PC_HDTV: 868 case BTTV_BOARD_PC_HDTV:
869 card->gpio_mode = 0x0100EC7B; 869 card->gpio_mode = 0x0100EC7B;
870 card->op_sync_orin = 0; 870 card->op_sync_orin = BT878_RISC_SYNC_MASK;
871 card->irq_err_ignore = 0; 871 card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR;
872 break; 872 break;
873 873
874 default: 874 default: