[vlc-commits] ALSA: do not turn off softvol

Rémi Denis-Courmont git at videolan.org
Tue Mar 6 17:14:18 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar  6 18:10:30 2012 +0200| [bb7866cc0bab8dcd33e56b174876c3571c8ef9a0] | committer: Rémi Denis-Courmont

ALSA: do not turn off softvol

Some people actually use it.
(cherry picked from commit 20ee3d9d6e7586f778905cb048872dd5c5ae8ce3)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=bb7866cc0bab8dcd33e56b174876c3571c8ef9a0
---

 modules/audio_output/alsa.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index b6b3523..ebcf650 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -320,9 +320,7 @@ static int Open (vlc_object_t *obj)
     /* Open the device */
     snd_pcm_t *pcm;
     /* VLC always has a resampler. No need for ALSA's. */
-    const int mode = SND_PCM_NO_AUTO_RESAMPLE
-    /* VLC is currently unable to leverage ALSA softvol. No need for it. */
-                   | SND_PCM_NO_SOFTVOL;
+    const int mode = SND_PCM_NO_AUTO_RESAMPLE;
 
     int val = snd_pcm_open (&pcm, device, SND_PCM_STREAM_PLAYBACK, mode);
 #if (SND_LIB_VERSION <= 0x010015)



More information about the vlc-commits mailing list