summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaechul Lee <jcsing.lee@samsung.com>2021-02-16 12:40:06 +0900
committerJaechul Lee <jcsing.lee@samsung.com>2021-02-16 12:42:31 +0900
commit6cf3cf50105430750e3912d3c21cc2918551c907 (patch)
tree125cae7496699d161fdc2a55f146659c7d0000b7
parent2b94e88f8fb684c7ec4460a397d5ab0972e36183 (diff)
downloadaudio-hal-sc7727-6cf3cf50105430750e3912d3c21cc2918551c907.tar.gz
audio-hal-sc7727-6cf3cf50105430750e3912d3c21cc2918551c907.tar.bz2
audio-hal-sc7727-6cf3cf50105430750e3912d3c21cc2918551c907.zip
Changes device_type_t to device_type_s
[Version] 0.1.38 [Issue Type] Readability enhance Change-Id: I683d7e03bb34aa734bcaf858abef2085f3be1d50 Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r--packaging/audio-hal-sc7727.spec2
-rw-r--r--tizen-audio-internal.h10
-rw-r--r--tizen-audio-routing.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec
index c848119..7f66991 100644
--- a/packaging/audio-hal-sc7727.spec
+++ b/packaging/audio-hal-sc7727.spec
@@ -1,6 +1,6 @@
Name: audio-hal-sc7727
Summary: TIZEN Audio HAL for SC7727
-Version: 0.1.37
+Version: 0.1.38
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/tizen-audio-internal.h b/tizen-audio-internal.h
index 297377b..05b479a 100644
--- a/tizen-audio-internal.h
+++ b/tizen-audio-internal.h
@@ -132,11 +132,6 @@ enum audio_device_type {
AUDIO_DEVICE_IN_BT_SCO),
};
-typedef struct device_type {
- uint32_t type;
- const char *name;
-} device_type_t;
-
/* Verbs */
#define AUDIO_USE_CASE_VERB_INACTIVE "Inactive"
#define AUDIO_USE_CASE_VERB_HIFI "HiFi"
@@ -163,6 +158,11 @@ typedef struct device_type {
/* type definitions */
typedef signed char int8_t;
+typedef struct device_type {
+ uint32_t type;
+ const char *name;
+} device_type_s;
+
/* PCM */
typedef struct {
snd_pcm_format_t format;
diff --git a/tizen-audio-routing.c b/tizen-audio-routing.c
index bb3e65e..6b279e6 100644
--- a/tizen-audio-routing.c
+++ b/tizen-audio-routing.c
@@ -31,7 +31,7 @@
/* #define DEBUG_TIMING */
-static device_type_t outDeviceTypes[] = {
+static device_type_s outDeviceTypes[] = {
{ AUDIO_DEVICE_OUT_SPEAKER, "Speaker" },
{ AUDIO_DEVICE_OUT_RECEIVER, "Earpiece" },
{ AUDIO_DEVICE_OUT_JACK, "Headphones" },
@@ -39,7 +39,7 @@ static device_type_t outDeviceTypes[] = {
{ 0, 0 },
};
-static device_type_t inDeviceTypes[] = {
+static device_type_s inDeviceTypes[] = {
{ AUDIO_DEVICE_IN_MAIN_MIC, "MainMic" },
{ AUDIO_DEVICE_IN_SUB_MIC, "SubMic" },
{ AUDIO_DEVICE_IN_JACK, "HeadsetMic" },