From 9a6042dbc8eb84b17c8663bf52832a10bf947213 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Jul 2010 00:57:43 +0000 Subject: [PATCH] Speculative tweak to offer non-duplex as well as full-duplex ALSA cards in the engine dialogue. Should fix #3327. git-svn-id: svn://localhost/ardour2/branches/3.0@7447 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/engine_dialog.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 87431ee6c0..77f5c5facd 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -771,28 +771,11 @@ EngineControl::enumerate_alsa_devices () while (snd_ctl_pcm_next_device (handle, &device) >= 0 && device >= 0) { - bool have_playback = false; - bool have_capture = false; - - /* find duplex devices only */ - - snd_pcm_info_set_device (pcminfo, device); - snd_pcm_info_set_subdevice (pcminfo, 0); - snd_pcm_info_set_stream (pcminfo, SND_PCM_STREAM_CAPTURE); - - if (snd_ctl_pcm_info (handle, pcminfo) >= 0) { - have_capture = true; - } - snd_pcm_info_set_device (pcminfo, device); snd_pcm_info_set_subdevice (pcminfo, 0); snd_pcm_info_set_stream (pcminfo, SND_PCM_STREAM_PLAYBACK); if (snd_ctl_pcm_info (handle, pcminfo) >= 0) { - have_playback = true; - } - - if (have_capture && have_playback) { devs.push_back (snd_pcm_info_get_name (pcminfo)); devname += ','; devname += to_string (device, std::dec);