Lines Matching refs:result
106 int result; in cmd_mics_param() local
132 result = bt_mics_register(&mics_param, &mics); in cmd_mics_param()
133 if (result != 0) { in cmd_mics_param()
134 shell_error(sh, "MICS register failed: %d", result); in cmd_mics_param()
135 return result; in cmd_mics_param()
138 shell_print(sh, "MICS initialized", result); in cmd_mics_param()
140 result = bt_mics_included_get(NULL, &mics_included); in cmd_mics_param()
141 if (result != 0) { in cmd_mics_param()
142 shell_error(sh, "MICS get failed: %d", result); in cmd_mics_param()
145 return result; in cmd_mics_param()
150 int result = bt_mics_mute_get(NULL); in cmd_mics_mute_get() local
152 if (result != 0) { in cmd_mics_mute_get()
153 shell_error(sh, "Fail: %d", result); in cmd_mics_mute_get()
156 return result; in cmd_mics_mute_get()
161 int result = bt_mics_mute(NULL); in cmd_mics_mute() local
163 if (result != 0) { in cmd_mics_mute()
164 shell_error(sh, "Fail: %d", result); in cmd_mics_mute()
167 return result; in cmd_mics_mute()
172 int result = bt_mics_unmute(NULL); in cmd_mics_unmute() local
174 if (result != 0) { in cmd_mics_unmute()
175 shell_error(sh, "Fail: %d", result); in cmd_mics_unmute()
178 return result; in cmd_mics_unmute()
184 int result = bt_mics_mute_disable(mics); in cmd_mics_mute_disable() local
186 if (result != 0) { in cmd_mics_mute_disable()
187 shell_error(sh, "Fail: %d", result); in cmd_mics_mute_disable()
190 return result; in cmd_mics_mute_disable()
196 int result; in cmd_mics_aics_deactivate() local
205 result = bt_mics_aics_deactivate(mics, mics_included.aics[index]); in cmd_mics_aics_deactivate()
206 if (result != 0) { in cmd_mics_aics_deactivate()
207 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_deactivate()
210 return result; in cmd_mics_aics_deactivate()
216 int result; in cmd_mics_aics_activate() local
225 result = bt_mics_aics_activate(mics, mics_included.aics[index]); in cmd_mics_aics_activate()
226 if (result != 0) { in cmd_mics_aics_activate()
227 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_activate()
230 return result; in cmd_mics_aics_activate()
236 int result; in cmd_mics_aics_input_state_get() local
245 result = bt_mics_aics_state_get(NULL, mics_included.aics[index]); in cmd_mics_aics_input_state_get()
246 if (result != 0) { in cmd_mics_aics_input_state_get()
247 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_state_get()
250 return result; in cmd_mics_aics_input_state_get()
256 int result; in cmd_mics_aics_gain_setting_get() local
265 result = bt_mics_aics_gain_setting_get(NULL, mics_included.aics[index]); in cmd_mics_aics_gain_setting_get()
266 if (result != 0) { in cmd_mics_aics_gain_setting_get()
267 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_gain_setting_get()
270 return result; in cmd_mics_aics_gain_setting_get()
276 int result; in cmd_mics_aics_input_type_get() local
285 result = bt_mics_aics_type_get(NULL, mics_included.aics[index]); in cmd_mics_aics_input_type_get()
286 if (result != 0) { in cmd_mics_aics_input_type_get()
287 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_type_get()
290 return result; in cmd_mics_aics_input_type_get()
296 int result; in cmd_mics_aics_input_status_get() local
305 result = bt_mics_aics_status_get(NULL, mics_included.aics[index]); in cmd_mics_aics_input_status_get()
306 if (result != 0) { in cmd_mics_aics_input_status_get()
307 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_status_get()
310 return result; in cmd_mics_aics_input_status_get()
316 int result; in cmd_mics_aics_input_unmute() local
325 result = bt_mics_aics_unmute(NULL, mics_included.aics[index]); in cmd_mics_aics_input_unmute()
326 if (result != 0) { in cmd_mics_aics_input_unmute()
327 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_unmute()
330 return result; in cmd_mics_aics_input_unmute()
336 int result; in cmd_mics_aics_input_mute() local
345 result = bt_mics_aics_mute(NULL, mics_included.aics[index]); in cmd_mics_aics_input_mute()
346 if (result != 0) { in cmd_mics_aics_input_mute()
347 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_mute()
350 return result; in cmd_mics_aics_input_mute()
356 int result; in cmd_mics_aics_manual_input_gain_set() local
365 result = bt_mics_aics_manual_gain_set(NULL, mics_included.aics[index]); in cmd_mics_aics_manual_input_gain_set()
366 if (result != 0) { in cmd_mics_aics_manual_input_gain_set()
367 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_manual_input_gain_set()
370 return result; in cmd_mics_aics_manual_input_gain_set()
376 int result; in cmd_mics_aics_automatic_input_gain_set() local
385 result = bt_mics_aics_automatic_gain_set(NULL, mics_included.aics[index]); in cmd_mics_aics_automatic_input_gain_set()
386 if (result != 0) { in cmd_mics_aics_automatic_input_gain_set()
387 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_automatic_input_gain_set()
390 return result; in cmd_mics_aics_automatic_input_gain_set()
396 int result; in cmd_mics_aics_gain_set() local
412 result = bt_mics_aics_gain_set(NULL, mics_included.aics[index], gain); in cmd_mics_aics_gain_set()
413 if (result != 0) { in cmd_mics_aics_gain_set()
414 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_gain_set()
417 return result; in cmd_mics_aics_gain_set()
423 int result; in cmd_mics_aics_input_description_get() local
432 result = bt_mics_aics_description_get(NULL, mics_included.aics[index]); in cmd_mics_aics_input_description_get()
433 if (result != 0) { in cmd_mics_aics_input_description_get()
434 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_description_get()
437 return result; in cmd_mics_aics_input_description_get()
443 int result; in cmd_mics_aics_input_description_set() local
453 result = bt_mics_aics_description_set(NULL, mics_included.aics[index], in cmd_mics_aics_input_description_set()
455 if (result != 0) { in cmd_mics_aics_input_description_set()
456 shell_error(sh, "Fail: %d", result); in cmd_mics_aics_input_description_set()
459 return result; in cmd_mics_aics_input_description_set()