Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02a6b135 authored by Vidyakumar Athota's avatar Vidyakumar Athota
Browse files

ASoC: qdsp6 : add error logs in slim slave driver



Sometimes audio driver requests slimbus channel to be
removed without slimbus vote, results channel timeout.
Add error case logs in audio_slimslave driver to debug
slimbus channel timeout issue.

Change-Id: Ibcdf60052ef8c7675e2b13a2c43a039f9a5c28b3
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent a3931eb3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -54,6 +54,9 @@ static long audio_slim_ioctl(struct file *file, unsigned int cmd,
			pr_debug("%s:AUDIO_SLIMSLAVE_VOTE\n", __func__);
			pm_runtime_get_sync(slim->dev.parent);
			vote_count++;
		} else {
			pr_err("%s:Invalid vote: vote_count=%d suspend=%d\n",
				 __func__, vote_count, suspend);
		}
		mutex_unlock(&suspend_lock);
		break;
@@ -64,6 +67,9 @@ static long audio_slim_ioctl(struct file *file, unsigned int cmd,
			pm_runtime_mark_last_busy(slim->dev.parent);
			pm_runtime_put(slim->dev.parent);
			vote_count--;
		} else {
			pr_err("%s:Invalid unvote: vote_count=%d suspend=%d\n",
				 __func__, vote_count, suspend);
		}
		mutex_unlock(&suspend_lock);
		break;