diff options
author | Seungbae Shin <seungbae.shin@samsung.com> | 2013-03-23 22:47:17 +0900 |
---|---|---|
committer | Seungbae Shin <seungbae.shin@samsung.com> | 2013-03-23 22:55:22 +0900 |
commit | c78f38123385e110129a0c135065f6fb84df67cc (patch) | |
tree | 1e074ad918539f8931cc3b31121893fb6ebd243f /avsys-audio-handle.c | |
parent | 6966dc1587a291567829b00dedfe6202df894b91 (diff) | |
download | avsystem-c78f38123385e110129a0c135065f6fb84df67cc.tar.gz avsystem-c78f38123385e110129a0c135065f6fb84df67cc.tar.bz2 avsystem-c78f38123385e110129a0c135065f6fb84df67cc.zip |
Remove checking root privilege for handle/path init
Change-Id: I2e449d1d6a97350f4c7c43ec90bebfa24f435369
Diffstat (limited to 'avsys-audio-handle.c')
-rw-r--r-- | avsys-audio-handle.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/avsys-audio-handle.c b/avsys-audio-handle.c index 3cbe050..8eca6b3 100644 --- a/avsys-audio-handle.c +++ b/avsys-audio-handle.c @@ -80,16 +80,10 @@ static int g_default_volume[AVSYS_AUDIO_VOLUME_TYPE_MAX] = { EXPORT_API int avsys_audio_handle_init(void) { - int i, err = 0; + int i = 0; avsys_audio_handle_info_t *control = NULL; avsys_audio_handle_info_t **temp = NULL; - /* Check root user */ - err = avsys_check_root_privilege(); - if (AVSYS_FAIL(err)) { - return err; - } - if (AVSYS_FAIL(avsys_audio_create_sync(AVSYS_AUDIO_SYNC_IDEN_HANDLE))) { avsys_error(AVAUDIO, "avsys_audio_create_sync() failed in %s\n", __func__); return AVSYS_STATE_ERR_INTERNAL; @@ -147,19 +141,13 @@ int avsys_audio_handle_fini(void) EXPORT_API int avsys_audio_handle_reset(int *volume_value) { - int i = 0, err = 0; + int i = 0; long long int flag = 0x01; avsys_audio_handle_info_t *control = NULL; avsys_audio_handle_info_t **temp = NULL; int * volumes; temp = &control; - /* Check root user */ - err = avsys_check_root_privilege(); - if (AVSYS_FAIL(err)) { - return err; - } - AVSYS_GET_SHM(temp,AVSYS_STATE_ERR_INTERNAL); if (control == NULL) { avsys_error(AVAUDIO, "control is null in %s\n", __func__); |