|
|
@ -2708,12 +2708,20 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) |
|
|
|
struct stream_in *in = NULL; /* if non-NULL, then force input to standby */ |
|
|
|
struct stream_in *in = NULL; /* if non-NULL, then force input to standby */ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s out->devices(%d) adev->mode(%d)", |
|
|
|
ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s out->devices(%#x) " |
|
|
|
__func__, out->usecase, use_case_table[out->usecase], kvpairs, out->devices, adev->mode); |
|
|
|
"adev->mode(%#x)", |
|
|
|
|
|
|
|
__func__, out->usecase, use_case_table[out->usecase], kvpairs, |
|
|
|
|
|
|
|
out->devices, adev->mode); |
|
|
|
|
|
|
|
|
|
|
|
parms = str_parms_create_str(kvpairs); |
|
|
|
parms = str_parms_create_str(kvpairs); |
|
|
|
ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value)); |
|
|
|
ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value)); |
|
|
|
if (ret >= 0) { |
|
|
|
if (ret >= 0) { |
|
|
|
val = atoi(value); |
|
|
|
val = atoi(value); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALOGV("%s: routing: usecase(%d: %s) devices=(%#x) adev->mode(%#x)", |
|
|
|
|
|
|
|
__func__, out->usecase, use_case_table[out->usecase], val, |
|
|
|
|
|
|
|
adev->mode); |
|
|
|
|
|
|
|
|
|
|
|
pthread_mutex_lock(&adev->lock_inputs); |
|
|
|
pthread_mutex_lock(&adev->lock_inputs); |
|
|
|
lock_output_stream(out); |
|
|
|
lock_output_stream(out); |
|
|
|
pthread_mutex_lock(&adev->lock); |
|
|
|
pthread_mutex_lock(&adev->lock); |
|
|
|