30 lines
865 B
Bash
30 lines
865 B
Bash
# https://github.com/travis-ci/travis-ci/issues/1754#issuecomment-497986438
|
|
# Mirrored from https://github.com/k3it/qsorder/blob/master/test/prep-dummy-soundcard.sh
|
|
|
|
cat << EOF > "$HOME"/.asoundrc
|
|
pcm.dummy {
|
|
type hw
|
|
card 0
|
|
}
|
|
|
|
ctl.dummy {
|
|
type hw
|
|
card 0
|
|
}
|
|
EOF
|
|
chmod go+r "$HOME"/.asoundrc
|
|
cat << EOF >> /etc/modules.conf
|
|
# OSS/Free portion - card #1
|
|
alias sound-slot-0 snd-card-0
|
|
alias sound-service-0-0 snd-mixer-oss
|
|
alias sound-service-0-1 snd-seq-oss
|
|
alias sound-service-0-3 snd-pcm-oss
|
|
alias sound-service-0-8 snd-seq-oss
|
|
alias sound-service-0-12 snd-pcm-oss
|
|
EOF
|
|
# Commenting out this modprobe line for now. Otherwise the workflow fails that
|
|
# the module can't be found.
|
|
modprobe snd-dummy
|
|
# ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss
|
|
mkdir -p tmp && chmod 777 tmp
|