[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request dnschneid#4663 from myelin/install-libasound2-plug…
Browse files Browse the repository at this point in the history
…ins-early

Install libasound2-plugins before CRAS, so the ALSA config is written.
  • Loading branch information
dnschneid committed Jan 11, 2022
2 parents af161d6 + e59412f commit 70e993f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions targets/audio
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ build_cras() {

# Install CRAS dependencies
install --minimal alsa-utils \
libasound2$pkgsuffix libspeexdsp1$pkgsuffix
libasound2$pkgsuffix \
libasound2-plugins$pkgsuffix \
libspeexdsp1$pkgsuffix

install --minimal --asdeps gcc $pkgdepextra libc6-dev$pkgsuffix \
pkg-config libspeexdsp-dev$pkgsuffix
Expand Down Expand Up @@ -217,10 +219,11 @@ alsaconf='/etc/alsa/conf.d'
if [ ! -d "$alsaconf" ]; then
alsaconf='/usr/share/alsa/alsa.conf.d'
if [ ! -d "$alsaconf" ]; then
echo "Unable to find correct ALSA configuration directory." >&2
echo "Unable to find correct ALSA configuration directory." 1>&2
alsaconf='/tmp'
fi
fi
echo "Writing ALSA config into $alsaconf/10-cras.conf" 1>&2
cat > "$alsaconf/10-cras.conf" <<EOF
pcm.cras {
type cras
Expand Down

0 comments on commit 70e993f

Please sign in to comment.