From patchwork Thu Sep 19 13:39:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 275972 X-Patchwork-Delegate: chbs@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 77D3C2C011D for ; Thu, 19 Sep 2013 23:39:41 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 1D749447B3 for ; Thu, 19 Sep 2013 15:39:40 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 272BC447B1 for ; Thu, 19 Sep 2013 15:39:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=2124; q=dns/txt; s=ironport1; t=1379597978; x=1411133978; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=BOBL8FOXG0CF8FsypUPL1aOlEFZFWxspk27LNK0FHvA=; b=exBXEafSAb58lHhqaSBFhit6fy5Xz2CE/qggIkuV2lmxtPTlc0zdXpgs lwOcEcEymgMBuPf278E6SLUVap4uAQTKoOkPx00LuPAkkPq8Ni9ZEvvxY aPGmiT7X6cEO4HGngWon4jtGia8tMnT8cFQwIRVasQaotyUm/ftbO+TtN c=; X-IronPort-AV: E=Sophos;i="4.90,936,1371074400"; d="scan'208";a="3889976" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 19 Sep 2013 15:39:21 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Thu, 19 Sep 2013 15:39:21 +0200 Received: by localhost (Postfix, from userid 30019) id F11D5682C0D; Thu, 19 Sep 2013 13:39:20 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 3/3] alsa: Added audio group support. Date: Thu, 19 Sep 2013 13:39:20 +0000 Message-ID: <5869716a7cd64a5e37890ab6893c261e656cbd84.1379597807.git.kibo@prevas.dk> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- recipes/alsa/alsa-lib.inc | 17 ++++++++++++++++- recipes/alsa/files/group | 1 + recipes/alsa/files/mdev.conf | 10 +++++----- recipes/alsa/files/passwd | 0 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 recipes/alsa/files/group create mode 100644 recipes/alsa/files/passwd diff --git a/recipes/alsa/files/passwd b/recipes/alsa/files/passwd new file mode 100644 index 0000000..e69de29 diff --git a/recipes/alsa/alsa-lib.inc b/recipes/alsa/alsa-lib.inc index ca9796f..856490b 100644 --- a/recipes/alsa/alsa-lib.inc +++ b/recipes/alsa/alsa-lib.inc @@ -2,10 +2,12 @@ DEPENDS += "libdl \ libpthread \ libm" -inherit autotools-autoreconf pkgconfig mdev +inherit autotools-autoreconf pkgconfig mdev passwd SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2 \ file://mdev.conf \ +file://group \ +file://passwd \ " EXTRA_OECONF = "--with-cards=pdaudiocf --with-oss=yes --disable-python" @@ -50,3 +52,16 @@ libm \ libdl \ libc \ " + +RECIPE_FLAGS += "alsa_audio_users" +DEFAULT_alsa_audio_users = "" + +DO_PATCH_UPDATE_AUDIO_GROUP = "" +DO_PATCH_UPDATE_AUDIO_GROUP:USE_alsa_audio_users = "do_patch_update_audio_group" + +do_patch[postfuncs] += "${DO_PATCH_UPDATE_AUDIO_GROUP}" +do_patch_update_audio_group[expand] = "3" +do_patch_update_audio_group() { + sed -i -e 's/^\(audio:x:102:\).*/\1${USE_alsa_audio_users}/' \ + ${SRCDIR}/group +} diff --git a/recipes/alsa/files/group b/recipes/alsa/files/group new file mode 100644 index 0000000..78f5bc8 --- /dev/null +++ b/recipes/alsa/files/group @@ -0,0 +1 @@ +audio:x:102: diff --git a/recipes/alsa/files/mdev.conf b/recipes/alsa/files/mdev.conf index 9bd2623..3f027a7 100644 --- a/recipes/alsa/files/mdev.conf +++ b/recipes/alsa/files/mdev.conf @@ -1,6 +1,6 @@ # Alsa -pcm.* 0:0 660 =snd/ -control.* 0:0 660 =snd/ -midi.* 0:0 660 =snd/ -seq 0:0 660 =snd/ -timer 0:0 660 =snd/ +pcm.* 0:audio 660 =snd/ +control.* 0:audio 660 =snd/ +midi.* 0:audio 660 =snd/ +seq 0:audio 660 =snd/ +timer 0:audio 660 =snd/