[Version] 0.1.10
[Issue Type] Build
Change-Id: Ic7781fc3f792aec4e6fbb4fe74ca11728c45010f
Name: audio-hal-wm1831-tw2
Summary: TIZEN Audio HAL for WM1831(TW2)
Name: audio-hal-wm1831-tw2
Summary: TIZEN Audio HAL for WM1831(TW2)
Release: 0
Group: System/Libraries
License: Apache-2.0
Release: 0
Group: System/Libraries
License: Apache-2.0
- AUDIO_LOG_INFO("PCM handle 0x%x start", pcm_handle);
+ AUDIO_LOG_INFO("PCM handle %p start", pcm_handle);
- AUDIO_LOG_INFO("PCM handle 0x%x stop", pcm_handle);
+ AUDIO_LOG_INFO("PCM handle %p stop", pcm_handle);
err = pcm_get_htimestamp(pcm_handle, &frames_avail, &tspec);
if (err < 0) {
err = pcm_get_htimestamp(pcm_handle, &frames_avail, &tspec);
if (err < 0) {
- AUDIO_LOG_ERROR("Could not get avail and timespec at PCM handle 0x%x : %d", pcm_handle, err);
+ AUDIO_LOG_ERROR("Could not get avail and timespec at PCM handle %p : %d", pcm_handle, err);
return AUDIO_ERR_IOCTL;
}
return AUDIO_ERR_IOCTL;
}
snd_pcm_sframes_t frames_avail;
if ((frames_avail = snd_pcm_avail(pcm_handle)) < 0) {
snd_pcm_sframes_t frames_avail;
if ((frames_avail = snd_pcm_avail(pcm_handle)) < 0) {
- AUDIO_LOG_ERROR("Could not get avail at PCM handle 0x%x : %d", pcm_handle, frames_avail);
+ AUDIO_LOG_ERROR("Could not get avail at PCM handle %p : %ld", pcm_handle, frames_avail);
return AUDIO_ERR_IOCTL;
}
return AUDIO_ERR_IOCTL;
}
frames_written = snd_pcm_writei(pcm_handle, buffer, (snd_pcm_uframes_t) frames);
if (frames_written < 0) {
frames_written = snd_pcm_writei(pcm_handle, buffer, (snd_pcm_uframes_t) frames);
if (frames_written < 0) {
- AUDIO_LOG_ERROR("Failed to write pcm : %d", frames_written);
+ AUDIO_LOG_ERROR("Failed to write pcm : %ld", frames_written);
return AUDIO_ERR_IOCTL;
}
return AUDIO_ERR_IOCTL;
}
frames_read = snd_pcm_readi(pcm_handle, buffer, (snd_pcm_uframes_t)frames);
if (frames_read < 0) {
frames_read = snd_pcm_readi(pcm_handle, buffer, (snd_pcm_uframes_t)frames);
if (frames_read < 0) {
- AUDIO_LOG_ERROR("Failed to read pcm : %d", frames_read);
+ AUDIO_LOG_ERROR("Failed to read pcm : %ld", frames_read);
return AUDIO_ERR_IOCTL;
}
return AUDIO_ERR_IOCTL;
}
_stop_threshold = config->stop_threshold;
_silence_threshold = config->silence_threshold;
_stop_threshold = config->stop_threshold;
_silence_threshold = config->silence_threshold;
- AUDIO_LOG_DEBUG("_pcm_get_params (handle 0x%x, format %d, rate %d, channels %d, period_size %d, periods %d, buffer_size %d)", pcm_handle, config->format, config->rate, config->channels, config->period_size, config->period_count, _buffer_size);
+ AUDIO_LOG_DEBUG("_pcm_get_params (handle %p, format %d, rate %u, channels %u, period_size %u, periods %u, buffer_size %u)",
+ pcm_handle, config->format, config->rate, config->channels, config->period_size, config->period_count, _buffer_size);
#else /* alsa-lib */
int err;
audio_pcm_sample_spec_t *ss;
#else /* alsa-lib */
int err;
audio_pcm_sample_spec_t *ss;
(err = snd_pcm_hw_params_get_format(hwparams, &_format)) < 0 ||
(err = snd_pcm_hw_params_get_rate(hwparams, &_rate, &dir)) < 0 ||
(err = snd_pcm_hw_params_get_channels(hwparams, &_channels)) < 0) {
(err = snd_pcm_hw_params_get_format(hwparams, &_format)) < 0 ||
(err = snd_pcm_hw_params_get_rate(hwparams, &_rate, &dir)) < 0 ||
(err = snd_pcm_hw_params_get_channels(hwparams, &_channels)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_get_{period_size|buffer_size|periods|format|rate|channels}() failed : %s", err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_get_{period_size|buffer_size|periods|format|rate|channels}() failed : %d", err);
return AUDIO_ERR_PARAMETER;
}
return AUDIO_ERR_PARAMETER;
}
(err = snd_pcm_sw_params_get_stop_threshold(swparams, &_stop_threshold)) < 0 ||
(err = snd_pcm_sw_params_get_silence_threshold(swparams, &_silence_threshold)) < 0 ||
(err = snd_pcm_sw_params_get_avail_min(swparams, &_avail_min)) < 0) {
(err = snd_pcm_sw_params_get_stop_threshold(swparams, &_stop_threshold)) < 0 ||
(err = snd_pcm_sw_params_get_silence_threshold(swparams, &_silence_threshold)) < 0 ||
(err = snd_pcm_sw_params_get_avail_min(swparams, &_avail_min)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_sw_params_get_{start_threshold|stop_threshold|silence_threshold|avail_min}() failed : %s", err);
+ AUDIO_LOG_ERROR("snd_pcm_sw_params_get_{start_threshold|stop_threshold|silence_threshold|avail_min}() failed : %d", err);
- AUDIO_LOG_DEBUG("_pcm_get_params (handle 0x%x, format %d, rate %d, channels %d, period_size %d, periods %d, buffer_size %d)", pcm_handle, _format, _rate, _channels, _period_size, _periods, _buffer_size);
+ AUDIO_LOG_DEBUG("_pcm_get_params (handle %p, format %d, rate %u, channels %u, period_size %lu, periods %u, buffer_size %lu)",
+ pcm_handle, _format, _rate, _channels, _period_size, _periods, _buffer_size);
#endif
return AUDIO_RET_OK;
#endif
return AUDIO_RET_OK;
_buffer_size = period_size * periods;
if ((err = snd_pcm_hw_params_set_buffer_size(pcm_handle, hwparams, _buffer_size)) < 0) {
_buffer_size = period_size * periods;
if ((err = snd_pcm_hw_params_set_buffer_size(pcm_handle, hwparams, _buffer_size)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_set_buffer_size(%u) failed : %d", _buffer_size, err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_set_buffer_size(%lu) failed : %d", _buffer_size, err);
return AUDIO_ERR_PARAMETER;
}
return AUDIO_ERR_PARAMETER;
}
return AUDIO_ERR_IOCTL;
}
return AUDIO_ERR_IOCTL;
}
- AUDIO_LOG_DEBUG("_pcm_set_params (handle 0x%x, format %d, rate %d, channels %d, period_size %d, periods %d, buffer_size %d)", pcm_handle, ss.format, ss.rate, ss.channels, period_size, periods, _buffer_size);
+ AUDIO_LOG_DEBUG("_pcm_set_params (handle %p, format %d, rate %u, channels %u, period_size %u, periods %u, buffer_size %lu)",
+ pcm_handle, ss.format, ss.rate, ss.channels, period_size, periods, _buffer_size);
#endif
return AUDIO_RET_OK;
#endif
return AUDIO_RET_OK;
if ((audio_ret = _pcm_open(card, device, direction, sample_spec, period_size, periods, pcm_handle)))
return audio_ret;
if ((audio_ret = _pcm_open(card, device, direction, sample_spec, period_size, periods, pcm_handle)))
return audio_ret;
- AUDIO_LOG_INFO("Opening PCM handle 0x%x", (unsigned int)*pcm_handle);
+ AUDIO_LOG_INFO("Opening PCM handle %p", *pcm_handle);