[go: nahoru, domu]

Skip to content

Commit

Permalink
Install libasound2-plugins before CRAS, so the ALSA config is written.
Browse files Browse the repository at this point in the history
libasound2-plugins creates /etc/alsa/conf.d (newer) or
/usr/share/alsa/alsa.conf.d (older), which targets/audio needs in
order to write the config file that defines the 'cras' device
(10-cras.conf).

Fixes dnschneid#2925.
  • Loading branch information
myelin committed Jan 11, 2022
1 parent 811f5e4 commit e59412f
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 e59412f

Please sign in to comment.