tizenaudio-sink/source: Remove unused parameters 72/96772/1
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Mon, 7 Nov 2016 08:09:35 +0000 (17:09 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Thu, 10 Nov 2016 06:27:53 +0000 (15:27 +0900)
[Version] 5.0.90
[Profile] Common
[Issue Type] Miscellaneous

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I6802cead9e296c85901dae8e0f0dbe04d2ed931b

packaging/pulseaudio-modules-tizen.spec
src/module-tizenaudio-sink.c
src/module-tizenaudio-source.c

index 6c7912e..5bf79a1 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.89
+Version:          5.0.90
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 99ae7f6..3b581c7 100644 (file)
@@ -1,7 +1,7 @@
 /***
   This file is part of PulseAudio.
 
-  Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+  Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
 
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published
@@ -53,12 +53,8 @@ PA_MODULE_DESCRIPTION("Tizen Audio Sink");
 PA_MODULE_VERSION(PACKAGE_VERSION);
 PA_MODULE_LOAD_ONCE(false);
 PA_MODULE_USAGE(
-        "name=<name of the sink, to be prefixed> "
         "sink_name=<name of sink> "
         "sink_properties=<properties for the sink> "
-        "namereg_fail=<when false attempt to synthesise new sink_name if it is already taken> "
-        "device=<ALSA device> "
-        "device_id=<ALSA card index> "
         "format=<sample format> "
         "rate=<sample rate> "
         "channels=<number of channels> "
@@ -88,7 +84,6 @@ struct userdata {
     pa_usec_t timestamp;
     pa_usec_t timestamp_written;
 
-    char* device_name;
     bool first;
 
     pa_rtpoll_item *rtpoll_item;
@@ -98,12 +93,8 @@ struct userdata {
 };
 
 static const char* const valid_modargs[] = {
-    "name",
     "sink_name",
     "sink_properties",
-    "namereg_fail",
-    "device",
-    "device_id",
     "format",
     "rate",
     "channels",
@@ -155,7 +146,7 @@ static int suspend(struct userdata *u) {
         u->rtpoll_item = NULL;
     }
 
-    pa_log_info("Device suspended...[%s]", u->device_name);
+    pa_log_info("Device suspended...");
 
     return 0;
 }
@@ -215,7 +206,6 @@ static int sink_process_msg(
                     pa_assert(PA_SINK_IS_OPENED(u->sink->thread_info.state));
                     if ((r = suspend(u)) < 0)
                         return r;
-
                     break;
                 }
 
index 0578cc0..c60f90b 100644 (file)
@@ -1,7 +1,7 @@
 /***
   This file is part of PulseAudio.
 
-  Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+  Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
 
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published
@@ -53,12 +53,8 @@ PA_MODULE_DESCRIPTION("Tizen Audio Source");
 PA_MODULE_VERSION(PACKAGE_VERSION);
 PA_MODULE_LOAD_ONCE(false);
 PA_MODULE_USAGE(
-        "name=<name of the source, to be prefixed> "
         "source_name=<name of source> "
         "source_properties=<properties for the source> "
-        "namereg_fail=<when false attempt to synthesise new source_name if it is already taken> "
-        "device=<ALSA device> "
-        "device_id=<ALSA card index> "
         "format=<sample format> "
         "rate=<sample rate> "
         "channels=<number of channels> "
@@ -88,7 +84,6 @@ struct userdata {
     pa_usec_t block_usec;
     pa_usec_t timestamp;
 
-    char* device_name;
     bool first;
 
     pa_rtpoll_item *rtpoll_item;
@@ -99,12 +94,8 @@ struct userdata {
 };
 
 static const char* const valid_modargs[] = {
-    "name",
     "source_name",
     "source_properties",
-    "namereg_fail",
-    "device",
-    "device_id",
     "format",
     "rate",
     "channels",
@@ -156,7 +147,7 @@ static int suspend(struct userdata *u) {
         u->rtpoll_item = NULL;
     }
 
-    pa_log_info("Device suspended...[%s]", u->device_name);
+    pa_log_info("Device suspended...");
 
     return 0;
 }
@@ -216,7 +207,6 @@ static int source_process_msg(
                     pa_assert(PA_SOURCE_IS_OPENED(u->source->thread_info.state));
                     if ((r = suspend(u)) < 0)
                         return r;
-
                     break;
                 }