Changes device_type_t to device_type_s 03/253603/1
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 16 Feb 2021 03:40:06 +0000 (12:40 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 16 Feb 2021 03:42:31 +0000 (12:42 +0900)
[Version] 0.1.38
[Issue Type] Readability enhance

Change-Id: I683d7e03bb34aa734bcaf858abef2085f3be1d50
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/audio-hal-sc7727.spec
tizen-audio-internal.h
tizen-audio-routing.c

index c848119..7f66991 100644 (file)
@@ -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
index 297377b..05b479a 100644 (file)
@@ -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;
index bb3e65e..6b279e6 100644 (file)
@@ -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" },