]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: audio: Reorder gb_deactivate sequence to avoid protocol error
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Sat, 23 Apr 2016 14:34:05 +0000 (20:04 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Apr 2016 00:37:10 +0000 (17:37 -0700)
commit54e9070b24def1dfaf07e78fee6ea18f7ff57bcc
tree9f935bcda12e53c27aaa344fd30c6db7349ce838
parent2b8c2b51000e3d056f9aa27a64b93feabddf77a4
greybus: audio: Reorder gb_deactivate sequence to avoid protocol error

gb_activate_tx/rx is triggered from _prepare() & gb_deactivate
from shutdown(). This may cause protocol error in case shutdown
executes without _prepare due to some hw_params failure.

Also, reorganise _prepare & _shutdown calls to make it more
readable & cleaner.

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