]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: audio: Remove redundant lock protection & is_connected field
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Wed, 4 May 2016 10:59:21 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 4 May 2016 18:29:06 +0000 (11:29 -0700)
commit852859ab8186e7a492fdec5db5ef219bf625c21a
tree8ee088bda2f71dda534521e186766a7e9fe7d8bc
parente6ab7a154c5dbfc0ad08bf1570efea22f2c7ee6c
greybus: audio: Remove redundant lock protection & is_connected field

Each module maintains connected status & a lock to protect it.
Using codec->lock we can safely serialize ASoC specific callbacks
(in response to mixer_ctl update or dai_ops) and gb module
disconnect. Thus is_connected field can be removed.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_codec.h
drivers/staging/greybus/audio_module.c