diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-20 00:57:43 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-20 00:57:43 +0000 |
commit | 9a6042dbc8eb84b17c8663bf52832a10bf947213 (patch) | |
tree | a5fcf7c532cdc61461aa434792a260428c5fd723 | |
parent | e2b5f355fb57ea082428ee0ab29407e15fdfb9b8 (diff) |
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
-rw-r--r-- | gtk2_ardour/engine_dialog.cc | 17 |
1 files changed, 0 insertions, 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); |