]> code.delx.au - pulseaudio/commitdiff
try to bypass alsa softvol, since it is broken when used with snd_pcm_rewind()
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2008 09:12:07 +0000 (11:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2008 09:12:07 +0000 (11:12 +0200)
src/modules/alsa-util.c

index 5d52cbc999fe2137d23d61375f9694b092a5eb32..8abf834defc2520c5dc8fe3d0feb0c0437053957 100644 (file)
@@ -574,7 +574,8 @@ snd_pcm_t *pa_alsa_open_by_device_id(
                                 SND_PCM_NONBLOCK|
                                 SND_PCM_NO_AUTO_RESAMPLE|
                                 SND_PCM_NO_AUTO_CHANNELS|
-                                SND_PCM_NO_AUTO_FORMAT)) < 0) {
+                                SND_PCM_NO_AUTO_FORMAT |
+                                SND_PCM_NO_SOFTVOL)) < 0) {
             pa_log_info("Couldn't open PCM device %s: %s", d, snd_strerror(err));
             pa_xfree(d);
             continue;