From: NeilBrown Date: Tue, 24 Mar 2015 03:58:12 +0000 (+1100) Subject: sound: make sure to re-read all config files before openning device. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=515669ae744b50b515ac283d46431229e4d2b7d0;p=plato.git sound: make sure to re-read all config files before openning device. Otherwise we might be using stale data. Signed-off-by: NeilBrown --- 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)