Commit 309520ec authored by Mark Greer's avatar Mark Greer Committed by Greg Kroah-Hartman

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: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c3d77f71
...@@ -694,8 +694,10 @@ static int gb_audio_add_data_connection(struct gbaudio_codec_info *gbcodec, ...@@ -694,8 +694,10 @@ static int gb_audio_add_data_connection(struct gbaudio_codec_info *gbcodec,
return -ENOMEM; return -ENOMEM;
} }
connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), connection = gb_connection_create_flags(bundle,
gbaudio_dai_request_handler); le16_to_cpu(cport_desc->id),
gbaudio_dai_request_handler,
GB_CONNECTION_FLAG_CSD);
if (IS_ERR(connection)) { if (IS_ERR(connection)) {
devm_kfree(gbcodec->dev, dai); devm_kfree(gbcodec->dev, dai);
return PTR_ERR(connection); return PTR_ERR(connection);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment