allebb / pirrot

A radio repeater controller (supporting both simplex and duplex operation modes) for the RaspberryPi.
https://pirrot.hallinet.com
54 stars 12 forks source link

Installation to disable onboard sound card #17

Closed allebb closed 7 years ago

allebb commented 7 years ago

The following file needs to be commented as required at installation (inside:/lib/modprobe.d/aliases.conf):

# These are the standard aliases and dependencies.
# This file does not need to be modified.

# prevent unusual drivers from appearing as the first sound device ###########
options snd-pcsp index=-2
#options snd-usb-audio index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

# work around other kernel issues ############################################
# The EHCI driver should be loaded before the ones for low speed controllers
# or some devices may be confused when they are disconnected and reconnected.
softdep uhci-hcd pre: ehci-hcd
softdep ohci-hcd pre: ehci-hcd

Namely, the options snd-usb-audio index=-2 needs to be prefixed with a hash # to ensure that it does not take priority..

Secondly, the following blacklist snd_bcm2835 needs to be piped into the /etc/modprobe.d/raspi-blacklist.conf file.

allebb commented 7 years ago

This has now been fully implemented in both the install.sh and uninstall.sh files, testing proves this works as required.