summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/audio_codec.h
diff options
context:
space:
mode:
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-05-04 16:29:21 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-04 11:29:06 -0700
commit852859ab8186e7a492fdec5db5ef219bf625c21a (patch)
tree8ee088bda2f71dda534521e186766a7e9fe7d8bc /drivers/staging/greybus/audio_codec.h
parente6ab7a154c5dbfc0ad08bf1570efea22f2c7ee6c (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/audio_codec.h')
-rw-r--r--drivers/staging/greybus/audio_codec.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h
index 6182b20c5a27..5a19467c1623 100644
--- a/drivers/staging/greybus/audio_codec.h
+++ b/drivers/staging/greybus/audio_codec.h
@@ -172,8 +172,6 @@ struct gbaudio_module_info {
struct snd_soc_jack button_jack;
/* used by codec_ops */
- struct mutex lock;
- int is_connected;
int ctrlstate[2]; /* PB/CAP */
/* connection info */