speaker: Initialize debug fd

Was outputing garbage on the console. Doh.

Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:
Michel Pollet 2023-10-28 07:22:19 +01:00
parent 3ee0061de6
commit 938be1724e

View File

@ -88,6 +88,7 @@ mii_speaker_init(
mii_speaker_t *s) mii_speaker_t *s)
{ {
s->mii = mii; s->mii = mii;
s->debug_fd = -1;
s->fsize = MII_SPEAKER_FRAME_SIZE; s->fsize = MII_SPEAKER_FRAME_SIZE;
#ifdef HAS_ALSA #ifdef HAS_ALSA
if (!s->off) if (!s->off)