fix dsp for rk2818
author邓训金 <dxj@rock-chips.com>
Mon, 23 Aug 2010 09:45:37 +0000 (17:45 +0800)
committer邓训金 <dxj@rock-chips.com>
Mon, 23 Aug 2010 09:45:37 +0000 (17:45 +0800)
drivers/staging/rk2818/rk2818_dsp/rk2818_dsp.c

index 06143994e805a3dff7d7af59fde7ce5cf9cc9fd7..f6170cf9f9df409feedc4e28c83ac35516a1b5d8 100755 (executable)
@@ -50,6 +50,8 @@
        #define dspprintk(msg...)
 #endif
 
+#define CONFIG_CHIP_RK2818 1 //the 32 kernel for rk2818
+
 #define USE_PLL_REG            0               //ÊÇ·ñÖ±½Ó¿ØÖÆPLL¼Ä´æÆ÷
 #define ENTER_SLOW             0               //ÊÇ·ñ²»Ê¹ÓÃDSPµÄʱºòÁ¢¼´½øÈëSLOW MODE(DSP PLL BYPASS)
 #define FIXED_REQ              560             //ʹÓù̶¨ÆµÂÊÖµ, 0Ϊ½ûÓÃ
@@ -169,6 +171,8 @@ static int rcv_quit = 0;
 
 void dsp_powerctl(int ctl, int arg);
 
+static int video_type = 0;//h264:1 ,rv40:2 , other: 0.
+
 //need reset reg value when finishing the video play
 static void resetRegValueForVideo()
 {