summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-pcm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 765e43ca637d..fc0817dd0d83 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2806,15 +2806,11 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd,
}
}
- if (dai_link->playback_only) {
- has_playback = 1;
+ if (dai_link->playback_only)
has_capture = 0;
- }
- if (dai_link->capture_only) {
+ if (dai_link->capture_only)
has_playback = 0;
- has_capture = 1;
- }
if (!has_playback && !has_capture) {
dev_err(rtd->dev, "substream %s has no playback, no capture\n",