]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: audio: Fix incorrect direction value when enabling RX
authorMark Greer <mgreer@animalcreek.com>
Sat, 20 Aug 2016 23:25:06 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Aug 2016 11:16:11 +0000 (13:16 +0200)
commitf0ec8cd5eb49e0360ce6ba865d5f2267b28d1f84
tree56e6bf5815ec32d2898e4c6b44f42c5ce0770b66
parentbe67e7e54bb1c22e396285bd7b4721786cba1209
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 <mgreer@animalcreek.com>
Fixes: c80e7c6fafa5 ("audio: Split helper APIs based on stream direction")
Tested-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewd-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c