summaryrefslogtreecommitdiff
path: root/tizen-audio-util.c
diff options
context:
space:
mode:
authorSangchul Lee <sc11.lee@samsung.com>2015-12-15 15:47:17 +0900
committerSangchul Lee <sc11.lee@samsung.com>2016-01-08 16:38:42 +0900
commitd23d4688a3ee16b90f1fe6de41a52f75021c79f3 (patch)
treebfa9efe3b493441546cb3c762c9d4b31b079d129 /tizen-audio-util.c
parent31d378008a07edffb5fac7f9ee340aa4d4d6fcf5 (diff)
downloadaudio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.tar.gz
audio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.tar.bz2
audio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.zip
Change verb name. Remove unused verb and modifiers. Add tizen-audio-modem.c for IPC with modem. Add audio_set_message_cb() API for message forwading to pulseaudio. Support for voice call. [Version] 0.1.3 [Profile] Mobile [Issue Type] Feature Enhancement and Bug Fix Change-Id: I33bb31bbece9d26a781b342038b45db3cf846585 Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Diffstat (limited to 'tizen-audio-util.c')
-rw-r--r--tizen-audio-util.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/tizen-audio-util.c b/tizen-audio-util.c
index 4e06923..20b79eb 100644
--- a/tizen-audio-util.c
+++ b/tizen-audio-util.c
@@ -73,16 +73,6 @@ audio_return_t _audio_mixer_control_set_param(audio_hal_t *ah, const char* ctl_n
return AUDIO_RET_OK;
}
-audio_return_t audio_mixer_control_get_value(audio_hal_t *ah, const char *ctl_name, int *val)
-{
- audio_return_t audio_ret = AUDIO_RET_OK;
-
- AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
-
- audio_ret = _audio_mixer_control_get_value(ah, ctl_name, val);
- return audio_ret;
-}
-
audio_return_t _audio_mixer_control_get_value(audio_hal_t *ah, const char *ctl_name, int *val)
{
snd_ctl_t *handle;
@@ -170,8 +160,6 @@ audio_return_t _audio_mixer_control_set_value(audio_hal_t *ah, const char *ctl_n
snd_ctl_elem_id_t *id;
snd_ctl_elem_info_t *info;
snd_ctl_elem_type_t type;
-
- char *card_name = NULL;
int ret = 0, count = 0, i = 0;
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -181,7 +169,7 @@ audio_return_t _audio_mixer_control_set_value(audio_hal_t *ah, const char *ctl_n
ret = snd_ctl_open(&handle, ALSA_DEFAULT_CARD, 0);
if (ret < 0) {
- AUDIO_LOG_ERROR("snd_ctl_open error, card: %s: %s", card_name, snd_strerror(ret));
+ AUDIO_LOG_ERROR("snd_ctl_open error, card: %s: %s", ALSA_DEFAULT_CARD, snd_strerror(ret));
pthread_mutex_unlock(&(ah->mixer.mutex));
return AUDIO_ERR_IOCTL;
}