summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs42l43-sdw.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/cs42l43-sdw.c')
-rw-r--r--sound/soc/codecs/cs42l43-sdw.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/cs42l43-sdw.c b/sound/soc/codecs/cs42l43-sdw.c
index 55ac5fe8c3..388f95853b 100644
--- a/sound/soc/codecs/cs42l43-sdw.c
+++ b/sound/soc/codecs/cs42l43-sdw.c
@@ -31,11 +31,7 @@ int cs42l43_sdw_add_peripheral(struct snd_pcm_substream *substream,
return -EINVAL;
snd_sdw_params_to_config(substream, params, &sconfig, &pconfig);
-
- if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
- pconfig.num = dai->id;
- else
- pconfig.num = dai->id;
+ pconfig.num = dai->id;
ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream);
if (ret) {