Skip to content

ALSA for ostree#1077

Merged
ricardosalveti merged 5 commits intofoundriesio:mainfrom
MrCry0:main-alsa
Mar 28, 2023
Merged

ALSA for ostree#1077
ricardosalveti merged 5 commits intofoundriesio:mainfrom
MrCry0:main-alsa

Conversation

@MrCry0
Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 commented Mar 21, 2023

This PR makes ALSA work well on ostree-based distros, add the ALSA feature and enable it by default.

Re-tested on:

  • imx8mm-lpddr4-evkb
  • imx8mp-evk

Comment thread meta-lmp-base/recipes-multimedia/alsa/alsa-utils_%.bbappend Outdated
@MrCry0 MrCry0 marked this pull request as draft March 22, 2023 11:01
@MrCry0 MrCry0 changed the title Fix for alsa with ostree env ALSA for ostree Mar 22, 2023
@MrCry0 MrCry0 force-pushed the main-alsa branch 2 times, most recently from da99f76 to 1dac2b7 Compare March 23, 2023 21:00
@MrCry0 MrCry0 marked this pull request as ready for review March 23, 2023 21:26
@MrCry0 MrCry0 requested a review from a team March 23, 2023 21:26
Comment thread meta-lmp-base/recipes-samples/images/lmp-feature-alsa.inc Outdated
Comment thread meta-lmp-base/recipes-multimedia/alsa/alsa-utils_%.bbappend Outdated
Comment thread meta-lmp-base/recipes-bsp/alsa-state/alsa-state/alsa-state-init
Comment thread meta-lmp-base/recipes-bsp/alsa-state/alsa-state.bbappend Outdated
Copy link
Copy Markdown
Contributor

@Tim-Anderson Tim-Anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing that is missing is adding fio to the audio group

Otherwise LGTM

An vendor-shipped asound.state config file is required by the most
of sound systems. Installing this file as /usr/lib/alsa/asound.state
to avoid various issue. Add a fallback to scripts to try restoring
sound configuration from this file if default
/var/lib/alsa/asound.state is unavailable.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0
Copy link
Copy Markdown
Contributor Author

MrCry0 commented Mar 24, 2023

one thing that is missing is adding fio to the audio group

@Tim-Anderson It's already in place 9742ad8

@MrCry0 MrCry0 requested a review from a team March 24, 2023 18:08
Comment thread meta-lmp-base/recipes-samples/images/lmp-image-common.inc Outdated
Comment thread meta-lmp-base/recipes-samples/images/lmp-feature-alsa.inc Outdated
@MrCry0 MrCry0 force-pushed the main-alsa branch 3 times, most recently from 48edb58 to 2b9ddf3 Compare March 24, 2023 20:58
Comment thread meta-lmp-base/recipes-core/packagegroups/packagegroup-base.bbappend Outdated
Comment thread meta-lmp-base/recipes-core/packagegroups/packagegroup-base.bbappend
MrCry0 added 3 commits March 25, 2023 18:09
A path to asound.state config file is hardcoded in alsactl. Add
a fallback for alsactl to lookup for asound.state in /usr/lib/alsa.

Move creating /var/lib/alsa directory to tmpfiles systemd service.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Add a full-featured alsa-utils and alsa-tools packages to debug
sound issues.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Install the alsa-utils-aplay as a part of "packagegroup-base-alsa"
as an important tool set for using alsa feature.

Signed-off-by: Oleksandr Suvorov <[email protected]>
ALSA is useful sound subsystem and can be used alongside pulseaudio.
Enable it by default.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for working on this!

@ricardosalveti ricardosalveti merged commit 09931d4 into foundriesio:main Mar 28, 2023
@MrCry0 MrCry0 deleted the main-alsa branch July 13, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants