From 309520ec93f7190c0c3d22d613825a0835a8600f Mon Sep 17 00:00:00 2001 From: Mark Greer Date: Thu, 17 Mar 2016 10:32:37 -0700 Subject: [PATCH] greybus: audio: Use CSD instead of E2EFC for audio data connections There is no reason to use end-to-end flow control for Greybus audio data connections so disable it and enable Controlled Segment Dropping (CSD). Testing Done: Played music using audio modules on an EVT1.5. CC: Vaibhav Agarwal CC: Johan Hovold Signed-off-by: Mark Greer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_codec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index d7cae772dbf5..025dd53507b7 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -694,8 +694,10 @@ static int gb_audio_add_data_connection(struct gbaudio_codec_info *gbcodec, return -ENOMEM; } - connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), - gbaudio_dai_request_handler); + connection = gb_connection_create_flags(bundle, + le16_to_cpu(cport_desc->id), + gbaudio_dai_request_handler, + GB_CONNECTION_FLAG_CSD); if (IS_ERR(connection)) { devm_kfree(gbcodec->dev, dai); return PTR_ERR(connection); -- 2.20.1