khronosfws/openmax_al/src/mmf_adaptation/xaradioitfadaptation.c
author hgs
Fri, 06 Aug 2010 16:55:00 -0500
changeset 38 9e9fc5ab059f
parent 28 ebf79c79991a
child 48 a493a607b5bf
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#include <unistd.h>
25
hgs
parents: 21
diff changeset
    19
#include "xadebug.h"
hgs
parents: 21
diff changeset
    20
#include "xaadaptationmmf.h"
hgs
parents: 21
diff changeset
    21
#include "xaradioitfadaptation.h"
hgs
parents: 21
diff changeset
    22
#include "xaradioadaptctx.h"
21
hgs
parents:
diff changeset
    23
#include "cmmfradiobackendengine.h"
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
/*
hgs
parents:
diff changeset
    26
 * XAresult XARadioItfAdapt_SetFreqRange(XAAdaptationMMFCtx *bCtx, XAuint8 range)
hgs
parents:
diff changeset
    27
 */
hgs
parents:
diff changeset
    28
XAresult XARadioItfAdapt_SetFreqRange(XAAdaptationMMFCtx *bCtx, XAuint8 range)
hgs
parents:
diff changeset
    29
{
hgs
parents:
diff changeset
    30
    XAresult ret = XA_RESULT_SUCCESS;  
hgs
parents:
diff changeset
    31
    DEBUG_API("->XARadioItfAdapt_SetFreqRange");    
hgs
parents:
diff changeset
    32
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);		
hgs
parents:
diff changeset
    33
    set_freq_range(cmmfradiobackendengine_init(), range);    
hgs
parents:
diff changeset
    34
    DEBUG_API("<-XARadioItfAdapt_SetFreqRange");
hgs
parents:
diff changeset
    35
    return ret;
hgs
parents:
diff changeset
    36
}
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
/*
hgs
parents:
diff changeset
    39
 * XAresult XARadioItfAdapt_GetFreqRange(XAuint8 * pFreqRange)
hgs
parents:
diff changeset
    40
 *
hgs
parents:
diff changeset
    41
 */
hgs
parents:
diff changeset
    42
XAresult XARadioItfAdapt_GetFreqRange(XAuint8 * pFreqRange)
hgs
parents:
diff changeset
    43
{
hgs
parents:
diff changeset
    44
    XAresult res = XA_RESULT_SUCCESS;    
hgs
parents:
diff changeset
    45
    DEBUG_API("->XARadioItfAdapt_GetFreqRange");    
hgs
parents:
diff changeset
    46
 		res = get_freq_range(cmmfradiobackendengine_init(), pFreqRange);
hgs
parents:
diff changeset
    47
    DEBUG_API("<-XARadioItfAdapt_GetFreqRange");
hgs
parents:
diff changeset
    48
    return res;
hgs
parents:
diff changeset
    49
}
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
/*
hgs
parents:
diff changeset
    52
 *  XAresult XARadioItfAdapt_IsFreqRangeSupported(XAuint8 range,
hgs
parents:
diff changeset
    53
 *                                                XAboolean * pSupported)
hgs
parents:
diff changeset
    54
 */
hgs
parents:
diff changeset
    55
XAresult XARadioItfAdapt_IsFreqRangeSupported(XAuint8 range,
hgs
parents:
diff changeset
    56
                                             XAboolean * pSupported)
hgs
parents:
diff changeset
    57
{
hgs
parents:
diff changeset
    58
    XAresult ret = XA_RESULT_SUCCESS;
hgs
parents:
diff changeset
    59
    DEBUG_API("->XARadioItfAdapt_IsFreqRangeSupported");    
28
hgs
parents: 25
diff changeset
    60
    if ((range == XA_FREQRANGE_FMEUROAMERICA) || (range == XA_FREQRANGE_FMJAPAN)) 
hgs
parents: 25
diff changeset
    61
        {	
hgs
parents: 25
diff changeset
    62
 			*pSupported = XA_BOOLEAN_TRUE;   
hgs
parents: 25
diff changeset
    63
 		}
hgs
parents: 25
diff changeset
    64
 		else
hgs
parents: 25
diff changeset
    65
 			*pSupported = XA_BOOLEAN_FALSE;
hgs
parents: 25
diff changeset
    66
 			 
21
hgs
parents:
diff changeset
    67
    DEBUG_API("<-XARadioItfAdapt_IsFreqRangeSupported");
hgs
parents:
diff changeset
    68
    return ret;
hgs
parents:
diff changeset
    69
}
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
/*
hgs
parents:
diff changeset
    72
 * XAresult XARadioItfAdapt_GetFreqRangeProperties(XAAdaptationMMFCtx *bCtx,
38
hgs
parents: 28
diff changeset
    73
 *                                                 XAuint8 range,
21
hgs
parents:
diff changeset
    74
 *                                                 XAuint32 * pMinFreq,
hgs
parents:
diff changeset
    75
 *                                                 XAuint32 * pMaxFreq)
hgs
parents:
diff changeset
    76
 */
hgs
parents:
diff changeset
    77
XAresult XARadioItfAdapt_GetFreqRangeProperties(XAAdaptationMMFCtx *bCtx,
hgs
parents:
diff changeset
    78
                                               XAuint8  range,
hgs
parents:
diff changeset
    79
                                               XAuint32 * pMinFreq,
hgs
parents:
diff changeset
    80
                                               XAuint32 * pMaxFreq)
hgs
parents:
diff changeset
    81
{
hgs
parents:
diff changeset
    82
    XAresult res = XA_RESULT_SUCCESS;    
hgs
parents:
diff changeset
    83
    DEBUG_API("->XARadioItfAdapt_GetFreqRangeProperties");
hgs
parents:
diff changeset
    84
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);		
hgs
parents:
diff changeset
    85
 		res = get_freq_range_properties(cmmfradiobackendengine_init(), range, pMinFreq, pMaxFreq); 					 		
hgs
parents:
diff changeset
    86
    DEBUG_API("<-XARadioItfAdapt_GetFreqRangeProperties");
hgs
parents:
diff changeset
    87
    return res;
hgs
parents:
diff changeset
    88
}
hgs
parents:
diff changeset
    89
hgs
parents:
diff changeset
    90
/*
hgs
parents:
diff changeset
    91
 * XAresult XARadioItfAdapt_SetFrequency(XAAdaptationMMFCtx *bCtx, XAuint32 freq)
hgs
parents:
diff changeset
    92
 */
hgs
parents:
diff changeset
    93
XAresult XARadioItfAdapt_SetFrequency(XAAdaptationMMFCtx *bCtx, XAuint32 freq)
hgs
parents:
diff changeset
    94
{
hgs
parents:
diff changeset
    95
    XAresult ret = XA_RESULT_SUCCESS; 
hgs
parents:
diff changeset
    96
    DEBUG_API("->XARadioItfAdapt_SetFrequency");    
hgs
parents:
diff changeset
    97
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);
hgs
parents:
diff changeset
    98
    set_frequency(cmmfradiobackendengine_init(), freq);    
hgs
parents:
diff changeset
    99
    DEBUG_API("<-XARadioItfAdapt_SetFrequency");
hgs
parents:
diff changeset
   100
    return ret;
hgs
parents:
diff changeset
   101
}
hgs
parents:
diff changeset
   102
hgs
parents:
diff changeset
   103
hgs
parents:
diff changeset
   104
/*
hgs
parents:
diff changeset
   105
 * XAresult XARadioItfAdapt_GetFrequency(XAAdaptationMMFCtx *bCtx,
hgs
parents:
diff changeset
   106
 *                                       XAuint32* pFrequency)
hgs
parents:
diff changeset
   107
 */
hgs
parents:
diff changeset
   108
XAresult XARadioItfAdapt_GetFrequency(XAuint32* pFrequency)
hgs
parents:
diff changeset
   109
{
hgs
parents:
diff changeset
   110
    XAresult ret = XA_RESULT_SUCCESS;
hgs
parents:
diff changeset
   111
    DEBUG_API("->XARadioItfAdapt_GetFrequency");	
hgs
parents:
diff changeset
   112
		ret = get_frequency(cmmfradiobackendengine_init(), pFrequency);       
hgs
parents:
diff changeset
   113
   DEBUG_API("<-XARadioItfAdapt_GetFrequency");
hgs
parents:
diff changeset
   114
   return ret;
hgs
parents:
diff changeset
   115
}
hgs
parents:
diff changeset
   116
hgs
parents:
diff changeset
   117
hgs
parents:
diff changeset
   118
/*
hgs
parents:
diff changeset
   119
 * XAresult XARadioItfAdapt_CancelSetFrequency()
hgs
parents:
diff changeset
   120
 */
hgs
parents:
diff changeset
   121
XAresult XARadioItfAdapt_CancelSetFrequency()
hgs
parents:
diff changeset
   122
{
hgs
parents:
diff changeset
   123
    XAresult ret = XA_RESULT_SUCCESS;
hgs
parents:
diff changeset
   124
    DEBUG_API("->XARadioItfAdapt_CancelSetFrequency");
hgs
parents:
diff changeset
   125
		cancel_set_frequency(cmmfradiobackendengine_init());     
hgs
parents:
diff changeset
   126
    DEBUG_API("<-XARadioItfAdapt_CancelSetFrequency");
hgs
parents:
diff changeset
   127
    return ret;
hgs
parents:
diff changeset
   128
}
hgs
parents:
diff changeset
   129
hgs
parents:
diff changeset
   130
/*
hgs
parents:
diff changeset
   131
 * XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch)
hgs
parents:
diff changeset
   132
 */
hgs
parents:
diff changeset
   133
XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch)
hgs
parents:
diff changeset
   134
{	
hgs
parents:
diff changeset
   135
    XAresult ret = XA_RESULT_FEATURE_UNSUPPORTED;	
hgs
parents:
diff changeset
   136
    DEBUG_API("->XARadioItfAdapt_SetSquelch");
hgs
parents:
diff changeset
   137
    return ret;
hgs
parents:
diff changeset
   138
}
hgs
parents:
diff changeset
   139
hgs
parents:
diff changeset
   140
/*
hgs
parents:
diff changeset
   141
 * XAresult XARadioItfAdapt_GetSquelch(XAboolean *squelch)
hgs
parents:
diff changeset
   142
 */
hgs
parents:
diff changeset
   143
XAresult XARadioItfAdapt_GetSquelch(XAboolean* squelch)
hgs
parents:
diff changeset
   144
{
hgs
parents:
diff changeset
   145
    XAresult ret = XA_RESULT_FEATURE_UNSUPPORTED;	
hgs
parents:
diff changeset
   146
    DEBUG_API("->XARadioItfAdapt_GetSquelch");
hgs
parents:
diff changeset
   147
    return ret;
hgs
parents:
diff changeset
   148
}
hgs
parents:
diff changeset
   149
hgs
parents:
diff changeset
   150
/*
hgs
parents:
diff changeset
   151
 * XAresult XARadioItfAdapt_SetStereoMode(XAAdaptationMMFCtx *bCtx, XAuint32 mode)
hgs
parents:
diff changeset
   152
 */
hgs
parents:
diff changeset
   153
XAresult XARadioItfAdapt_SetStereoMode(XAAdaptationMMFCtx *bCtx, XAuint32 mode)
hgs
parents:
diff changeset
   154
{
hgs
parents:
diff changeset
   155
		XAresult res = XA_RESULT_SUCCESS;   	
hgs
parents:
diff changeset
   156
    DEBUG_API("->XARadioItfAdapt_SetStereoMode");
hgs
parents:
diff changeset
   157
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);
hgs
parents:
diff changeset
   158
    res = set_stereo_mode(cmmfradiobackendengine_init(), mode);    
hgs
parents:
diff changeset
   159
    DEBUG_API("<-XARadioItfAdapt_SetStereoMode");
hgs
parents:
diff changeset
   160
    return res;
hgs
parents:
diff changeset
   161
}
hgs
parents:
diff changeset
   162
hgs
parents:
diff changeset
   163
/*
hgs
parents:
diff changeset
   164
 * XAresult XARadioItfAdapt_GetSignalStrength(XAuint32 * pStrength)
hgs
parents:
diff changeset
   165
 */
hgs
parents:
diff changeset
   166
XAresult XARadioItfAdapt_GetSignalStrength(XAuint32 * pStrength)
hgs
parents:
diff changeset
   167
{
hgs
parents:
diff changeset
   168
 		XAresult ret = XA_RESULT_SUCCESS;   	
hgs
parents:
diff changeset
   169
    DEBUG_API("->XARadioItfAdapt_GetSignalStrength");  		
hgs
parents:
diff changeset
   170
		ret = get_signal_strength(cmmfradiobackendengine_init(), pStrength);    
hgs
parents:
diff changeset
   171
    DEBUG_API("<-XARadioItfAdapt_GetSignalStrength");
hgs
parents:
diff changeset
   172
    return ret;
hgs
parents:
diff changeset
   173
}
hgs
parents:
diff changeset
   174
hgs
parents:
diff changeset
   175
/*
hgs
parents:
diff changeset
   176
 * XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards)
hgs
parents:
diff changeset
   177
 */
hgs
parents:
diff changeset
   178
XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards)
hgs
parents:
diff changeset
   179
{
hgs
parents:
diff changeset
   180
    XAresult ret = XA_RESULT_SUCCESS;          
28
hgs
parents: 25
diff changeset
   181
 		
21
hgs
parents:
diff changeset
   182
   	DEBUG_API("->XARadioItfAdapt_Seek");	    
hgs
parents:
diff changeset
   183
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);     	
28
hgs
parents: 25
diff changeset
   184
		station_seek(cmmfradiobackendengine_init(), upwards);   				
21
hgs
parents:
diff changeset
   185
    DEBUG_API("<-XARadioItfAdapt_Seek");
hgs
parents:
diff changeset
   186
    return ret;
hgs
parents:
diff changeset
   187
}
hgs
parents:
diff changeset
   188
hgs
parents:
diff changeset
   189
/*
hgs
parents:
diff changeset
   190
 * void XARadioItfAdapt_StopSeeking(XAAdaptationMMFCtx *bCtx)
hgs
parents:
diff changeset
   191
 */
hgs
parents:
diff changeset
   192
void XARadioItfAdapt_StopSeeking(XAAdaptationMMFCtx *bCtx)
hgs
parents:
diff changeset
   193
{
hgs
parents:
diff changeset
   194
    DEBUG_API("->XARadioItfAdapt_StopSeeking");	
hgs
parents:
diff changeset
   195
    mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);	
hgs
parents:
diff changeset
   196
		cancel_station_seek(cmmfradiobackendengine_init());   
hgs
parents:
diff changeset
   197
    DEBUG_API("<-XARadioItfAdapt_StopSeeking");
hgs
parents:
diff changeset
   198
}
hgs
parents:
diff changeset
   199
hgs
parents:
diff changeset
   200
/*
hgs
parents:
diff changeset
   201
 * XAresult XARadioItfAdapt_GetStereoMode(XAuint32 * pMode)
hgs
parents:
diff changeset
   202
 */
hgs
parents:
diff changeset
   203
XAresult XARadioItfAdapt_GetStereoMode(XAuint32 * pMode)
hgs
parents:
diff changeset
   204
{
hgs
parents:
diff changeset
   205
 		XAresult ret = XA_RESULT_SUCCESS;   	
hgs
parents:
diff changeset
   206
    DEBUG_API("->XARadioItfAdapt_GetStereoMode");  		
hgs
parents:
diff changeset
   207
		ret = get_stereo_mode(cmmfradiobackendengine_init(), pMode);    
hgs
parents:
diff changeset
   208
    DEBUG_API("<-XARadioItfAdapt_GetStereoMode");
hgs
parents:
diff changeset
   209
    return ret;
hgs
parents:
diff changeset
   210
}
hgs
parents:
diff changeset
   211
hgs
parents:
diff changeset
   212
/*
hgs
parents:
diff changeset
   213
 * void XARadioItfAdapt_Free()
hgs
parents:
diff changeset
   214
 */
hgs
parents:
diff changeset
   215
void XARadioItfAdapt_Free()
hgs
parents:
diff changeset
   216
{
hgs
parents:
diff changeset
   217
    DEBUG_API("->XARadioItfAdapt_Free");
hgs
parents:
diff changeset
   218
    
hgs
parents:
diff changeset
   219
}
hgs
parents:
diff changeset
   220
hgs
parents:
diff changeset
   221
void XARadioItfAdapt_SeekComplete(XAAdaptationBaseCtx *ctx, TInt aError, TInt aFrequency)
hgs
parents:
diff changeset
   222
{
hgs
parents:
diff changeset
   223
   	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_SEEK_COMPLETE,1,0};        	
hgs
parents:
diff changeset
   224
		if (ctx)
hgs
parents:
diff changeset
   225
    {
hgs
parents:
diff changeset
   226
    	if (aError)
hgs
parents:
diff changeset
   227
    	{
hgs
parents:
diff changeset
   228
    		event.data = &aError;
hgs
parents:
diff changeset
   229
    	}
hgs
parents:
diff changeset
   230
    	else
hgs
parents:
diff changeset
   231
    	{
hgs
parents:
diff changeset
   232
   			event.data = &aFrequency;
hgs
parents:
diff changeset
   233
   		}
hgs
parents:
diff changeset
   234
   		
hgs
parents:
diff changeset
   235
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   236
   	}   
hgs
parents:
diff changeset
   237
}
hgs
parents:
diff changeset
   238
hgs
parents:
diff changeset
   239
void XARadioItfAdapt_FrequencyChange(XAAdaptationBaseCtx *ctx, TInt aFrequency)
hgs
parents:
diff changeset
   240
{
hgs
parents:
diff changeset
   241
		// Currently: Bug in FM Radio Utility: SetFrequency calls this callback as well as SetFrequencyComplete
hgs
parents:
diff changeset
   242
		// (So client will end up getting 2 events on a SetFrequency call)
hgs
parents:
diff changeset
   243
   	XAuint32 freq = aFrequency;    		
hgs
parents:
diff changeset
   244
    XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_FREQUENCY_CHANGED,1,0};        	
hgs
parents:
diff changeset
   245
		if (ctx)
hgs
parents:
diff changeset
   246
    {
hgs
parents:
diff changeset
   247
    	event.data = &freq;
hgs
parents:
diff changeset
   248
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   249
   	}  
hgs
parents:
diff changeset
   250
}
hgs
parents:
diff changeset
   251
hgs
parents:
diff changeset
   252
void XARadioItfAdapt_FrequencyRangeChange(XAAdaptationBaseCtx* ctx, TInt aFreqRangeChange)
hgs
parents:
diff changeset
   253
{
hgs
parents:
diff changeset
   254
		// Currently: Bug in FM Radio Utility: SetFrequencyRange triggers this callback as well as SetFrequencyRangeComplete
hgs
parents:
diff changeset
   255
		
hgs
parents:
diff changeset
   256
   /*	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_FREQUENCY_RANGE_CHANGED,1,0};        	
hgs
parents:
diff changeset
   257
		if (baseCtx)
hgs
parents:
diff changeset
   258
    {
hgs
parents:
diff changeset
   259
    	event.data = &aFreqRangeChange;
hgs
parents:
diff changeset
   260
     	XAAdaptationBase_SendAdaptEvents(&baseCtx->baseObj, &event );
hgs
parents:
diff changeset
   261
   	} 
hgs
parents:
diff changeset
   262
   	*/  
hgs
parents:
diff changeset
   263
}
hgs
parents:
diff changeset
   264
hgs
parents:
diff changeset
   265
void XARadioItfAdapt_SetFrequencyComplete(XAAdaptationBaseCtx *ctx, TInt aError, TInt aFrequency)
hgs
parents:
diff changeset
   266
{
hgs
parents:
diff changeset
   267
		// Currently: Qt API has no event for SetFrequencyComplete, so must use this one:
hgs
parents:
diff changeset
   268
   	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_FREQUENCY_CHANGED,1,0};   
hgs
parents:
diff changeset
   269
   	XAuint32 freq = aFrequency;     	
hgs
parents:
diff changeset
   270
		if (ctx)
hgs
parents:
diff changeset
   271
    {
hgs
parents:
diff changeset
   272
    	if (!aError)
hgs
parents:
diff changeset
   273
    	{
hgs
parents:
diff changeset
   274
    		event.data = &freq;
hgs
parents:
diff changeset
   275
    	}
hgs
parents:
diff changeset
   276
    	else
hgs
parents:
diff changeset
   277
    	{
hgs
parents:
diff changeset
   278
    		event.data = &aError;
hgs
parents:
diff changeset
   279
    	}
hgs
parents:
diff changeset
   280
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   281
   	}   
hgs
parents:
diff changeset
   282
}
hgs
parents:
diff changeset
   283
hgs
parents:
diff changeset
   284
void XARadioItfAdapt_SetFrequencyRangeComplete(XAAdaptationBaseCtx *ctx, TInt aError)
hgs
parents:
diff changeset
   285
{
hgs
parents:
diff changeset
   286
   	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_FREQUENCY_RANGE_CHANGED,1,0};        	
hgs
parents:
diff changeset
   287
		if (ctx)
hgs
parents:
diff changeset
   288
    {
hgs
parents:
diff changeset
   289
    	event.data = &aError;
hgs
parents:
diff changeset
   290
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   291
   	}   
hgs
parents:
diff changeset
   292
}
hgs
parents:
diff changeset
   293
hgs
parents:
diff changeset
   294
void XARadioItfAdapt_StereoStatusChange(XAAdaptationBaseCtx *ctx, XAboolean aStereoStatus)
hgs
parents:
diff changeset
   295
{
hgs
parents:
diff changeset
   296
   	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_STEREO_STATUS_CHANGED,1,0}; 
hgs
parents:
diff changeset
   297
  	DEBUG_INFO_A1("XARadioItfAdapt_StereoStatusChange to: %s", aStereoStatus);	   	       	
hgs
parents:
diff changeset
   298
		if (ctx)
hgs
parents:
diff changeset
   299
    {
hgs
parents:
diff changeset
   300
    	event.data = &aStereoStatus;
hgs
parents:
diff changeset
   301
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   302
   	}   
hgs
parents:
diff changeset
   303
}
hgs
parents:
diff changeset
   304
hgs
parents:
diff changeset
   305
void XARadioItfAdapt_SignalStrengthChange(XAAdaptationBaseCtx *ctx, TInt aSignalStrength)
hgs
parents:
diff changeset
   306
{
hgs
parents:
diff changeset
   307
   	XAAdaptEvent event = {XA_RADIOITFEVENTS, XA_ADAPT_RADIO_SIGNAL_STRENGTH_CHANGED,1,0}; 
hgs
parents:
diff changeset
   308
  	DEBUG_INFO_A1("XARadioItfAdapt_SignalStrengthChange to: %s", aSignalStrength);	   	       	
hgs
parents:
diff changeset
   309
		if (ctx)
hgs
parents:
diff changeset
   310
    {
hgs
parents:
diff changeset
   311
    	event.data = &aSignalStrength;
hgs
parents:
diff changeset
   312
     	XAAdaptationBase_SendAdaptEvents(ctx, &event );
hgs
parents:
diff changeset
   313
   	}   
hgs
parents:
diff changeset
   314
}