sndiod: No need to initialize s->mix.weight in slot_stop().

It is calculated by dev_mix_adjvol() called by slot_attach().
This commit is contained in:
Alexandre Ratchov 2018-06-11 19:53:24 +02:00
parent 85a1c81bf7
commit 293d7047bd
1 changed files with 0 additions and 1 deletions

View File

@ -1866,7 +1866,6 @@ slot_start(struct slot *s)
}
#endif
slot_allocbufs(s);
s->mix.weight = MIDI_TO_ADATA(MIDI_MAXCTL);
if (s->mode & MODE_PLAY) {
s->pstate = SLOT_START;
} else {