From: Mark Greer Date: Thu, 17 Mar 2016 17:32:37 +0000 (-0700) Subject: greybus: audio: Use CSD instead of E2EFC for audio data connections X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=309520ec93f7190c0c3d22d613825a0835a8600f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);