summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikraman Choudhury <vikraman@gentoo.org>2014-02-17 06:37:44 +0000
committerVikraman Choudhury <vikraman@gentoo.org>2014-02-17 06:37:44 +0000
commita3db216d029280909ece468271eeddda6c0064ac (patch)
tree5b503c2143c08b8b0cff4e63c5adf1ee6d9a3a73 /media-sound
parentinstalling systemd unit file bug 500248 (diff)
downloadgentoo-2-a3db216d029280909ece468271eeddda6c0064ac.tar.gz
gentoo-2-a3db216d029280909ece468271eeddda6c0064ac.tar.bz2
gentoo-2-a3db216d029280909ece468271eeddda6c0064ac.zip
Check CONFIG_SND_HDA_PREALLOC_SIZE for value >= 2048
(Portage version: 2.2.8_p48/cvs/Linux i686, signed Manifest commit with key B0A72FD2)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/pulseaudio/ChangeLog6
-rw-r--r--media-sound/pulseaudio/pulseaudio-4.99.4.ebuild10
2 files changed, 14 insertions, 2 deletions
diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog
index ce68a80f859f..d55c028c49fa 100644
--- a/media-sound/pulseaudio/ChangeLog
+++ b/media-sound/pulseaudio/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/pulseaudio
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.318 2014/02/16 23:02:21 jcallen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.319 2014/02/17 06:37:44 vikraman Exp $
+
+ 17 Feb 2014; Vikraman Choudhury <vikraman@gentoo.org>
+ pulseaudio-4.99.4.ebuild:
+ Check CONFIG_SND_HDA_PREALLOC_SIZE for value >= 2048
16 Feb 2014; Jonathan Callen <jcallen@gentoo.org> pulseaudio-4.0-r1.ebuild,
pulseaudio-4.99.4.ebuild:
diff --git a/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild b/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild
index ccfd371a4bfe..970d5cb7816e 100644
--- a/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild
+++ b/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild,v 1.2 2014/02/16 23:02:21 jcallen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-4.99.4.ebuild,v 1.3 2014/02/17 06:37:44 vikraman Exp $
EAPI="5"
inherit eutils flag-o-matic linux-info readme.gentoo systemd user versionator udev multilib-minimal
@@ -110,6 +110,14 @@ pkg_pretend() {
CONFIG_CHECK="~HIGH_RES_TIMERS"
WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n"
check_extra_config
+
+ if linux_config_exists; then
+ local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE)
+ if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then
+ ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!"
+ ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}"
+ fi
+ fi
}
pkg_setup() {