diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2015-12-15 15:47:17 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2016-01-08 16:38:42 +0900 |
commit | d23d4688a3ee16b90f1fe6de41a52f75021c79f3 (patch) | |
tree | bfa9efe3b493441546cb3c762c9d4b31b079d129 /tizen-audio-util.c | |
parent | 31d378008a07edffb5fac7f9ee340aa4d4d6fcf5 (diff) | |
download | audio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.tar.gz audio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.tar.bz2 audio-hal-sc7727-d23d4688a3ee16b90f1fe6de41a52f75021c79f3.zip |
Modification for routing path properly(voice call support)submit/tizen_common/20160218.142243submit/tizen/20160111.115046submit/tizen/20160111.114534accepted/tizen/wearable/20160111.230440accepted/tizen/wearable/20160111.230402accepted/tizen/tv/20160111.230435accepted/tizen/tv/20160111.230345accepted/tizen/mobile/20160111.230423accepted/tizen/mobile/20160111.230310accepted/tizen_wearableaccepted/tizen_tv
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.c | 14 |
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; } |