From 63cd5102a403b5ca68feacf1a02e451c6305e4e3 Mon Sep 17 00:00:00 2001 From: Vidyakumar Athota Date: Wed, 4 Jan 2017 11:46:17 -0800 Subject: drivers: mfd: fix audio mute issue after ADSP SSR Native audio playback is muted after adsp subsystem restart, because codec device_reset() API is called even before device_down() API finishes execution. This causes audio to mute, as codec is not in proper reset state. Add new lock to synchronize codec subsystem restart APIs. Change-Id: I2366f8b04fc6cb7d874661b948c3e9af10470107 Signed-off-by: Vidyakumar Athota --- include/linux/mfd/wcd9xxx/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/mfd/wcd9xxx/core.h b/include/linux/mfd/wcd9xxx/core.h index 11e8d89c337b..6eb8c1893a53 100644 --- a/include/linux/mfd/wcd9xxx/core.h +++ b/include/linux/mfd/wcd9xxx/core.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -334,6 +334,7 @@ struct wcd9xxx { struct slim_device *slim_slave; struct mutex io_lock; struct mutex xfer_lock; + struct mutex reset_lock; u8 version; int reset_gpio; -- cgit v1.2.3