Loading asoc/msm-pcm-loopback-v2.c +2 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved. */ #include <linux/init.h> Loading Loading @@ -950,7 +950,7 @@ static int msm_pcm_channel_mixer_cfg_ctl_put(struct snd_kcontrol *kcontrol, chmixer_pspd); mutex_lock(&loopback_session_lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&loopback_session_lock); Loading asoc/msm-pcm-q6-v2.c +3 −3 Original line number Diff line number Diff line Loading @@ -1862,7 +1862,7 @@ static int msm_pcm_chmap_ctl_put(struct snd_kcontrol *kcontrol, return 0; mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading Loading @@ -1935,7 +1935,7 @@ static int msm_pcm_chmap_ctl_get(struct snd_kcontrol *kcontrol, return 0; /* no channels set */ mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading Loading @@ -2240,7 +2240,7 @@ static int msm_pcm_channel_mixer_cfg_ctl_put(struct snd_kcontrol *kcontrol, } mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading Loading
asoc/msm-pcm-loopback-v2.c +2 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved. */ #include <linux/init.h> Loading Loading @@ -950,7 +950,7 @@ static int msm_pcm_channel_mixer_cfg_ctl_put(struct snd_kcontrol *kcontrol, chmixer_pspd); mutex_lock(&loopback_session_lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&loopback_session_lock); Loading
asoc/msm-pcm-q6-v2.c +3 −3 Original line number Diff line number Diff line Loading @@ -1862,7 +1862,7 @@ static int msm_pcm_chmap_ctl_put(struct snd_kcontrol *kcontrol, return 0; mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading Loading @@ -1935,7 +1935,7 @@ static int msm_pcm_chmap_ctl_get(struct snd_kcontrol *kcontrol, return 0; /* no channels set */ mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading Loading @@ -2240,7 +2240,7 @@ static int msm_pcm_channel_mixer_cfg_ctl_put(struct snd_kcontrol *kcontrol, } mutex_lock(&pdata->lock); if (substream->ref_count <= 0) { if (substream->runtime && substream->ref_count <= 0) { pr_err_ratelimited("%s: substream ref_count:%d invalid\n", __func__, substream->ref_count); mutex_unlock(&pdata->lock); Loading