summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-12-05 09:50:12 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-12-05 11:04:42 +0000
commit45deae83fdb245bfb94cc5b880f1740d3bf33b30 (patch)
treebc0d4dbe0ba2deaaaccd6d0fb03add65078c2cde
parent5af70385a0b1a04e10d088f655ee33338ec014c5 (diff)
downloadqtmultimedia-45deae83fdb245bfb94cc5b880f1740d3bf33b30.tar.gz
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>
-rw-r--r--src/plugins/alsa/qalsaaudiooutput.cpp3
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")