audio: Improve logging in out_set_parameters()

Change-Id: I5800307905870ca836383e7d492a7472a9a386be
tirimbino
Andreas Schneider 8 years ago committed by Christopher N. Hesse
parent 49b9dcb284
commit dd8a36941b
  1. 12
      audio/audio_hw.c

@ -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 */
#endif
ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s out->devices(%d) adev->mode(%d)",
__func__, out->usecase, use_case_table[out->usecase], kvpairs, out->devices, adev->mode);
ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s out->devices(%#x) "
"adev->mode(%#x)",
__func__, out->usecase, use_case_table[out->usecase], kvpairs,
out->devices, adev->mode);
parms = str_parms_create_str(kvpairs);
ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value));
if (ret >= 0) {
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);
lock_output_stream(out);
pthread_mutex_lock(&adev->lock);

Loading…
Cancel
Save