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;
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__);
int err = AVSYS_STATE_SUCCESS;
avsys_audio_conf conf = { 0, };
- /* Check root user */
- err = avsys_check_root_privilege();
- if (AVSYS_FAIL(err)) {
- return err;
- }
-
temp = &control;
avsys_assert(AVSYS_SUCCESS(avsys_audio_create_sync(AVSYS_AUDIO_SYNC_IDEN_PATH)));
avsys_assert(AVSYS_SUCCESS(avsys_audio_create_shm(AVSYS_AUDIO_SHM_IDEN_PATH)));
int backup_debug = 0;
avsys_audio_conf conf = { 0, };
- /* Check root user */
- err = avsys_check_root_privilege();
- if (AVSYS_FAIL(err)) {
- return err;
- }
-
temp = &control;
if (AVSYS_FAIL(avsys_audio_get_shm(AVSYS_AUDIO_SHM_IDEN_PATH, (void **)temp))) {
avsys_error_r(AVAUDIO, "avsys_audio_get_shm() failed in %s\n", __func__);