From: Mark Greer Date: Sat, 20 Aug 2016 23:25:06 +0000 (-0700) Subject: greybus: audio: Fix incorrect direction value when enabling RX X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0ec8cd5eb49e0360ce6ba865d5f2267b28d1f84;p=karo-tx-linux.git greybus: audio: Fix incorrect direction value when enabling RX The direction value passed to gb_audio_apbridgea_register_cport() in the gbaudio_module_enable_rx() routine is TX and not RX like it should be so fix it. Testing Done: Recorded microphone data from a headset. Signed-off-by: Mark Greer Fixes: c80e7c6fafa5 ("audio: Split helper APIs based on stream direction") Tested-by: Vaibhav Agarwal Reviewd-by: Vaibhav Agarwal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 3eb3d2cf014a..6ebde18a5a53 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -207,7 +207,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, cportid = data->connection->hd_cport_id; ret = gb_audio_apbridgea_register_cport(data->connection, i2s_port, cportid, - AUDIO_APBRIDGEA_DIRECTION_TX); + AUDIO_APBRIDGEA_DIRECTION_RX); if (ret) { dev_err_ratelimited(module->dev, "reg_cport failed:%d\n", ret);