From 515669ae744b50b515ac283d46431229e4d2b7d0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 24 Mar 2015 14:58:12 +1100 Subject: [PATCH] sound: make sure to re-read all config files before openning device. Otherwise we might be using stale data. Signed-off-by: NeilBrown --- sound/sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/sound.c b/sound/sound.c index 10352cc..bddc52e 100644 --- a/sound/sound.c +++ b/sound/sound.c @@ -426,6 +426,7 @@ snd_pcm_t *open_dev(void) snd_pcm_t *handle; int rc; + snd_config_update(); // nlog("open device"); rc = snd_pcm_open(&handle, "default", SND_PCM_STREAM_PLAYBACK, 0/*SND_PCM_NONBLOCK*/); if (rc < 0) -- 2.43.0