aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-12-01 16:36:56 +0100
committerTakashi Iwai <tiwai@suse.de>2009-12-01 16:36:56 +0100
commitcf5bd652c384cf58544f43bea097bbc9cf14e4f5 (patch)
tree162837d5f24b8657f4726d73ae4b5a7901569eee /sound/arm
parente0feefc70c1bb3f51aa9bb42acfd22cd7472a5d9 (diff)
downloadkernel_samsung_smdk4412-cf5bd652c384cf58544f43bea097bbc9cf14e4f5.zip
kernel_samsung_smdk4412-cf5bd652c384cf58544f43bea097bbc9cf14e4f5.tar.gz
kernel_samsung_smdk4412-cf5bd652c384cf58544f43bea097bbc9cf14e4f5.tar.bz2
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/arm')
-rw-r--r--sound/arm/aaci.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index eb715e7..83b0328 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -511,15 +511,9 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,
if (err < 0)
goto out;
- if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
- err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
- params_channels(params),
- aacirun->pcm->r[0].slots);
- else
- err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
- params_channels(params),
- aacirun->pcm->r[0].slots);
-
+ err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
+ params_channels(params),
+ aacirun->pcm->r[0].slots);
if (err)
goto out;