khronosfws/openmax_al/src/mmf_adaptation/xaradioitfadaptation.c
changeset 32 94fc26b6e006
parent 31 8dfd592727cb
child 42 1fa3fb47b1e3
--- a/khronosfws/openmax_al/src/mmf_adaptation/xaradioitfadaptation.c	Wed Jun 23 18:47:10 2010 +0300
+++ b/khronosfws/openmax_al/src/mmf_adaptation/xaradioitfadaptation.c	Tue Jul 06 14:50:35 2010 +0300
@@ -57,7 +57,13 @@
 {
     XAresult ret = XA_RESULT_SUCCESS;
     DEBUG_API("->XARadioItfAdapt_IsFreqRangeSupported");    
- 		*pSupported = XA_BOOLEAN_TRUE;    // No radio utility API for this, set to true automatically.
+    if ((range == XA_FREQRANGE_FMEUROAMERICA) || (range == XA_FREQRANGE_FMJAPAN)) 
+        {	
+ 			*pSupported = XA_BOOLEAN_TRUE;   
+ 		}
+ 		else
+ 			*pSupported = XA_BOOLEAN_FALSE;
+ 			 
     DEBUG_API("<-XARadioItfAdapt_IsFreqRangeSupported");
     return ret;
 }
@@ -122,18 +128,6 @@
 }
 
 /*
- * XAresult XARadioItfAdapt_CancelStationSeek()
- */
-XAresult XARadioItfAdapt_CancelStationSeek()
-{
-    XAresult ret = XA_RESULT_SUCCESS;         
-    DEBUG_API("->XARadioItfAdapt_CancelStationSeek");		
-		cancel_station_seek(cmmfradiobackendengine_init());    
-    DEBUG_API("<-XARadioItfAdapt_CancelStationSeek");
-    return ret;
-}
-
-/*
  * XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch)
  */
 XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch)
@@ -183,15 +177,11 @@
  */
 XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards)
 {
-	  XAboolean direction; 
     XAresult ret = XA_RESULT_SUCCESS;          
-    if (!upwards)
-    	direction = XA_BOOLEAN_FALSE;  
-    else
-    	direction = XA_BOOLEAN_TRUE;      			
+ 		
    	DEBUG_API("->XARadioItfAdapt_Seek");	    
     mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx);     	
-		station_seek(cmmfradiobackendengine_init(), direction);   				
+		station_seek(cmmfradiobackendengine_init(), upwards);   				
     DEBUG_API("<-XARadioItfAdapt_Seek");
     return ret;
 }