summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/audio_codec.c
diff options
context:
space:
mode:
authorMark Greer <mgreer@animalcreek.com>2016-03-17 10:32:37 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-17 15:42:44 -0700
commit309520ec93f7190c0c3d22d613825a0835a8600f (patch)
tree82fc09ce59b36098f6f63ab79f8d527514b302cd /drivers/staging/greybus/audio_codec.c
parentc3d77f71308e38ef98909c317c57d906f4d51cb9 (diff)
downloadlinux-309520ec93f7190c0c3d22d613825a0835a8600f.tar.bz2
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 <vaibhav.agarwal@linaro.org> CC: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_codec.c')
-rw-r--r--drivers/staging/greybus/audio_codec.c6
1 files 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);