aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/audio_module.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-05-11 10:17:58 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-13 15:30:05 +0200
commita8af16313d18ce75d56c256fdfefed53a0572d45 (patch)
tree291954e3125b712efd500d0477385b4f20dd30d2 /drivers/staging/greybus/audio_module.c
parentgreybus: connection: add helper for creating offloaded connection (diff)
downloadlinux-dev-a8af16313d18ce75d56c256fdfefed53a0572d45.tar.xz
linux-dev-a8af16313d18ce75d56c256fdfefed53a0572d45.zip
greybus: audio: mark the data connection as offloaded
Mark the data-connection as offloaded, that is, under control of the host device (AP-bridge). This prevents messages from being sent from or forwarded to the AP. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_module.c')
-rw-r--r--drivers/staging/greybus/audio_module.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c
index d2dd5b82ce41..57d3b0292231 100644
--- a/drivers/staging/greybus/audio_module.c
+++ b/drivers/staging/greybus/audio_module.c
@@ -146,15 +146,6 @@ static int gbaudio_codec_request_handler(struct gb_operation *op)
return ret;
}
-static int gbaudio_data_connection_request_handler(struct gb_operation *op)
-{
- struct gb_connection *connection = op->connection;
-
- dev_warn(&connection->bundle->dev, "Audio Event received\n");
-
- return 0;
-}
-
static int gb_audio_add_mgmt_connection(struct gbaudio_module_info *gbmodule,
struct greybus_descriptor_cport *cport_desc,
struct gb_bundle *bundle)
@@ -192,9 +183,8 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule,
return -ENOMEM;
}
- connection = gb_connection_create_flags(bundle,
+ connection = gb_connection_create_offloaded(bundle,
le16_to_cpu(cport_desc->id),
- gbaudio_data_connection_request_handler,
GB_CONNECTION_FLAG_CSD);
if (IS_ERR(connection)) {
devm_kfree(gbmodule->dev, dai);