[go: nahoru, domu]

Skip to content

Commit

Permalink
Find the correct alsa configuration directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschneid committed Dec 7, 2018
1 parent 38012fd commit 98c0cb4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions targets/audio
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
REQUIRES='core'
DESCRIPTION='Support audio playback via Chromium OS'\''s audio system.'
DESCRIPTION="Support audio playback via Chromium OS's audio system."
CHROOTBIN='volume'
CHROOTETC='pulseaudio-default.pa'
. "${TARGETSDIR:="$PWD"}/common"
Expand Down Expand Up @@ -197,7 +197,15 @@ fi
# Build CRAS for native architecture
build_cras

cat > /usr/share/alsa/alsa.conf.d/10-cras.conf <<EOF
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
alsaconf='/tmp'
fi
fi
cat > "$alsaconf/10-cras.conf" <<EOF
pcm.cras {
type cras
hint {
Expand Down

0 comments on commit 98c0cb4

Please sign in to comment.