diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:48:53 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:48:53 +0900 |
commit | 785814c493c819a9f94a083a69ad42a63f221386 (patch) | |
tree | 92f024acac4b80e82a1bfe33ce0ec6778ae1a7bb /audiotest/avsys-audio-test.c | |
parent | b8e758c1624a163a988aa868fbf3da19e2612f6c (diff) | |
download | avsystem-785814c493c819a9f94a083a69ad42a63f221386.tar.gz avsystem-785814c493c819a9f94a083a69ad42a63f221386.tar.bz2 avsystem-785814c493c819a9f94a083a69ad42a63f221386.zip |
Tizen 2.1 base
Diffstat (limited to 'audiotest/avsys-audio-test.c')
-rw-r--r-- | audiotest/avsys-audio-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audiotest/avsys-audio-test.c b/audiotest/avsys-audio-test.c index c6a53d5..be17305 100644 --- a/audiotest/avsys-audio-test.c +++ b/audiotest/avsys-audio-test.c @@ -76,7 +76,7 @@ int __make_param(int op, int mode, int routing, avsys_audio_param_t *param) param->priority = AVSYS_AUDIO_PRIORITY_NORMAL; param->vol_type = AVSYS_AUDIO_VOLUME_TYPE_SYSTEM; - param->bluetooth = routing; + param->handle_route = routing; switch (mode) { case 0: @@ -118,7 +118,7 @@ int _playback(int mode, int routing, char *filename) if (!filename) return -1; - memset(¶m, sizeof(avsys_audio_param_t), '\0'); + memset(¶m, '\0', sizeof(avsys_audio_param_t)); if (__make_param(OP_PLAYBACK, mode, routing, ¶m)) { printf("Can not make audio parameter\n"); @@ -177,7 +177,7 @@ int _capture(int mode, int routing, char *filename) printf("[%s] real filename :%s\n", __func__, namebuffer); - memset(¶m, sizeof(avsys_audio_param_t), '\0'); + memset(¶m, '\0', sizeof(avsys_audio_param_t)); if (__make_param(OP_CAPTURE, mode, routing, ¶m)) { printf("Can not make audio parameter\n"); @@ -196,7 +196,7 @@ int _capture(int mode, int routing, char *filename) goto FAIL; } - fd = open(namebuffer, O_WRONLY | O_CREAT); + fd = open(namebuffer, O_WRONLY | O_CREAT, 0644); if (fd == -1) { printf("Can not open file %s, %s\n", namebuffer, strerror(errno)); goto FAIL; |