Commit cf5bd652 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: aaci - Clean up duplicate code

Now snd_ac97_pcm_open() is called with the exactly same arguments
for both playback and capture directions.  Remove the unneeded check.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e0feefc7
...@@ -511,15 +511,9 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream, ...@@ -511,15 +511,9 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,
if (err < 0) if (err < 0)
goto out; goto out;
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), params_channels(params),
params_channels(params), aacirun->pcm->r[0].slots);
aacirun->pcm->r[0].slots);
else
err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
params_channels(params),
aacirun->pcm->r[0].slots);
if (err) if (err)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment