Thread (4 messages) 4 messages, 2 authors, 2012-09-04
STALE5136d

[PATCH v0 1/3] audio: Remove unused function

From: Mikel Astiz <hidden>
Date: 2012-09-04 11:15:54
Subsystem: the rest · Maintainer: Linus Torvalds

From: Mikel Astiz <redacted>

gateway_config_stream() is now unnecessary after the removal of the unix
socket support in commit 1d9d0527cfb6d96a976ede56bd43a2bc16bb5f21.
---
 audio/gateway.c |   16 ----------------
 audio/gateway.h |    2 --
 2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/audio/gateway.c b/audio/gateway.c
index c0159a4..77a8cb0 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -858,22 +858,6 @@ unsigned int gateway_request_stream(struct audio_device *dev,
 	return connect_cb_new(gw, cb, user_data);
 }
 
-int gateway_config_stream(struct audio_device *dev, gateway_stream_cb_t cb,
-				void *user_data)
-{
-	struct gateway *gw = dev->gateway;
-	unsigned int id;
-
-	id = connect_cb_new(gw, cb, user_data);
-
-	if (!gw->rfcomm)
-		get_records(dev);
-	else if (cb)
-		g_idle_add(request_stream_cb, dev);
-
-	return id;
-}
-
 gboolean gateway_cancel_stream(struct audio_device *dev, unsigned int id)
 {
 	struct gateway *gw = dev->gateway;
diff --git a/audio/gateway.h b/audio/gateway.h
index 6fde445..0893962 100644
--- a/audio/gateway.h
+++ b/audio/gateway.h
@@ -64,8 +64,6 @@ int gateway_connect_sco(struct audio_device *dev, GIOChannel *chan);
 void gateway_start_service(struct audio_device *device);
 unsigned int gateway_request_stream(struct audio_device *dev,
 			gateway_stream_cb_t cb, void *user_data);
-int gateway_config_stream(struct audio_device *dev, gateway_stream_cb_t cb,
-			void *user_data);
 gboolean gateway_cancel_stream(struct audio_device *dev, unsigned int id);
 int gateway_get_sco_fd(struct audio_device *dev);
 void gateway_suspend_stream(struct audio_device *dev);
-- 
1.7.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help