From 293d7047bdcf90ffe6612b485acf948b2eca6d0c Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 11 Jun 2018 19:53:24 +0200 Subject: [PATCH] sndiod: No need to initialize s->mix.weight in slot_stop(). It is calculated by dev_mix_adjvol() called by slot_attach(). --- sndiod/dev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sndiod/dev.c b/sndiod/dev.c index 1af189f..83cad8e 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -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 {