]> git.neil.brown.name Git - plato.git/commitdiff
sound: make sure to re-read all config files before openning device.
authorNeilBrown <neil@brown.name>
Tue, 24 Mar 2015 03:58:12 +0000 (14:58 +1100)
committerNeilBrown <neil@brown.name>
Tue, 24 Mar 2015 03:58:12 +0000 (14:58 +1100)
Otherwise we might be using stale data.

Signed-off-by: NeilBrown <neil@brown.name>
sound/sound.c

index 10352cc4dd8c9f9931292f05f8c8b71ef7a1060a..bddc52ed01a9d7593d6e03340ab87a0caec70e2b 100644 (file)
@@ -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)