equal
deleted
inserted
replaced
55 XAresult XARadioItfAdapt_IsFreqRangeSupported(XAuint8 range, |
55 XAresult XARadioItfAdapt_IsFreqRangeSupported(XAuint8 range, |
56 XAboolean * pSupported) |
56 XAboolean * pSupported) |
57 { |
57 { |
58 XAresult ret = XA_RESULT_SUCCESS; |
58 XAresult ret = XA_RESULT_SUCCESS; |
59 DEBUG_API("->XARadioItfAdapt_IsFreqRangeSupported"); |
59 DEBUG_API("->XARadioItfAdapt_IsFreqRangeSupported"); |
60 *pSupported = XA_BOOLEAN_TRUE; // No radio utility API for this, set to true automatically. |
60 if ((range == XA_FREQRANGE_FMEUROAMERICA) || (range == XA_FREQRANGE_FMJAPAN)) |
|
61 { |
|
62 *pSupported = XA_BOOLEAN_TRUE; |
|
63 } |
|
64 else |
|
65 *pSupported = XA_BOOLEAN_FALSE; |
|
66 |
61 DEBUG_API("<-XARadioItfAdapt_IsFreqRangeSupported"); |
67 DEBUG_API("<-XARadioItfAdapt_IsFreqRangeSupported"); |
62 return ret; |
68 return ret; |
63 } |
69 } |
64 |
70 |
65 /* |
71 /* |
120 DEBUG_API("<-XARadioItfAdapt_CancelSetFrequency"); |
126 DEBUG_API("<-XARadioItfAdapt_CancelSetFrequency"); |
121 return ret; |
127 return ret; |
122 } |
128 } |
123 |
129 |
124 /* |
130 /* |
125 * XAresult XARadioItfAdapt_CancelStationSeek() |
|
126 */ |
|
127 XAresult XARadioItfAdapt_CancelStationSeek() |
|
128 { |
|
129 XAresult ret = XA_RESULT_SUCCESS; |
|
130 DEBUG_API("->XARadioItfAdapt_CancelStationSeek"); |
|
131 cancel_station_seek(cmmfradiobackendengine_init()); |
|
132 DEBUG_API("<-XARadioItfAdapt_CancelStationSeek"); |
|
133 return ret; |
|
134 } |
|
135 |
|
136 /* |
|
137 * XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch) |
131 * XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch) |
138 */ |
132 */ |
139 XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch) |
133 XAresult XARadioItfAdapt_SetSquelch(XAboolean squelch) |
140 { |
134 { |
141 XAresult ret = XA_RESULT_FEATURE_UNSUPPORTED; |
135 XAresult ret = XA_RESULT_FEATURE_UNSUPPORTED; |
181 /* |
175 /* |
182 * XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards) |
176 * XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards) |
183 */ |
177 */ |
184 XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards) |
178 XAresult XARadioItfAdapt_Seek(XAAdaptationMMFCtx *bCtx, XAboolean upwards) |
185 { |
179 { |
186 XAboolean direction; |
|
187 XAresult ret = XA_RESULT_SUCCESS; |
180 XAresult ret = XA_RESULT_SUCCESS; |
188 if (!upwards) |
181 |
189 direction = XA_BOOLEAN_FALSE; |
|
190 else |
|
191 direction = XA_BOOLEAN_TRUE; |
|
192 DEBUG_API("->XARadioItfAdapt_Seek"); |
182 DEBUG_API("->XARadioItfAdapt_Seek"); |
193 mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx); |
183 mmf_set_radio_adapt_context(cmmfradiobackendengine_init(), bCtx); |
194 station_seek(cmmfradiobackendengine_init(), direction); |
184 station_seek(cmmfradiobackendengine_init(), upwards); |
195 DEBUG_API("<-XARadioItfAdapt_Seek"); |
185 DEBUG_API("<-XARadioItfAdapt_Seek"); |
196 return ret; |
186 return ret; |
197 } |
187 } |
198 |
188 |
199 /* |
189 /* |