service.c
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- /*****************************************************************************
- File name: service.c
- Description: service specific configuration.
- COPYRIGHT (C) STMicroelectronics 2004
- *****************************************************************************/
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h"
- #include "sttbx.h"
- #include "staudlt.h"
- #include "sttuner.h"
- #include "service.h"
- /* Private Types ------------------------------------------------------ */
- /* Private Constants -------------------------------------------------- */
- /* Private Variables -------------------------------------------------- */
- /* Private Macros ----------------------------------------------------- */
- /* Private Function prototypes ---------------------------------------- */
- /* Functions --------------------------------------------------------------- */
- /*-------------------------------------------------------------------------
- * Function : KB_ServiceAUDInitPara
- * Input : mode DVB
- * Output :
- * Return : ST_ERROR_BAD_PARAMETER if service not supported
- * ----------------------------------------------------------------------*/
- ST_ErrorCode_t KB_ServiceAUDInitPara(KB_ServiceMode SERVICE_Mode,
- STAUD_InitParams_t *STAUD_InitParams_p,
- STAUD_BroadcastProfile_t *STAUD_BroadcastProfile_p)
- {
- switch(SERVICE_Mode)
- {
- case SERVICE_MODE_DVB:
- STAUD_InitParams_p->Configuration = STAUD_CONFIG_DVB_COMPACT;
- *STAUD_BroadcastProfile_p = STAUD_BROADCAST_DVB;
- break;
- default:
- STTBX_Print(("KB_ServiceAUDInitPara: unknown service %d.n", SERVICE_Mode));
- return( ST_ERROR_BAD_PARAMETER );
- }
- return( ST_NO_ERROR );
- }
- /* EOF --------------------------------------------------------------------- */