source: svn/newcon3bcm2_21bu/nexus/modules/transport/7552/src/nexus_tsmux.c

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 4.9 KB
Line 
1/***************************************************************************
2 *     (c)2007-2010 Broadcom Corporation
3 *
4 *  This program is the proprietary software of Broadcom Corporation and/or its licensors,
5 *  and may only be used, duplicated, modified or distributed pursuant to the terms and
6 *  conditions of a separate, written license agreement executed between you and Broadcom
7 *  (an "Authorized License").  Except as set forth in an Authorized License, Broadcom grants
8 *  no license (express or implied), right to use, or waiver of any kind with respect to the
9 *  Software, and Broadcom expressly reserves all rights in and to the Software and all
10 *  intellectual property rights therein.  IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU
11 *  HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY
12 *  NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE.
13 *
14 *  Except as expressly set forth in the Authorized License,
15 *
16 *  1.     This program, including its structure, sequence and organization, constitutes the valuable trade
17 *  secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof,
18 *  and to use this information only in connection with your use of Broadcom integrated circuit products.
19 *
20 *  2.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
21 *  AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR
22 *  WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
23 *  THE SOFTWARE.  BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES
24 *  OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE,
25 *  LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION
26 *  OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF
27 *  USE OR PERFORMANCE OF THE SOFTWARE.
28 *
29 *  3.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS
30 *  LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR
31 *  EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR
32 *  USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF
33 *  THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT
34 *  ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE
35 *  LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF
36 *  ANY LIMITED REMEDY.
37 *
38 * $brcm_Workfile: nexus_tsmux.c $
39 * $brcm_Revision: 3 $
40 * $brcm_Date: 12/30/10 4:20p $
41 *
42 * Module Description:
43 *
44 * Revision History:
45 *
46 * $brcm_Log: /nexus/modules/transport/7400/src/nexus_tsmux.c $
47 *
48 * 3   12/30/10 4:20p vsilyaev
49 * SW7425-39: Remove playback from mux
50 *
51 * 2   12/28/10 6:38p vsilyaev
52 * SW7425-39: Updated to match latest TsMux
53 *
54 * 1   12/28/10 5:38p vsilyaev
55 * SW7425-39: Added Interface to control XPT_TsMux
56 *
57 **************************************************************************/
58#include "nexus_transport_module.h"
59#include "nexus_playpump_impl.h"
60#if BXPT_HAS_TSMUX
61
62void 
63NEXUS_TsMux_GetDefaultSettings_priv(NEXUS_TsMuxSettings  *pSettings)
64{
65    NEXUS_ASSERT_MODULE();
66    BXPT_TsMux_GetDefaultSettings(pSettings);
67    return;
68}
69
70NEXUS_TsMuxHandle
71NEXUS_TsMux_Create_priv(void)
72{
73    NEXUS_TsMuxHandle tsMux;
74    BERR_Code rc;
75
76    NEXUS_ASSERT_MODULE();
77
78    rc = BXPT_TsMux_Create(pTransport->xpt, &tsMux);
79    if(rc!=BERR_SUCCESS) {rc=BERR_TRACE(rc);return NULL;}
80    return tsMux;
81}
82
83void 
84NEXUS_TsMux_Destroy_priv(NEXUS_TsMuxHandle tsMux)
85{
86    BXPT_TsMux_Destroy(tsMux);
87}
88
89NEXUS_Error
90NEXUS_TsMux_AddPlaypump_priv(NEXUS_TsMuxHandle tsMux, NEXUS_PlaypumpHandle playpump)
91{
92    BERR_Code rc;
93    NEXUS_ASSERT_MODULE();
94    BDBG_OBJECT_ASSERT(playpump, NEXUS_Playpump);
95    rc = BXPT_TsMux_AddPlayback(tsMux, playpump->xpt_play);
96    return BERR_TRACE(rc);
97}
98
99void 
100NEXUS_TsMux_RemovePlaypump_priv(NEXUS_TsMuxHandle tsMux, NEXUS_PlaypumpHandle playpump)
101{
102    NEXUS_ASSERT_MODULE();
103    BDBG_OBJECT_ASSERT(playpump, NEXUS_Playpump);
104    BXPT_TsMux_RemovePlayback(tsMux, playpump->xpt_play);
105    return ;
106}
107
108void 
109NEXUS_TsMux_GetSettings_priv(NEXUS_TsMuxHandle tsMux, NEXUS_TsMuxSettings *pSettings)
110{
111    NEXUS_ASSERT_MODULE();
112    BDBG_ASSERT(pSettings);
113    BXPT_TsMux_GetSettings(tsMux, pSettings);
114    return;
115}
116
117NEXUS_Error
118NEXUS_TsMux_SetSettings_priv(NEXUS_TsMuxHandle tsMux, NEXUS_TsMuxSettings *pSettings, NEXUS_StcChannelHandle stcChannel)
119{
120    BERR_Code rc;
121    NEXUS_ASSERT_MODULE();
122    BDBG_ASSERT(pSettings);
123    BDBG_ASSERT(stcChannel);
124    BDBG_OBJECT_ASSERT(stcChannel, NEXUS_StcChannel);
125    pSettings->hPcrOffset = stcChannel->pcrOffset;
126    rc = BXPT_TsMux_SetSettings(tsMux, pSettings);
127    return BERR_TRACE(rc);
128}
129
130void 
131NEXUS_TsMux_GetStatus_priv(NEXUS_TsMuxHandle tsMux, NEXUS_TsMuxStatus *pStatus)
132{
133    NEXUS_ASSERT_MODULE();
134    BXPT_TsMux_GetStatus(tsMux, pStatus);
135    return;
136}
137
138
139#endif /* BXPT_HAS_TSMUX */
140
Note: See TracBrowser for help on using the repository browser.