summaryrefslogtreecommitdiff
path: root/audiotest
diff options
context:
space:
mode:
Diffstat (limited to 'audiotest')
-rw-r--r--audiotest/avsys-audio-test.c8
-rw-r--r--audiotest/avsys-audio-volume-dump.c2
2 files changed, 5 insertions, 5 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(&param, sizeof(avsys_audio_param_t), '\0');
+ memset(&param, '\0', sizeof(avsys_audio_param_t));
if (__make_param(OP_PLAYBACK, mode, routing, &param)) {
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(&param, sizeof(avsys_audio_param_t), '\0');
+ memset(&param, '\0', sizeof(avsys_audio_param_t));
if (__make_param(OP_CAPTURE, mode, routing, &param)) {
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;
diff --git a/audiotest/avsys-audio-volume-dump.c b/audiotest/avsys-audio-volume-dump.c
index 76a97a5..793f77f 100644
--- a/audiotest/avsys-audio-volume-dump.c
+++ b/audiotest/avsys-audio-volume-dump.c
@@ -56,7 +56,7 @@ int main(int argc, char* argv[])
}
else if(argc == 1)
{
- strncpy(filepath, VOLUME_FILE_PATH, sizeof(filepath)-1);
+ strncpy(filepath, AVSYS_VOLUME_INI_TEMP_PATH, sizeof(filepath)-1);
fprintf(stderr,"Use default file path %s\n", filepath);
}