Skip to contentSkip to conversation

alsa-state: Using one unified version to set default values for mx6/mx6ul/mx7

PATCH Superseded Yuqing Zhu 2 participants 3 messages Mar 1, 2016 – Mar 2, 2016 Arm i.MX and Layerscape

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Yuqing Zhu

author
#0 lore raw

PATCH v2 1/1 alsa-state: Using one unified version to set default values for mx6/mx6ul/mx7

*asound.conf: Update asound.conf to set default ctrl for kernel 4.1
The default ctrl is missing from /etc/asound.conf.
If don't using “-Dhw:0”, the sound will rout from alsa to pulseaudio, then to the sound device.

*asound.state: Using one unified file to cover mx6/mx6ul/mx7
wm8958/wm8960 audio configuration for mx6ul/mx7 wm8962 audio configuration for mx6

---
 recipes-bsp/alsa-state/alsa-state.bbappend         |    7 +-
 .../alsa-state/alsa-state/{mx6 => imx}/asound.conf |    5 +
 .../alsa-state/{mx7 => imx}/asound.state           |  800 +++++++++---
 recipes-bsp/alsa-state/alsa-state/mx6/asound.state | 1374 --------------------
 recipes-bsp/alsa-state/alsa-state/mx7/asound.conf  |  257 ----
 5 files changed, 642 insertions(+), 1801 deletions(-)
 rename recipes-bsp/alsa-state/alsa-state/{mx6 => imx}/asound.conf (98%)
 mode change 100644 => 100755
 rename recipes-bsp/alsa-state/alsa-state/{mx7 => imx}/asound.state (90%)
 mode change 100644 => 100755
 delete mode 100644 recipes-bsp/alsa-state/alsa-state/mx6/asound.state
 delete mode 100644 recipes-bsp/alsa-state/alsa-state/mx7/asound.conf
recipes-bsp/alsa-state/alsa-state.bbappend +5 -2
index dbfed38..58a763a 100644
@@ -1,5 +1,8 @@
 # Append path for freescale layer to include alsa-state asound.conf
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx6ul := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:"
 
-PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
 PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx6ul = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
recipes-bsp/alsa-state/alsa-state/imx/asound.conf renamed from recipes-bsp/alsa-state/alsa-state/mx6/asound.conf +5 -0
old mode 100644
new mode 100755
similarity index 98%
rename from recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
rename to recipes-bsp/alsa-state/alsa-state/imx/asound.conf
index 3f4e048..7f8eef1
@@ -251,6 +251,11 @@ route_policy "average"
 slave.pcm "asymed"
 }
 
+ctl.!default{
+type hw
+card 0
+}
+
 ctl.mixer0{
 type hw
 card 0
recipes-bsp/alsa-state/alsa-state/imx/asound.state renamed from recipes-bsp/alsa-state/alsa-state/mx7/asound.state +632 -168

1,605 lines not on this page · raw message

recipes-bsp/alsa-state/alsa-state/mx6/asound.state deleted +0 -1374

1,374 lines not on this page · raw message

recipes-bsp/alsa-state/alsa-state/mx7/asound.conf deleted +0 -257

257 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.9.1

Part of the diff is not shown here. View the raw message.

#1 lore raw

Hello Carol,

Quoted 10 lines · Yuqing Zhu

*asound.conf: Update asound.conf to set default ctrl for kernel 4.1
The default ctrl is missing from /etc/asound.conf.
If don't using “-Dhw:0”, the sound will rout from alsa to pulseaudio, then to the sound device.

*asound.state: Using one unified file to cover mx6/mx6ul/mx7
wm8958/wm8960 audio configuration for mx6ul/mx7 wm8962 audio configuration for mx6

...

recipes-bsp/alsa-state/alsa-state.bbappend line 4

Quoted 8 lines
recipes-bsp/alsa-state/alsa-state.bbappend +3 -1
@@ -1,5 +1,8 @@
 # Append path for freescale layer to include alsa-state asound.conf
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx6ul := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:"

I really this :-) I am afraid this cannot be merged until we start moving for the 4.1 kernel. Am I right?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
author
#2 lore raw

Hi Otavio,

I will keep the asound.conf updating patch until we start moving to next.
For now, I will just upstream the alsa-state patch about unifying the configuration files for mx6/mx6ul/mx7 for the current 3.14 kernel. Please help to review my third patch.
Thanks!

B.R.
Carol

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Tuesday, March 01, 2016 6:59 PM
To: Yuqing Zhu <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH v2] alsa-state: Using one unified version to set default values for mx6/mx6ul/mx7

Hello Carol,

Quoted 10 lines · Yuqing Zhu

*asound.conf: Update asound.conf to set default ctrl for kernel 4.1 The default ctrl is missing from /etc/asound.conf.
If don't using “-Dhw:0”, the sound will rout from alsa to pulseaudio,
then to the sound device.

*asound.state: Using one unified file to cover mx6/mx6ul/mx7
wm8958/wm8960 audio configuration for mx6ul/mx7 wm8962 audio configuration for mx6

...

recipes-bsp/alsa-state/alsa-state.bbappend line 4

Quoted 8 lines
recipes-bsp/alsa-state/alsa-state.bbappend +3 -1
@@ -1,5 +1,8 @@
 # Append path for freescale layer to include alsa-state asound.conf 
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx6ul := "${THISDIR}/${PN}/imx:"
+FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:"

I really this :-) I am afraid this cannot be merged until we start moving for the 4.1 kernel. Am I right?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750