return AUDIO_RET_OK;
}
-audio_return_t audio_pcm_open(void *audio_handle, void **pcm_handle, uint32_t direction, void *sample_spec, uint32_t period_size, uint32_t periods)
+audio_return_t audio_pcm_open(void *audio_handle, const char *card, const char *device, uint32_t direction, void *sample_spec,
+ uint32_t period_size, uint32_t periods, void **pcm_handle)
{
audio_return_t audio_ret = AUDIO_RET_OK;
audio_hal_t *ah = NULL;
AUDIO_RETURN_VAL_IF_FAIL((period_size > 0), AUDIO_ERR_PARAMETER);
AUDIO_RETURN_VAL_IF_FAIL((periods > 0), AUDIO_ERR_PARAMETER);
- if ((audio_ret = _pcm_open(pcm_handle, direction, sample_spec, period_size, periods)))
+ if ((audio_ret = _pcm_open(card, device, direction, sample_spec, period_size, periods, pcm_handle)))
return audio_ret;
ah = (audio_hal_t*)audio_handle;
ah->device.pcm_count++;
- AUDIO_LOG_INFO("Opening PCM handle 0x%x", *pcm_handle);
+ AUDIO_LOG_INFO("Opening PCM handle 0x%x", (unsigned int)*pcm_handle);
return AUDIO_RET_OK;
}
audio_ret = _pcm_set_params(pcm_handle, direction, sample_spec, period_size, periods);
return audio_ret;
-}
\ No newline at end of file
+}