aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_alsa.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-06-11 23:59:18 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-06-11 23:59:18 +0000
commit30df7d49c5a4c5d377fed6111f8867f16be05a8c (patch)
treeb217afce633b5c9684f3a783bfb50ac68305d021 /src/audioOutputs/audioOutput_alsa.c
parent7716a6c23419d434581aaa913cc8d901d3c84af2 (diff)
downloadmpd-30df7d49c5a4c5d377fed6111f8867f16be05a8c.tar.gz
mpd-30df7d49c5a4c5d377fed6111f8867f16be05a8c.tar.xz
mpd-30df7d49c5a4c5d377fed6111f8867f16be05a8c.zip
Reverting patch to "fix" the alsa plugin when used with dmix. It ended up breaking the alsa rate plugin, and dmix seems to work fine without it. Thanks to Skee from #mpd for testing.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutputs/audioOutput_alsa.c')
-rw-r--r--src/audioOutputs/audioOutput_alsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c
index c895a9566..a22b8e5be 100644
--- a/src/audioOutputs/audioOutput_alsa.c
+++ b/src/audioOutputs/audioOutput_alsa.c
@@ -240,7 +240,8 @@ static int alsa_openDevice(AudioOutput * audioOutput)
if(err < 0) goto error;
cmd = "snd_pcm_sw_params_set_start_threshold";
- err = snd_pcm_sw_params_set_start_threshold(ad->pcmHandle, swparams, 0);
+ err = snd_pcm_sw_params_set_start_threshold(ad->pcmHandle, swparams,
+ alsa_buffer_size - alsa_period_size);
if(err < 0) goto error;
cmd = "snd_pcm_sw_params_set_avail_min";