mirror of
				https://github.com/nyanmisaka/mpp.git
				synced 2025-10-31 20:42:53 +08:00 
			
		
		
		
	 2f2e4224b9
			
		
	
	2f2e4224b9
	
	
	
		
			
			1. Move codec_type detection code to vcodec_service. Only vcodec_service needs to detect vcodec_type. Mpp_service will report this flag from kernel. 2. Remove kernel device detection code when soc type not detected. 3. Add mpp_soc.h for soc definition. Change-Id: Ic83897bddbcf0fceb0c5d19a05491f75231092c1 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright 2020 Rockchip Electronics Co. LTD
 | |
|  *
 | |
|  * Licensed under the Apache License, Version 2.0 (the "License");
 | |
|  * you may not use this file except in compliance with the License.
 | |
|  * You may obtain a copy of the License at
 | |
|  *
 | |
|  *      http://www.apache.org/licenses/LICENSE-2.0
 | |
|  *
 | |
|  * Unless required by applicable law or agreed to in writing, software
 | |
|  * distributed under the License is distributed on an "AS IS" BASIS,
 | |
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|  * See the License for the specific language governing permissions and
 | |
|  * limitations under the License.
 | |
|  */
 | |
| 
 | |
| #ifndef __MPP_SOC__
 | |
| #define __MPP_SOC__
 | |
| 
 | |
| #include "rk_type.h"
 | |
| 
 | |
| /* Do NOT use this outside MPP it may be changed in new version */
 | |
| typedef enum RockchipSocType_e {
 | |
|     ROCKCHIP_SOC_AUTO,
 | |
|     ROCKCHIP_SOC_RK3036,
 | |
|     ROCKCHIP_SOC_RK3066,
 | |
|     ROCKCHIP_SOC_RK3188,
 | |
|     ROCKCHIP_SOC_RK3288,
 | |
|     ROCKCHIP_SOC_RK312X,
 | |
|     ROCKCHIP_SOC_RK3368,
 | |
|     ROCKCHIP_SOC_RK3399,
 | |
|     ROCKCHIP_SOC_RK3228H,
 | |
|     ROCKCHIP_SOC_RK3328,
 | |
|     ROCKCHIP_SOC_RK3228,
 | |
|     ROCKCHIP_SOC_RK3229,
 | |
|     ROCKCHIP_SOC_RV1108,
 | |
|     ROCKCHIP_SOC_RV1109,
 | |
|     ROCKCHIP_SOC_RV1126,
 | |
|     ROCKCHIP_SOC_RK3326,
 | |
|     ROCKCHIP_SOC_RK3128H,
 | |
|     ROCKCHIP_SOC_PX30,
 | |
|     ROCKCHIP_SOC_RK1808,
 | |
|     ROCKCHIP_SOC_RK3566,
 | |
|     ROCKCHIP_SOC_RK3568,
 | |
|     ROCKCHIP_SOC_BUTT,
 | |
| } RockchipSocType;
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| RockchipSocType mpp_get_soc_type(void);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /*__MPP_SOC__*/
 |