Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57185
b: refs/heads/master
c: 2704364
h: refs/heads/master
i:
  57183: 6bce9a2
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 31, 2007
1 parent 3993ca1 commit da9c3da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b542985edeed1a1af124ee055e2d35a30489d93
refs/heads/master: 2704364248378193a24505e414dbfd4201053349
6 changes: 3 additions & 3 deletions trunk/sound/pci/ali5451/ali5451.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit da9c3da

Please sign in to comment.