From da9c3daaf1fb90fdd610269e61e63c9b7481ff21 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Sat, 19 May 2007 16:30:35 +0200 Subject: [PATCH] --- yaml --- r: 57185 b: refs/heads/master c: 2704364248378193a24505e414dbfd4201053349 h: refs/heads/master i: 57183: 6bce9a2a1a8a6809ca1c5811fbe39b1474378a3e v: v3 --- [refs] | 2 +- trunk/sound/pci/ali5451/ali5451.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 416da93496de..63ea15b251ca 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3b542985edeed1a1af124ee055e2d35a30489d93 +refs/heads/master: 2704364248378193a24505e414dbfd4201053349 diff --git a/trunk/sound/pci/ali5451/ali5451.c b/trunk/sound/pci/ali5451/ali5451.c index e1ed59549c50..cb59f994c68f 100644 --- a/trunk/sound/pci/ali5451/ali5451.c +++ b/trunk/sound/pci/ali5451/ali5451.c @@ -1250,7 +1250,7 @@ static int snd_ali_playback_hw_params(struct snd_pcm_substream *substream, evoice->substream = substream; } } else { - if (!evoice) { + if (evoice) { snd_ali_free_voice(codec, evoice); pvoice->extra = evoice = NULL; } @@ -1267,7 +1267,7 @@ static int snd_ali_playback_hw_free(struct snd_pcm_substream *substream) struct snd_ali_voice *evoice = pvoice ? pvoice->extra : NULL; snd_pcm_lib_free_pages(substream); - if (!evoice) { + if (evoice) { snd_ali_free_voice(codec, evoice); pvoice->extra = NULL; } @@ -1356,7 +1356,7 @@ static int snd_ali_playback_prepare(struct snd_pcm_substream *substream) VOL, CTRL, EC); - if (!evoice) { + if (evoice) { evoice->count = pvoice->count; evoice->eso = pvoice->count << 1; ESO = evoice->eso - 1;