We can use 100 char in 1 line. Let's cleanup code.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
---
sound/soc/soc-dapm.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 420fe7dea31e9..7f18968097924 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3951,14 +3951,10 @@ snd_soc_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w,
fmt = ffs(config->formats) - 1;
snd_mask_set(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT), fmt);
- hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->min =
- config->rate_min;
- hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->max =
- config->rate_max;
- hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->min
- = config->channels_min;
- hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max
- = config->channels_max;
+ hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->min = config->rate_min;
+ hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->max = config->rate_max;
+ hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->min = config->channels_min;
+ hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max = config->channels_max;
substream->stream = SNDRV_PCM_STREAM_CAPTURE;
snd_soc_dapm_widget_for_each_source_path(w, path) {
--
2.43.0
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]