summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungbae Shin <seungbae.shin@samsung.com>2012-08-22 11:36:03 +0900
committerSeungbae Shin <seungbae.shin@samsung.com>2012-08-22 11:36:03 +0900
commit3a3385014d5efcbb756528a748b8a9777efb50c5 (patch)
tree712609e500edd709693217c9edccf974ce2ee3ed
parentd35f10bcf7df8f242062beb7e6e2462ef81f9807 (diff)
downloadaudio-io-master.tar.gz
audio-io-master.tar.bz2
audio-io-master.zip
-rwxr-xr-xTC/_export_env.sh8
-rwxr-xr-xTC/_export_target_env.sh7
-rwxr-xr-xTC/build.sh16
-rwxr-xr-xTC/clean.sh11
-rw-r--r--TC/config2
-rwxr-xr-xTC/execute.sh15
-rw-r--r--TC/media_samsung.mp3bin1941924 -> 0 bytes
-rwxr-xr-xTC/testcase/Makefile25
-rw-r--r--TC/testcase/tslist2
-rw-r--r--TC/testcase/utc_media_audio_input.c307
-rw-r--r--TC/testcase/utc_media_audio_output.c377
-rwxr-xr-xTC/tet_scen7
-rw-r--r--TC/tetbuild.cfg5
-rw-r--r--TC/tetclean.cfg5
-rw-r--r--TC/tetexec.cfg5
-rw-r--r--debian/README0
-rw-r--r--debian/capi-media-audio-io-dev.install4
-rw-r--r--debian/capi-media-audio-io-dev.postinst1
-rw-r--r--debian/capi-media-audio-io.install1
-rw-r--r--debian/capi-media-audio-io.postinst1
-rw-r--r--debian/changelog87
-rw-r--r--debian/compat1
-rw-r--r--debian/control22
-rwxr-xr-xdebian/rules68
-rw-r--r--packaging/capi-media-audio-io.spec1
25 files changed, 0 insertions, 978 deletions
diff --git a/TC/_export_env.sh b/TC/_export_env.sh
deleted file mode 100755
index 72a11ec..0000000
--- a/TC/_export_env.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-. ./config
-export TET_INSTALL_PATH=$TET_INSTALL_HOST_PATH # tetware root path
-export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target # tetware target path
-export PATH=$TET_TARGET_PATH/bin:$PATH
-export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
-export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh
deleted file mode 100755
index 5ddaa53..0000000
--- a/TC/_export_target_env.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-. ./config
-export TET_INSTALL_PATH=$TET_INSTALL_TARGET_PATH # path to path
-export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-export PATH=$TET_TARGET_PATH/bin:$PATH
-export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
-export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/build.sh b/TC/build.sh
deleted file mode 100755
index 72aad6c..0000000
--- a/TC/build.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-. ./_export_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -c -p ./
-tcc -b -j $JOURNAL_RESULT -p ./
-grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/clean.sh b/TC/clean.sh
deleted file mode 100755
index 29743e0..0000000
--- a/TC/clean.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-. ./_export_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-RESULT_DIR=results
-
-tcc -c -p ./ # executing tcc, with clean option (-c)
-rm -r $RESULT_DIR
-rm -r tet_tmp_dir
-rm testcase/tet_captured
diff --git a/TC/config b/TC/config
deleted file mode 100644
index 04684f0..0000000
--- a/TC/config
+++ /dev/null
@@ -1,2 +0,0 @@
-TET_INSTALL_HOST_PATH=/home/rookiejava/dts_tool/TETware
-TET_INSTALL_TARGET_PATH=/mnt/nfs/dts_tool/TETware
diff --git a/TC/execute.sh b/TC/execute.sh
deleted file mode 100755
index a4f6095..0000000
--- a/TC/execute.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-. ./_export_target_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -e -j $JOURNAL_RESULT -p ./
-grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/media_samsung.mp3 b/TC/media_samsung.mp3
deleted file mode 100644
index d871c5d..0000000
--- a/TC/media_samsung.mp3
+++ /dev/null
Binary files differ
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
deleted file mode 100755
index 04ee11e..0000000
--- a/TC/testcase/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-CC ?= gcc
-
-C_FILES = $(shell ls *.c)
-
-PKGS = capi-media-audio-io dlog glib-2.0
-
-LDFLAGS = `pkg-config --libs $(PKGS)`
-LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
-
-CFLAGS = -I. `pkg-config --cflags $(PKGS)`
-CFLAGS += -I$(TET_ROOT)/inc/tet3
-CFLAGS += -Wall
-
-#TARGETS = $(C_FILES:%.c=tc-%)
-TCS := $(shell ls -1 *.c | cut -d. -f1)
-
-all: $(TCS)
-
-%: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
-
-clean:
- rm -f $(TCS)
diff --git a/TC/testcase/tslist b/TC/testcase/tslist
deleted file mode 100644
index c4f5399..0000000
--- a/TC/testcase/tslist
+++ /dev/null
@@ -1,2 +0,0 @@
-/testcase/utc_media_audio_input
-/testcase/utc_media_audio_output
diff --git a/TC/testcase/utc_media_audio_input.c b/TC/testcase/utc_media_audio_input.c
deleted file mode 100644
index 4755dbc..0000000
--- a/TC/testcase/utc_media_audio_input.c
+++ /dev/null
@@ -1,307 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-#include <tet_api.h>
-#include <media/audio_io.h>
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_audio_in_create_p(void);
-static void utc_media_audio_in_create_n(void);
-static void utc_media_audio_in_destroy_p(void);
-static void utc_media_audio_in_destroy_n(void);
-static void utc_media_audio_in_read_p(void);
-static void utc_media_audio_in_read_n(void);
-static void utc_media_audio_in_get_buffer_size_p(void);
-static void utc_media_audio_in_get_buffer_size_n(void);
-static void utc_media_audio_in_get_sample_rate_p(void);
-static void utc_media_audio_in_get_sample_rate_n(void);
-static void utc_media_audio_in_get_channel_p(void);
-static void utc_media_audio_in_get_channel_n(void);
-static void utc_media_audio_in_get_sample_type_p(void);
-static void utc_media_audio_in_get_sample_type_n(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_audio_in_create_p , POSITIVE_TC_IDX },
- { utc_media_audio_in_create_n , NEGATIVE_TC_IDX },
- { utc_media_audio_in_destroy_p, POSITIVE_TC_IDX },
- { utc_media_audio_in_destroy_n, NEGATIVE_TC_IDX },
- { utc_media_audio_in_read_p, POSITIVE_TC_IDX },
- { utc_media_audio_in_read_n, NEGATIVE_TC_IDX },
- { utc_media_audio_in_get_buffer_size_p, POSITIVE_TC_IDX },
- { utc_media_audio_in_get_buffer_size_n, NEGATIVE_TC_IDX },
- { utc_media_audio_in_get_sample_rate_p, POSITIVE_TC_IDX },
- { utc_media_audio_in_get_sample_rate_n, NEGATIVE_TC_IDX },
- { utc_media_audio_in_get_channel_p , POSITIVE_TC_IDX },
- { utc_media_audio_in_get_channel_n, NEGATIVE_TC_IDX },
- { utc_media_audio_in_get_sample_type_p, POSITIVE_TC_IDX },
- { utc_media_audio_in_get_sample_type_n, NEGATIVE_TC_IDX },
- { NULL, 0 },
-};
-
-static void startup(void)
-{
- /* start of TC */
-}
-
-static void cleanup(void)
-{
- /* end of TC */
-}
-
-static void utc_media_audio_in_create_p(void)
-{
- char* api_name = "audio_in_create";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_create_n(void)
-{
- char* api_name = "audio_in_create";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(45100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE, &input)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_destroy_p(void)
-{
- char* api_name = "audio_in_destroy";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE, &input)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_in_destroy(input)) == AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_destroy_n(void)
-{
- char* api_name = "audio_in_destroy";
- int ret;
- if ((ret = audio_in_destroy(NULL)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_read_p(void)
-{
- char* api_name = "audio_in_read";
- int ret, size;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE, &input)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_prepare(input);
- if ((ret = audio_in_get_buffer_size(input, &size)) == AUDIO_IO_ERROR_NONE)
- {
- char *buffer = NULL;
- buffer = alloca(size);
- if ((ret = audio_in_read(input, (void*)buffer, size)) > AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_read_n(void)
-{
- char* api_name = "audio_in_read";
- int ret, size;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE, &input)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_in_get_buffer_size(input, &size)) == AUDIO_IO_ERROR_NONE)
- {
- char *buffer = NULL;
- buffer = alloca(size);
- if ((ret = audio_in_read(input, (void*)buffer, 0)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_buffer_size_p(void)
-{
- char* api_name = "audio_in_get_buffer_size";
- int ret, size;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_in_get_buffer_size(input, &size)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_buffer_size_n(void)
-{
- char* api_name = "audio_in_get_buffer_size";
- int ret, size;
- audio_in_h input;
- if ((ret = audio_in_create(45100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) != AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_in_get_buffer_size(input, &size)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_sample_rate_p(void)
-{
- char* api_name = "audio_in_get_sample_rate";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) == AUDIO_IO_ERROR_NONE)
- {
- int sample_rate;
- if ((ret = audio_in_get_sample_rate(input, &sample_rate)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_sample_rate_n(void)
-{
- char* api_name = "audio_in_get_sample_rate";
- int ret, sample_rate;
- audio_in_h input = NULL;
- if ((ret = audio_in_get_sample_rate(input, &sample_rate)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_channel_p(void)
-{
- char* api_name = "audio_in_get_channel";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) == AUDIO_IO_ERROR_NONE)
- {
- audio_channel_e channel;
- if ((ret = audio_in_get_channel(input, &channel)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_channel_n(void)
-{
- char* api_name = "audio_in_get_channel";
- int ret;
- audio_channel_e channel;
- audio_in_h input = NULL;
- if ((ret = audio_in_get_channel(input, &channel)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_sample_type_p(void)
-{
- char* api_name = "audio_in_get_sample_type";
- int ret;
- audio_in_h input;
- if ((ret = audio_in_create(44100, AUDIO_CHANNEL_MONO ,AUDIO_SAMPLE_TYPE_S16_LE , &input)) == AUDIO_IO_ERROR_NONE)
- {
- audio_sample_type_e type;
- if ((ret = audio_in_get_sample_type(input, &type)) == AUDIO_IO_ERROR_NONE)
- {
- audio_in_destroy(input);
- dts_pass(api_name);
- }
- audio_in_destroy(input);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_in_get_sample_type_n(void)
-{
- char* api_name = "audio_in_get_sample_type";
- int ret;
- audio_sample_type_e type;
- audio_in_h input = NULL;
- if ((ret = audio_in_get_sample_type(input, &type)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
diff --git a/TC/testcase/utc_media_audio_output.c b/TC/testcase/utc_media_audio_output.c
deleted file mode 100644
index 7c924cf..0000000
--- a/TC/testcase/utc_media_audio_output.c
+++ /dev/null
@@ -1,377 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-#include <tet_api.h>
-#include <media/audio_io.h>
-
-#define AUDIO_FILE "/mnt/nfs/workspace/capi/media/audio-io/TC/media_samsung.mp3"
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_audio_out_create_p(void);
-static void utc_media_audio_out_create_n(void);
-static void utc_media_audio_out_destroy_p(void);
-static void utc_media_audio_out_destroy_n(void);
-static void utc_media_audio_out_write_p(void);
-static void utc_media_audio_out_write_n(void);
-static void utc_media_audio_out_get_buffer_size_p(void);
-static void utc_media_audio_out_get_buffer_size_n(void);
-static void utc_media_audio_out_get_sample_rate_p(void);
-static void utc_media_audio_out_get_sample_rate_n(void);
-static void utc_media_audio_out_get_channel_p(void);
-static void utc_media_audio_out_get_channel_n(void);
-static void utc_media_audio_out_get_sample_type_p(void);
-static void utc_media_audio_out_get_sample_type_n(void);
-static void utc_media_audio_out_get_sound_type_p(void);
-static void utc_media_audio_out_get_sound_type_n(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_audio_out_create_p , POSITIVE_TC_IDX },
- { utc_media_audio_out_create_n , NEGATIVE_TC_IDX },
- { utc_media_audio_out_destroy_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_destroy_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_write_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_write_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_get_buffer_size_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_get_buffer_size_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_get_sample_rate_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_get_sample_rate_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_get_channel_p , POSITIVE_TC_IDX },
- { utc_media_audio_out_get_channel_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_get_sample_type_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_get_sample_type_n, NEGATIVE_TC_IDX },
- { utc_media_audio_out_get_sound_type_p, POSITIVE_TC_IDX },
- { utc_media_audio_out_get_sound_type_n, NEGATIVE_TC_IDX },
- { NULL, 0 },
-};
-
-static void startup(void)
-{
- /* start of TC */
-}
-
-static void cleanup(void)
-{
- /* end of TC */
-}
-
-static void utc_media_audio_out_create_p(void)
-{
- char* api_name = "audio_out_create";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM, &output)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_create_n(void)
-{
- char* api_name = "audio_out_create";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(45100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE, SOUND_TYPE_SYSTEM , &output)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_destroy_p(void)
-{
- char* api_name = "audio_out_destroy";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE, SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_out_destroy(output)) == AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_destroy_n(void)
-{
- char* api_name = "audio_out_destroy";
- int ret;
- if ((ret = audio_out_destroy(NULL)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_write_p(void)
-{
- char* api_name = "audio_out_write";
- int ret, size;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE, SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_out_get_buffer_size(output, &size)) == AUDIO_IO_ERROR_NONE)
- {
- FILE *fp = NULL;
- fp = fopen(AUDIO_FILE,"r");
- if(fp != NULL)
- {
- int read;
- char *buffer = NULL;
- buffer = alloca(size);
- if((read = fread(buffer, size, sizeof(char), fp)) > 0 )
- {
- audio_out_prepare(output);
- if ((ret = audio_out_write(output, (void*)buffer, read)) > AUDIO_IO_ERROR_NONE)
- {
- fclose(fp);
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- }
- else
- {
- ret = AUDIO_IO_ERROR_INVALID_BUFFER;
- }
- fclose(fp);
- }
- else
- {
- ret = AUDIO_IO_ERROR_INVALID_BUFFER ;
- }
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_write_n(void)
-{
- char* api_name = "audio_out_write";
- int ret, size;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE, SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_out_get_buffer_size(output, &size)) == AUDIO_IO_ERROR_NONE)
- {
- FILE *fp = NULL;
- fp = fopen(AUDIO_FILE,"r");
- if(fp != NULL)
- {
- char *buffer = NULL;
- int read;
- audio_out_prepare(output);
- if ((ret = audio_out_write(output, (void*)buffer, read)) != AUDIO_IO_ERROR_NONE)
- {
- fclose(fp);
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- fclose(fp);
- }
- else
- {
- ret = AUDIO_IO_ERROR_INVALID_BUFFER ;
- }
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_buffer_size_p(void)
-{
- char* api_name = "audio_out_get_buffer_size";
- int ret, size;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM, &output)) == AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_out_get_buffer_size(output, &size)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_buffer_size_n(void)
-{
- char* api_name = "audio_out_get_buffer_size";
- int ret, size;
- audio_out_h output;
- if ((ret = audio_out_create(45100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM, &output)) != AUDIO_IO_ERROR_NONE)
- {
- if ((ret = audio_out_get_buffer_size(output, &size)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sample_rate_p(void)
-{
- char* api_name = "audio_out_get_sample_rate";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- int sample_rate;
- if ((ret = audio_out_get_sample_rate(output, &sample_rate)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sample_rate_n(void)
-{
- char* api_name = "audio_in_get_sample_rate";
- int ret, sample_rate;
- audio_in_h input = NULL;
- if ((ret = audio_in_get_sample_rate(input, &sample_rate)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_channel_p(void)
-{
- char* api_name = "audio_out_get_channel";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- audio_channel_e channel;
- if ((ret = audio_out_get_channel(output, &channel)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_channel_n(void)
-{
- char* api_name = "audio_out_get_channel";
- int ret;
- audio_channel_e channel;
- audio_out_h output = NULL;
- if ((ret = audio_out_get_channel(output, &channel)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sample_type_p(void)
-{
- char* api_name = "audio_out_get_sample_type";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- audio_sample_type_e type;
- if ((ret = audio_out_get_sample_type(output, &type)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sample_type_n(void)
-{
- char* api_name = "audio_out_get_sample_type";
- int ret;
- audio_sample_type_e type;
- audio_out_h output = NULL;
- if ((ret = audio_out_get_sample_type(output, &type)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sound_type_p(void)
-{
- char* api_name = "audio_out_get_sound_type";
- int ret;
- audio_out_h output;
- if ((ret = audio_out_create(44100, AUDIO_CHANNEL_STEREO ,AUDIO_SAMPLE_TYPE_S16_LE , SOUND_TYPE_SYSTEM , &output)) == AUDIO_IO_ERROR_NONE)
- {
- sound_type_e type;
- if ((ret = audio_out_get_sound_type(output, &type)) == AUDIO_IO_ERROR_NONE)
- {
- audio_out_destroy(output);
- dts_pass(api_name);
- }
- audio_out_destroy(output);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
-
-static void utc_media_audio_out_get_sound_type_n(void)
-{
- char* api_name = "audio_out_get_sound_type";
- int ret;
- audio_sample_type_e type;
- audio_out_h output = NULL;
- if ((ret = audio_out_get_sample_type(output, &type)) != AUDIO_IO_ERROR_NONE)
- {
- dts_pass(api_name);
- }
- dts_message(api_name, "Call log: %d", ret);
- dts_fail(api_name);
-}
diff --git a/TC/tet_scen b/TC/tet_scen
deleted file mode 100755
index 03f029a..0000000
--- a/TC/tet_scen
+++ /dev/null
@@ -1,7 +0,0 @@
-all
- ^TEST
-##### Scenarios for TEST #####
-
-# Test scenario
-TEST
- :include:/testcase/tslist
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
deleted file mode 100644
index f7eda55..0000000
--- a/TC/tetbuild.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capture option for build operation checking
-TET_BUILD_TOOL=make # build with using make command
-TET_BUILD_FILE=-f Makefile # execution file (Makefile) for build
-TET_API_COMPLIANT=True # use TET API in Test Case ?
-TET_PASS_TC_NAME=True # report passed TC name in Journal file?
diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg
deleted file mode 100644
index 02d7030..0000000
--- a/TC/tetclean.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capture option
-TET_CLEAN_TOOL= make clean # clean tool
-TET_CLEAN_FILE= Makefile # file for clean
-TET_API_COMPLIANT=True # TET API useage
-TET_PASS_TC_NAME=True # showing name , passed TC
diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg
deleted file mode 100644
index ef3e452..0000000
--- a/TC/tetexec.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capturing execution or not
-TET_EXEC_TOOL= # ex) exec : execution tool set up/ Optional
-TET_EXEC_FILE= # ex) exectool : execution file/ Optional
-TET_API_COMPLIANT=True # Test case or Tool usesTET API?
-TET_PASS_TC_NAME=True # showing Passed TC name ?
diff --git a/debian/README b/debian/README
deleted file mode 100644
index e69de29..0000000
--- a/debian/README
+++ /dev/null
diff --git a/debian/capi-media-audio-io-dev.install b/debian/capi-media-audio-io-dev.install
deleted file mode 100644
index 761a28b..0000000
--- a/debian/capi-media-audio-io-dev.install
+++ /dev/null
@@ -1,4 +0,0 @@
-/usr/include/*
-/usr/include/*/*
-/usr/lib/pkgconfig/*.pc
-
diff --git a/debian/capi-media-audio-io-dev.postinst b/debian/capi-media-audio-io-dev.postinst
deleted file mode 100644
index 1a24852..0000000
--- a/debian/capi-media-audio-io-dev.postinst
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/sh
diff --git a/debian/capi-media-audio-io.install b/debian/capi-media-audio-io.install
deleted file mode 100644
index 4a755a4..0000000
--- a/debian/capi-media-audio-io.install
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/lib*.so*
diff --git a/debian/capi-media-audio-io.postinst b/debian/capi-media-audio-io.postinst
deleted file mode 100644
index 1a24852..0000000
--- a/debian/capi-media-audio-io.postinst
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/sh
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 619eb9c..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,87 +0,0 @@
-capi-media-audio-io (0.1.0-9) unstable; urgency=low
-
- * Fix audio_in_read() bug.
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-9
-
- -- Kangho Hur <kangho.hur@samsung.com> Wed, 04 Jul 2012 13:30:46 +0900
-
-capi-media-audio-io (0.1.0-8) unstable; urgency=low
-
- * Add the start/stop recording APIs
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-8
-
- -- Kangho Hur <kangho.hur@samsung.com> Thu, 28 Jun 2012 20:25:31 +0900
-
-capi-media-audio-io (0.1.0-7) unstable; urgency=low
-
- * The valid sample rate range updated.
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-7
-
- -- Kangho Hur <kangho.hur@samsung.com> Thu, 10 May 2012 21:18:26 +0900
-
-capi-media-audio-io (0.1.0-6) unstable; urgency=low
-
- * Use 'static' to local function which is limited to the current source file.
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-6
-
- -- Kangho Hur <kangho.hur@samsung.com> Tue, 21 Feb 2012 10:07:56 +0900
-
-capi-media-audio-io (0.1.0-5) unstable; urgency=low
-
- * Apply the SOVERSION
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-5
-
- -- Kangho Hur <kangho.hur@samsung.com> Tue, 14 Feb 2012 17:11:01 +0900
-
-capi-media-audio-io (0.1.0-4) unstable; urgency=low
-
- * Changes the value of ERROR_NONE
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-4
-
- -- Kangho Hur <kangho.hur@samsung.com> Mon, 05 Dec 2011 11:26:36 +0900
-
-capi-media-audio-io (0.1.0-3) unstable; urgency=low
-
- * Apply the Tizen
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-3
-
- -- Kangho Hur <kangho.hur@samsung.com> Wed, 23 Nov 2011 15:52:29 +0900
-
-capi-media-audio-io (0.1.0-2) unstable; urgency=low
-
- * Apply the error messages
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-2
-
- -- Kangho Hur <kangho.hur@samsung.com> Fri, 07 Oct 2011 21:08:17 +0900
-
-capi-media-audio-io (0.1.0-1) unstable; urgency=low
-
- * Alpha Release
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.1.0-1
-
- -- Kangho Hur <kangho.hur@samsung.com> Tue, 27 Sep 2011 19:44:18 +0900
-
-capi-media-audio-io (0.0.1-2) unstable; urgency=low
-
- * Update API Description
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.0.1-2
-
- -- Kangho Hur <kangho.hur@samsung.com> Mon, 19 Sep 2011 17:46:51 +0900
-
-capi-media-audio-io (0.0.1-1) unstable; urgency=low
-
- * Initial Upload
- * Git: slp-source.sec.samsung.net:slp/api/audio-io
- * Tag: capi-media-audio-io_0.0.1-1
-
- -- Kangho Hur <kangho.hur@samsung.com> Thu, 04 Aug 2011 18:11:55 +0900
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 7ed6ff8..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644
index 5a7bfd2..0000000
--- a/debian/control
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Source: capi-media-audio-io
-Section: libs
-Priority: extra
-Maintainer: Kangho Hur <kangho.hur@samsung.com>, Seungkeun Lee <sngn.lee@samsung.com>
-Build-Depends: debhelper (>= 5), dlog-dev, libmm-sound-dev, capi-base-common-dev, capi-media-sound-manager-dev
-
-Package: capi-media-audio-io
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: An Audio Input & Audio Output library in Tizen Native API
-
-Package: capi-media-audio-io-dev
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-audio-io (= ${Source-Version}), capi-base-common-dev, capi-media-sound-manager-dev
-Description: An Audio Input & Audio Output library in Tizen Native API (DEV)
-
-Package: capi-media-audio-io-dbg
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-audio-io (= ${Source-Version})
-Description: An Audio Input & Audio Output library in Tizen Native API (DBG)
-
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index 235c5ef..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/usr/bin/make -f
-
-CFLAGS = -Wall -g
-
-FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
-MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-CMAKE_ROOT_DIR ?= $(CURDIR)
-CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
- touch configure-stamp
-
-
-build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
- cd $(CMAKE_BUILD_DIR) && $(MAKE)
- touch $@
-
-clean:
- cd $(CMAKE_ROOT_DIR)
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
- rm -f `find . -name *.pc`
- rm -rf $(CMAKE_BUILD_DIR)
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-binary-indep: build install
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_install --sourcedir=debian/tmp
- dh_installman
- dh_link
- dh_strip --dbg-package=capi-media-audio-io-dbg
- dh_fixperms
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-
diff --git a/packaging/capi-media-audio-io.spec b/packaging/capi-media-audio-io.spec
index 973d1dd..0516ec5 100644
--- a/packaging/capi-media-audio-io.spec
+++ b/packaging/capi-media-audio-io.spec
@@ -1,4 +1,3 @@
-#sbs-git:slp/api/audio-io capi-media-audio-io 0.1.0 da265a7364928d92084360809316e36f666f053f
Name: capi-media-audio-io
Summary: An Audio Input & Audio Output library in Tizen Native API
Version: 0.1.0