libaudio: fix logging (we should send this upstream)

This commit is contained in:
codeworkx 2011-06-16 17:59:09 +02:00
parent 0bec8c90ce
commit f976cd34c5

View File

@ -240,7 +240,7 @@ status_t setHardwareParams(alsa_handle_t *handle)
goto done;
}
LOGV("Set %s PCM format to %s (%s)", streamName(), formatName, formatDesc);
LOGV("Set %s PCM format to %s (%s)", streamName(handle), formatName, formatDesc);
err = snd_pcm_hw_params_set_channels(handle->handle, hardwareParams,
handle->channels);
@ -251,7 +251,7 @@ status_t setHardwareParams(alsa_handle_t *handle)
}
LOGV("Using %i %s for %s.", handle->channels,
handle->channels == 1 ? "channel" : "channels", streamName());
handle->channels == 1 ? "channel" : "channels", streamName(handle));
err = snd_pcm_hw_params_set_rate_near(handle->handle, hardwareParams,
&requestedRate, 0);
@ -266,7 +266,7 @@ status_t setHardwareParams(alsa_handle_t *handle)
LOGW("Requested rate (%u HZ) does not match actual rate (%u HZ)",
handle->sampleRate, requestedRate);
else
LOGV("Set %s sample rate to %u HZ", stream, requestedRate);
LOGV("Set %s sample rate to %u HZ", streamName(handle), requestedRate);
#ifdef DISABLE_HARWARE_RESAMPLING
// Disable hardware re-sampling.