Commit Graph

15 Commits

Author SHA1 Message Date
Max Krummenacher
6ecb175587 also-lib: drop patch
The backported patch was since fixed by a subsequent patch upstream.
This effectively reverted the patch and added the fix in a different
location.
Assuming upstream fixed it correctly the patch is no longer needed.

Compare with:
https://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=39060852d810461dc8cd1464cfb2ffe84da42d56

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2025-12-26 15:10:20 +01:00
Rodrigo M. Duarte
38e279535a alsa-lib: Remove the GLIBC_64BIT_TIME_FLAGS override
The new code was adding the 64BIT support while this is already
supported by Openembedded-Core meta/conf/distro/include/time64.inc
which is included by default in every distribution.

Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
2025-05-13 11:38:33 -03:00
Tom Hochstein
08b3a8cefe alsa-lib: Drop upstream patch
The patch 0001-pcm-Fix-segfault-with-32bit-libs.patch is already upstream
on master and scarthgap.

Fixes: f2575b7e61
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-04-11 11:53:31 -07:00
Valentin Jec
f2575b7e61 recipes-multimedia: Upgrade to NXP release 6.6.3_1.0.0
Updated:
        - alsa-lib update to 6.6.3_1.0.0 release and skip QA check for 32bit timer
        - gstreamer1.0-plugins-bad_1.22.5.imx update to 6.6.3_1.0.0 release, enable g2d
        - gstreamer1.0-plugins-base_1.22.5.imx update to 6.6.3_1.0.0 release, add opengl dependencies
        - gstreamer1.0-plugins-good_1.22.5.imx update to 6.6.3_1.0.0 release, enable pulseaudio and 32bit timer
        - gstreamer1.0_1.22.5.imx update to 6.6.3_1.0.0 release and add runtime dependency glibc-gconv-iso8859-5
        - imx-gst1.0-plugin update to 6.6.3_1.0.0 release
        - imx-vpuwrap update to 6.6.3_1.0.0 release

Upgraded:
        - imx-codec: 4.8.2 -> 4.8.3
        - imx-dsp-codec-ext: 2.1.6 -> 2.1.7
        - imx-dsp: 2.1.6 -> 2.1.7
        - imx-parser: 4.8.2 -> 4.8.3
        - imx-opencl-converter: 0.1 -> 0.2.0
New feature:
        - pipewire_1.0.0

Signed-off-by: Valentin Jec <valentin.jec@nxp.com>
2024-04-11 16:39:31 +03:00
Max Krummenacher
2a61493097 alsa-lib: drop not applying patch
With the update from v1.2.6.1 to v1.2.7 the patch no longer applies.
The patched code sections have been refactored to be provided from
a common helper functions [1] and the code has been reworked to better
cope with suspend e.g. [2].

As it is unclear how to reproduce what the patch tries to fix
just drop the patch for now to keep the recipe building.
At least aplay and arecord still work, if aplay is interrupted
with a suspend/resume cycle playing restarts on resume.
(This on a Apalis iMX6, SGTL5000 codec).

[1] 3577a7a26b
[2] b3ce9cb839

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-06-06 12:59:03 +02:00
Otavio Salvador
30f5ce1d21 Generalize overrides subsystem for NXP and Mainline support
Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and
mainline-bsp.

So, for example, the mx8mq override is split into:

- imx-generic-bsp: compatible with every i.MX SoC and both BSP variants
- imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP
- imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP

- mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants
- mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP
- mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP

- mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants
- mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP
- mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP

- mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants
- mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP
- mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP

The extender mechanism is responsible for extending the override list to
include the generic overrides. We can then use the three different
variants to handle the metadata correctly.

Generically speaking, the conversion mainly was automated (with a lot of
back and forth until getting it right).

To convert an existing layer, the following script can be used:

```sh
  git ls-files classes recipes-* \
      | xargs sed -i \
              -e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \
              -e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \
              -e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \
              -e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \
              \
              -e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \
              -e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \
              -e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(vf\w*\),:\1-generic-bsp,g' \
              -e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \
              -e 's,\(vf\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf\w*\)),|\1-generic-bsp),g' \
              -e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(imx\) ,:\1-nxp-bsp ,g' \
              -e 's,(\(imx\)),(\1-nxp-bsp),g' \
              -e 's,\(imx\)|,\1-nxp-bsp|,g' \
              -e 's,|\(imx\)),|\1-nxp-bsp),g'

  for d in $(find -type d | egrep '/mx[6-8]w*'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/imx$'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/mx[5s]w*'); do
      git mv $d $d-generic-bsp
  done
```

Fixes: #791.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-02-21 20:06:28 -03:00
Tom Hochstein
7377f6c87e layer: More override fixes
Adds fixes for _imx, _imxdpu, _imxdrm, _imxgpu, _imxgpu3d,
virtual PREFERRED_PROVIDER versions

Fix other places for imx/imxdpu/imxdrm overrides

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 10:08:24 -07:00
Khem Raj
59d36c9832 layer: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 10:08:24 -07:00
Tom Hochstein
91a3a45f14 alsa-lib: Add conf for i.MX XCVR sound card
For EARC iec958 plugin running on 8M Plus, we need to deploy
IMX-XCVR.conf in Yocto rootfs.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-09-23 23:42:37 -03:00
Tom Hochstein
890f86d17b alsa-lib: Add support for AK4458
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-12-13 10:01:31 -06:00
Otavio Salvador
63985dc4a6 alsa-lib: Ensure MACHINE_SOCARCH is used consistently
The alsa-lib needs to apply the patches for all i.MX SoCs so using the
'imx' override seems to be the best choice for this specific
use-case.

A missing aspect though was that this should also affect every package
which /depends/ on alsa-lib (e.g: alsa-utils) so it also goes to
MACHINE_SOCARCH architecture fixing the signature change across
different machines.

This fix has been tested using a massive parallel build using
multiconfig.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-07-13 14:13:24 -03:00
Otavio Salvador
63f17d49b8 alsa-lib: Remove i.MX 6UL specific metadata
The SoC is now dealt as a i.MX6 SoC so there is no need for the
specific metadata.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-27 13:31:28 -02:00
Lauren Post
494b4b380b alsa-lib: Add patch pcm-Don-t-store-the-state-for-SND_PCM_STATE_SUSPENDE.patch
Patch fixes the resume funcion which does not update teh dmix state

Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18 16:26:15 -02:00
Lauren Post
d31c3d4bfc alsa-lib: Add i.MX 6UltraLite and i.MX 7 support
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-19 15:03:19 -03:00
Otavio Salvador
f8517afc7a Move meta-fsl-arm content to layer root
The meta-fsl-arm is going to be used as the base for this layer. It
contains a clean history and allowing a more granullar set of changes.

This commit is just a rename of all contents of meta-fsl-arm
subdirectory to this layer's root, subsequent changes are based on top
of that.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-16 15:01:29 -03:00