Lines Matching refs:param

456 int bt_aics_register(struct bt_aics *aics, struct bt_aics_register_param *param)  in bt_aics_register()  argument
466 CHECKIF(!param) { in bt_aics_register()
480 CHECKIF(param->mute > BT_AICS_STATE_MUTE_DISABLED) { in bt_aics_register()
481 LOG_DBG("Invalid AICS mute value: %u", param->mute); in bt_aics_register()
485 CHECKIF(param->gain_mode > BT_AICS_MODE_AUTO) { in bt_aics_register()
486 LOG_DBG("Invalid AICS mode value: %u", param->gain_mode); in bt_aics_register()
490 CHECKIF(param->type > BT_AICS_INPUT_TYPE_STREAMING) { in bt_aics_register()
491 LOG_DBG("Invalid AICS input type value: %u", param->type); in bt_aics_register()
495 CHECKIF(param->units == 0) { in bt_aics_register()
500 CHECKIF(!(param->min_gain <= param->max_gain)) { in bt_aics_register()
502 param->min_gain, param->max_gain); in bt_aics_register()
506 CHECKIF(param->gain < param->min_gain || param->gain > param->max_gain) { in bt_aics_register()
509 param->gain, param->min_gain, param->max_gain); in bt_aics_register()
513 aics->srv.state.gain = param->gain; in bt_aics_register()
514 aics->srv.state.mute = param->mute; in bt_aics_register()
515 aics->srv.state.gain_mode = param->gain_mode; in bt_aics_register()
516 aics->srv.gain_settings.units = param->units; in bt_aics_register()
517 aics->srv.gain_settings.minimum = param->min_gain; in bt_aics_register()
518 aics->srv.gain_settings.maximum = param->max_gain; in bt_aics_register()
519 aics->srv.type = param->type; in bt_aics_register()
520 aics->srv.status = param->status ? BT_AICS_STATUS_ACTIVE : BT_AICS_STATUS_INACTIVE; in bt_aics_register()
521 aics->srv.cb = param->cb; in bt_aics_register()
526 if (param->description) { in bt_aics_register()
527 (void)utf8_lcpy(aics->srv.description, param->description, in bt_aics_register()
530 strcmp(aics->srv.description, param->description)) { in bt_aics_register()
542 if (param->desc_writable) { in bt_aics_register()