diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2017-12-05 09:50:12 +0100 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2017-12-05 11:04:42 +0000 |
commit | 45deae83fdb245bfb94cc5b880f1740d3bf33b30 (patch) | |
tree | bc0d4dbe0ba2deaaaccd6d0fb03add65078c2cde /src/plugins/alsa/qalsaaudiooutput.cpp | |
parent | 5af70385a0b1a04e10d088f655ee33338ec014c5 (diff) |
ALSA: Don't check the device name in open()
Each time when open() is called device name was checked for availability.
Which could impact to performance especially for embedded devices.
Also the check of device name is done while calling snd_pcm_open().
Task-number: QTBUG-63007
Change-Id: Ib0afe7326552968870f4ca95a7807ae8f704fd3f
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/alsa/qalsaaudiooutput.cpp')
-rw-r--r-- | src/plugins/alsa/qalsaaudiooutput.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/alsa/qalsaaudiooutput.cpp b/src/plugins/alsa/qalsaaudiooutput.cpp index cd97ae85b..ddbe04de9 100644 --- a/src/plugins/alsa/qalsaaudiooutput.cpp +++ b/src/plugins/alsa/qalsaaudiooutput.cpp @@ -316,9 +316,6 @@ bool QAlsaAudioOutput::open() return false; } - if (!QAlsaAudioDeviceInfo::availableDevices(QAudio::AudioOutput).contains(m_device)) - return false; - QString dev; #if SND_LIB_VERSION < 0x1000e // 1.0.14 if (m_device != "default") |