Skip to contentSkip to conversation

alsa-state: Set default state values for mx6/mx6ul/mx7

PATCH Superseded Yuqing Zhu 2 participants 5 messages Feb 25, 2016 – Mar 1, 2016

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Yuqing Zhu

author
#0 lore raw

PATCH 1/1 alsa-state: Set default state 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         |    3 +-
 .../alsa-state/alsa-state/{mx6 => }/asound.conf    |    5 +
 .../alsa-state/alsa-state/{mx7 => }/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, 638 insertions(+), 1801 deletions(-)
 rename recipes-bsp/alsa-state/alsa-state/{mx6 => }/asound.conf (98%)
 mode change 100644 => 100755
 rename recipes-bsp/alsa-state/alsa-state/{mx7 => }/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 +1 -2
index dbfed38..915c897 100644
@@ -1,5 +1,4 @@
 # Append path for freescale layer to include alsa-state asound.conf
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
-PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-bsp/alsa-state/alsa-state/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/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/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

4 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
Quoted 29 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         |    3 +-
 .../alsa-state/alsa-state/{mx6 => }/asound.conf    |    5 +
 .../alsa-state/alsa-state/{mx7 => }/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, 638 insertions(+), 1801 deletions(-)
 rename recipes-bsp/alsa-state/alsa-state/{mx6 => }/asound.conf (98%)
 mode change 100644 => 100755
 rename recipes-bsp/alsa-state/alsa-state/{mx7 => }/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 +0 -0
index dbfed38..915c897 100644

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

Quoted 6 lines
recipes-bsp/alsa-state/alsa-state.bbappend +1 -2
@@ -1,5 +1,4 @@
 # Append path for freescale layer to include alsa-state asound.conf
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
-PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH = "${MACHINE_ARCH}"

You can't drop the package override here, neither consolidate them in a single directory as we don't want those to be included in another build (e.g. Intel, Marvell, Texas ones).

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,

Thanks for your comments.

Here we just want to use one unified version of asound.state and asound.conf to cover mx6/mx6ul/mx7 and it is added into our own meta-fsl-arm layer.

Actually I am not very clear about why it will cause being included in another build (e.g. Intel, Marvell, Texas ones). Will they use our bsp ?

B.R.
Carol

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Saturday, February 27, 2016 11:27 PM
To: Yuqing Zhu <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH] alsa-state: Set default state values for mx6/mx6ul/mx7

Quoted 33 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         |    3 +-
 .../alsa-state/alsa-state/{mx6 => }/asound.conf    |    5 +
 .../alsa-state/alsa-state/{mx7 => }/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, 638 insertions(+), 1801 deletions(-)  rename 

recipes-bsp/alsa-state/alsa-state/{mx6 => }/asound.conf (98%) mode change 100644 => 100755 rename recipes-bsp/alsa-state/alsa-state/{mx7 => }/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 +0 -0
index dbfed38..915c897 100644
@@ -1,5 +1,4 @@
 # Append path for freescale layer to include alsa-state asound.conf  

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

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

Quoted 3 lines
recipes-bsp/alsa-state/alsa-state.bbappend +1 -2
-PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
-PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH = "${MACHINE_ARCH}"

You can't drop the package override here, neither consolidate them in a single directory as we don't want those to be included in another build (e.g. Intel, Marvell, Texas ones).

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
#3 lore raw
Quoted 9 lines · Yuqing Zhu

Hi Otavio,

Thanks for your comments.

Here we just want to use one unified version of asound.state and asound.conf to cover mx6/mx6ul/mx7 and it is added into our own meta-fsl-arm layer.

Actually I am not very clear about why it will cause being included in another build (e.g. Intel, Marvell, Texas ones). Will they use our bsp ?

It will due the overrides system; it must use the SoC family directory.

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
#4 lore raw

Hi Otavio,

How about adding SoC filter when do " FILESEXTRAPATHS_prepend"? I will update the patch, please help to review. Thanks!

B.R.
Carol

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, February 29, 2016 10:17 PM
To: Yuqing Zhu <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH] alsa-state: Set default state values for mx6/mx6ul/mx7

Quoted 9 lines · Yuqing Zhu

Hi Otavio,

Thanks for your comments.

Here we just want to use one unified version of asound.state and asound.conf to cover mx6/mx6ul/mx7 and it is added into our own meta-fsl-arm layer.

Actually I am not very clear about why it will cause being included in another build (e.g. Intel, Marvell, Texas ones). Will they use our bsp ?

It will due the overrides system; it must use the SoC family directory.

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