Date: Sat, 16 Apr 2016 17:29:59 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r413466 - in branches/2016Q2/multimedia/qt5-multimedia: . files Message-ID: <201604161729.u3GHTxex061564@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rakuco Date: Sat Apr 16 17:29:59 2016 New Revision: 413466 URL: https://svnweb.freebsd.org/changeset/ports/413466 Log: MFH: r413463 Add patch to fix underrun errors in the ALSA plugin. The ALSA plugin doesn't suspend the ALSA device when the ::suspend() method is called. This results in underrun errors when it's resumed. In ALSA, stopping a pcm doesn't close it, so the ALSA stop/start functions map to the QAudioInput suspend/resume functions. PR: 208598 Submitted by: shurd Approved by: ports-secteam (junovitch) Added: branches/2016Q2/multimedia/qt5-multimedia/files/patch-git_9047d9b - copied unchanged from r413463, head/multimedia/qt5-multimedia/files/patch-git_9047d9b Modified: branches/2016Q2/multimedia/qt5-multimedia/Makefile Directory Properties: branches/2016Q2/ (props changed) Modified: branches/2016Q2/multimedia/qt5-multimedia/Makefile ============================================================================== --- branches/2016Q2/multimedia/qt5-multimedia/Makefile Sat Apr 16 17:29:07 2016 (r413465) +++ branches/2016Q2/multimedia/qt5-multimedia/Makefile Sat Apr 16 17:29:59 2016 (r413466) @@ -2,6 +2,7 @@ PORTNAME= multimedia DISTVERSION= ${QT5_VERSION} +PORTREVISION= 1 CATEGORIES= multimedia PKGNAMEPREFIX= qt5- Copied: branches/2016Q2/multimedia/qt5-multimedia/files/patch-git_9047d9b (from r413463, head/multimedia/qt5-multimedia/files/patch-git_9047d9b) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q2/multimedia/qt5-multimedia/files/patch-git_9047d9b Sat Apr 16 17:29:59 2016 (r413466, copy of r413463, head/multimedia/qt5-multimedia/files/patch-git_9047d9b) @@ -0,0 +1,36 @@ +commit 9047d9b84e9d94d193e77abd81f5980eff77d73a +Author: Stephen Hurd <shurd@freebsd.org> +Date: Thu Apr 14 19:11:01 2016 -0700 + + ALSA: Call snd_pcm_drain() on suspend + + The ALSA plugin previously didn't suspend the ALSA device when the + ::suspend() method is called. This results in underrun errors when + it's resumed. + + In ALSA, stopping a pcm doesn't close it, so the ALSA stop/start + functions map to the QAudioInput suspend/resume functions. + + Change-Id: I2507065a1b7472af29eef70c531b9f6e8e5b3072 + Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com> + +--- src/plugins/alsa/qalsaaudioinput.cpp ++++ src/plugins/alsa/qalsaaudioinput.cpp +@@ -701,6 +701,7 @@ qint64 QAlsaAudioInput::processedUSecs() const + void QAlsaAudioInput::suspend() + { + if(deviceState == QAudio::ActiveState||resuming) { ++ snd_pcm_drain(handle); + timer->stop(); + deviceState = QAudio::SuspendedState; + emit stateChanged(deviceState); +--- src/plugins/alsa/qalsaaudiooutput.cpp ++++ src/plugins/alsa/qalsaaudiooutput.cpp +@@ -673,6 +673,7 @@ QAudioFormat QAlsaAudioOutput::format() const + void QAlsaAudioOutput::suspend() + { + if(deviceState == QAudio::ActiveState || deviceState == QAudio::IdleState || resuming) { ++ snd_pcm_drain(handle); + timer->stop(); + deviceState = QAudio::SuspendedState; + errorState = QAudio::NoError;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604161729.u3GHTxex061564>