Lines Matching refs:parms
470 static int parse_snd_card_status(struct str_parms * parms, int * card, in parse_snd_card_status() argument
476 int ret = str_parms_get_str(parms, "SND_CARD_STATUS", value, sizeof(value)); in parse_snd_card_status()
2914 static int parse_compress_metadata(struct stream_out *out, struct str_parms *parms) in parse_compress_metadata() argument
2920 if (!out || !parms) { in parse_compress_metadata()
2924 ret = str_parms_get_str(parms, AUDIO_OFFLOAD_CODEC_DELAY_SAMPLES, value, sizeof(value)); in parse_compress_metadata()
2931 ret = str_parms_get_str(parms, AUDIO_OFFLOAD_CODEC_PADDING_SAMPLES, value, sizeof(value)); in parse_compress_metadata()
2951 static int get_alive_usb_card(struct str_parms* parms) { in get_alive_usb_card() argument
2953 if ((str_parms_get_int(parms, "card", &card) >= 0) && in get_alive_usb_card()
2966 struct str_parms *parms; in out_set_parameters() local
2975 parms = str_parms_create_str(kvpairs); in out_set_parameters()
2976 ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value)); in out_set_parameters()
3053 (card = get_alive_usb_card(parms)) >= 0) { in out_set_parameters()
3144 parse_compress_metadata(out, parms); in out_set_parameters()
3147 str_parms_destroy(parms); in out_set_parameters()
3366 static void out_snd_mon_cb(void * stream, struct str_parms * parms) in out_snd_mon_cb() argument
3368 if (!stream || !parms) in out_snd_mon_cb()
3376 if (parse_snd_card_status(parms, &card, &status) < 0) in out_snd_mon_cb()
4198 struct str_parms *parms; in in_set_parameters() local
4205 parms = str_parms_create_str(kvpairs); in in_set_parameters()
4207 ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_INPUT_SOURCE, value, sizeof(value)); in in_set_parameters()
4220 ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value)); in in_set_parameters()
4230 (card = get_alive_usb_card(parms)) >= 0) { in in_set_parameters()
4254 str_parms_destroy(parms); in in_set_parameters()
4321 static void in_snd_mon_cb(void * stream, struct str_parms * parms) in in_snd_mon_cb() argument
4323 if (!stream || !parms) in in_snd_mon_cb()
4331 if (parse_snd_card_status(parms, &card, &status) < 0) in in_snd_mon_cb()
5490 struct str_parms *parms; in adev_set_parameters() local
5502 parms = str_parms_create_str(kvpairs); in adev_set_parameters()
5503 status = voice_set_parameters(adev, parms); in adev_set_parameters()
5508 ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_BT_NREC, value, sizeof(value)); in adev_set_parameters()
5517 ret = str_parms_get_str(parms, "screen_state", value, sizeof(value)); in adev_set_parameters()
5525 ret = str_parms_get_int(parms, "rotation", &val); in adev_set_parameters()
5560 ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_BT_SCO_WB, value, sizeof(value)); in adev_set_parameters()
5565 ret = str_parms_get_str(parms, "BT_SCO", value, sizeof(value)); in adev_set_parameters()
5573 ret = str_parms_get_str(parms, AUDIO_PARAMETER_DEVICE_CONNECT, value, sizeof(value)); in adev_set_parameters()
5577 ret = str_parms_get_str(parms, "card", value, sizeof(value)); in adev_set_parameters()
5583 ret = str_parms_get_str(parms, "card", value, sizeof(value)); in adev_set_parameters()
5591 ret = str_parms_get_str(parms, AUDIO_PARAMETER_DEVICE_DISCONNECT, value, sizeof(value)); in adev_set_parameters()
5595 ret = str_parms_get_str(parms, "card", value, sizeof(value)); in adev_set_parameters()
5601 ret = str_parms_get_str(parms, "card", value, sizeof(value)); in adev_set_parameters()
5609 audio_extn_hfp_set_parameters(adev, parms); in adev_set_parameters()
5610 audio_extn_ma_set_parameters(adev, parms); in adev_set_parameters()
5612 status = audio_extn_a2dp_set_parameters(parms, &a2dp_reconfig); in adev_set_parameters()
5636 ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_CAMERA_FACING, value, sizeof(value)); in adev_set_parameters()
5662 str_parms_destroy(parms); in adev_set_parameters()
6338 static void adev_snd_mon_cb(void * stream __unused, struct str_parms * parms) in adev_snd_mon_cb() argument
6343 if (!parms) in adev_snd_mon_cb()
6346 if (parse_snd_card_status(parms, &card, &status) < 0) in adev_snd_mon_cb()