/*
* audio-hal
*
- * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#endif
#include "tizen-audio-internal.h"
+#include "tizen-audio-impl.h"
audio_return_t _audio_ctrl_init(audio_hal_t *ah)
{
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
- audio_ret = _mixer_control_init(ah);
+ audio_ret = _mixer_control_init(ah);
return audio_ret;
}
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
- audio_ret = _mixer_control_deinit(ah);
+ audio_ret = _mixer_control_deinit(ah);
return audio_ret;
}
{
int err;
- AUDIO_LOG_INFO("Try to close PCM handle 0x%x", pcm_handle);
+ AUDIO_LOG_INFO("Try to close PCM handle %p", pcm_handle);
#ifdef __USE_TINYALSA__
if ((err = pcm_close(pcm_handle)) < 0) {
break;
}
}
- } else
+ } else {
for (dev_count = 0; devices[dev_count]; dev_count++);
+ }
}
__dump_use_case(UCM_PREFIX_REQUESTED, verb, devices, dev_count, NULL, 0);