Patchwork [meta-fsl-arm,1/2] imx-audio: Drop redundant package

login
register
mail settings
Submitter Daiane Angolini
Date Oct. 14, 2013, 6:08 p.m.
Message ID <1381774138-31036-1-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/59853/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - Oct. 14, 2013, 6:08 p.m.
imx-audio depends, in fact, of alsa-utils. It's a
set of scripts that intend to configure some alsa
parameters using amixer.

The same thing may be achieved, not depending on
alsa-utins, by asound.state.

Change-Id: I0f7c27c4dbfaf51ba44773d94a794daba14c01f9
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 conf/machine/include/imx-base.inc                  |  3 +-
 recipes-bsp/imx-audio/imx-audio/imx53ard/imx-audio | 42 ---------------------
 recipes-bsp/imx-audio/imx-audio/mx5/imx-audio      | 44 ----------------------
 recipes-bsp/imx-audio/imx-audio/mx6/imx-audio      | 44 ----------------------
 recipes-bsp/imx-audio/imx-audio_0.1.bb             | 33 ----------------
 5 files changed, 1 insertion(+), 165 deletions(-)
 delete mode 100644 recipes-bsp/imx-audio/imx-audio/imx53ard/imx-audio
 delete mode 100644 recipes-bsp/imx-audio/imx-audio/mx5/imx-audio
 delete mode 100644 recipes-bsp/imx-audio/imx-audio/mx6/imx-audio
 delete mode 100644 recipes-bsp/imx-audio/imx-audio_0.1.bb

Patch

diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index bea3970..beeee5f 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -66,8 +66,7 @@  MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}"
 
 # Extra audio support
 # FIXME: Add support for ALL SoC families
-MACHINE_EXTRA_RRECOMMENDS_append_mx5 = " imx-audio"
-MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " imx-audio fsl-alsa-plugins"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " fsl-alsa-plugins"
 
 # Extra udev rules
 MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf"
diff --git a/recipes-bsp/imx-audio/imx-audio/imx53ard/imx-audio b/recipes-bsp/imx-audio/imx-audio/imx53ard/imx-audio
deleted file mode 100644
index e2c3cc8..0000000
--- a/recipes-bsp/imx-audio/imx-audio/imx53ard/imx-audio
+++ /dev/null
@@ -1,42 +0,0 @@ 
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:          imx mixer setup
-# Required-Start:    $syslog
-# Required-Stop:     $syslog
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Initialize the imx audio mixer
-# Description:       Unmute FRONT and set volume to ~70%.
-### END INIT INFO
-# Based on /etc/init.d/skeleton
-
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-DESC="Audio mixer settings"
-NAME=imx-audio
-AMIXER=`which amixer`
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Exit if amixer is not installed
-[ -x "$AMIXER" ] || exit 0
-
-do_start() {
-	# Enable the Headset (Audio Out)
-	$AMIXER sset "Headset" 2 > /dev/null
-	$AMIXER sset "HeadsetL Mixer AudioL1" on > /dev/null
-	$AMIXER sset "HeadsetR Mixer AudioR1" on > /dev/null
-}
-
-case "$1" in
-start)
-	echo "$NAME: setting default mixer settings."
-	do_start
-	;;
-stop)
-	;;
-*)
-	echo "Usage: $SCRIPTNAME {start|stop}" >&2
-	exit 3
-	;;
-esac
-
-exit 0
diff --git a/recipes-bsp/imx-audio/imx-audio/mx5/imx-audio b/recipes-bsp/imx-audio/imx-audio/mx5/imx-audio
deleted file mode 100644
index dde6930..0000000
--- a/recipes-bsp/imx-audio/imx-audio/mx5/imx-audio
+++ /dev/null
@@ -1,44 +0,0 @@ 
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:          imx mixer setup
-# Required-Start:    $syslog
-# Required-Stop:     $syslog
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Initialize the imx audio mixer
-# Description:       Unmute FRONT and set volume to ~70%.
-### END INIT INFO
-# Based on /etc/init.d/skeleton
-
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-DESC="Audio mixer settings"
-NAME=imx-audio
-AMIXER=`which amixer`
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Exit if amixer is not installed
-[ -x "$AMIXER" ] || exit 0
-
-do_start() {
-	# Enable the Headset (Audio Out)
-	$AMIXER sset "Headphone" 120 > /dev/null
-	$AMIXER sset "Speaker Function" on > /dev/null
-	$AMIXER sset "Playback" 140 > /dev/null
-	$AMIXER sset "Capture" 15 > /dev/null
-	$AMIXER sset "Jack Function" on > /dev/null
-}
-
-case "$1" in
-start)
-	echo "$NAME: setting default mixer settings."
-	do_start
-	;;
-stop)
-	;;
-*)
-	echo "Usage: $SCRIPTNAME {start|stop}" >&2
-	exit 3
-	;;
-esac
-
-exit 0
diff --git a/recipes-bsp/imx-audio/imx-audio/mx6/imx-audio b/recipes-bsp/imx-audio/imx-audio/mx6/imx-audio
deleted file mode 100644
index dde6930..0000000
--- a/recipes-bsp/imx-audio/imx-audio/mx6/imx-audio
+++ /dev/null
@@ -1,44 +0,0 @@ 
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:          imx mixer setup
-# Required-Start:    $syslog
-# Required-Stop:     $syslog
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Initialize the imx audio mixer
-# Description:       Unmute FRONT and set volume to ~70%.
-### END INIT INFO
-# Based on /etc/init.d/skeleton
-
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-DESC="Audio mixer settings"
-NAME=imx-audio
-AMIXER=`which amixer`
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Exit if amixer is not installed
-[ -x "$AMIXER" ] || exit 0
-
-do_start() {
-	# Enable the Headset (Audio Out)
-	$AMIXER sset "Headphone" 120 > /dev/null
-	$AMIXER sset "Speaker Function" on > /dev/null
-	$AMIXER sset "Playback" 140 > /dev/null
-	$AMIXER sset "Capture" 15 > /dev/null
-	$AMIXER sset "Jack Function" on > /dev/null
-}
-
-case "$1" in
-start)
-	echo "$NAME: setting default mixer settings."
-	do_start
-	;;
-stop)
-	;;
-*)
-	echo "Usage: $SCRIPTNAME {start|stop}" >&2
-	exit 3
-	;;
-esac
-
-exit 0
diff --git a/recipes-bsp/imx-audio/imx-audio_0.1.bb b/recipes-bsp/imx-audio/imx-audio_0.1.bb
deleted file mode 100644
index 3cdc1af..0000000
--- a/recipes-bsp/imx-audio/imx-audio_0.1.bb
+++ /dev/null
@@ -1,33 +0,0 @@ 
-SUMMARY = "Provide a basic init script to enable audio"
-DESCRIPTION = "Set the volume and unmute the Front mixer setting during boot."
-SECTION = "base"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
-
-PR = "r4"
-
-inherit update-rc.d
-
-RDEPENDS_${PN} = "alsa-utils-amixer"
-
-SRC_URI = "file://imx-audio"
-
-INITSCRIPT_NAME = "imx-audio"
-INITSCRIPT_PARAMS = "defaults 90"
-
-COMPATIBLE_MACHINE = "(mx5|mx6)"
-INHIBIT_DEFAULT_DEPS = "1"
-
-do_install() {
-	install -d ${D}${sysconfdir} \
-	           ${D}${sysconfdir}/init.d
-	install -m 0755 ${WORKDIR}/imx-audio ${D}${sysconfdir}/init.d
-        cat ${WORKDIR}/${INITSCRIPT_NAME} | \
-            sed -e 's,/etc,${sysconfdir},g' \
-                -e 's,/usr/sbin,${sbindir},g' \
-                -e 's,/var,${localstatedir},g' \
-                -e 's,/usr/bin,${bindir},g' \
-                -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
-        chmod 755 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
-}
-