From 3873a0e8944f8c11c6605142e704917bfeaf70bd Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)> Date: Thu, 20 May 2010 10:01:53 -0400 Subject: [PATCH] [#1962] Use ALSA's plug:dmix only for playback, does not support capture --- sflphone-common/src/audio/alsa/alsalayer.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sflphone-common/src/audio/alsa/alsalayer.cpp b/sflphone-common/src/audio/alsa/alsalayer.cpp index 21c405f5b3..4e5a2b60ed 100644 --- a/sflphone-common/src/audio/alsa/alsalayer.cpp +++ b/sflphone-common/src/audio/alsa/alsalayer.cpp @@ -137,13 +137,9 @@ AlsaLayer::startStream (void) _debug ("AlsaLayer:: startStream"); std::string pcmp = buildDeviceTopo (_audioPlugin, _indexOut, 0); - std::string pcmc = buildDeviceTopo (_audioPlugin, _indexIn, 0); + std::string pcmr = buildDeviceTopo (_audioPlugin, _indexRing, 0); - std::string pcmr; - if(_audioPlugin != "plug:dmix") - pcmr = buildDeviceTopo (_audioPlugin, _indexRing, 0); - else - pcmr = buildDeviceTopo("default", _indexRing, 0); + std::string pcmc = buildDeviceTopo("default", _indexIn, 0); if (!is_playback_open()) { open_device (pcmp, pcmc, pcmr, SFL_PCM_PLAYBACK); -- GitLab