greybus: audio: fix to resolve multiple audio module playback issue
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Tue, 29 Mar 2016 18:01:43 +0000 (23:31 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 29 Mar 2016 18:15:14 +0000 (11:15 -0700)
commitd764212f73cf270f10b041d8e26a8eb1ee7d4909
tree50a8470c6466c356fcd063024234397250009723
parent5793227cb037e4fddf1dc869b0e0abcc22646f6b
greybus: audio: fix to resolve multiple audio module playback issue

Cleanup APBridge sequence only in case of last module plugged-out.
For other modules, unregister cportid is sufficient.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mark.greer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c