Re: Setting up a Dummy Sound device on a Raspberry Pi running Raspian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Swinney C. wrote:
> > I have referred to the document on the WiKi at
> > http://www.alsa-project.org/main/index.php/Matrix%3aModule-dummy
> 
> Most of that page comes from a generic template and does not apply to the
> dummy driver, or is outdated.
> 

Ah, that makes things awkward for us noobs. Linux in not my strong suit and coming to terms with all of the idiosyncrasies or all the different flavours and dealing with outdated documentation make things a little difficult. Of course, I understand that updating such documentation is time consuming. 


> > I come unstuck when I reboot and the sound card disappears. In the
> > WiKi, you refer to editing the /etc/​modules.conf file, however both
> > this and the other file referenced
> > (/etc/​conf.modules) do not exist in this distribution.
> 
> You have to find out how to load modules at startup in that distribution.
> 
> Try adding "modprobe snd-dummy" to /etc/rc.d/rc.local, or check if there is
> any other sript file that gets executed at startup.
> 
> 
> Regards,
> Clemens
> 

Ah ha - such is the lack of my Linux knowledge, but this little pointer gives me a little bit more understanding. What I had seen is a '/etc/modules' file, which seems to do what you are pointing me toward. The only entry in there is for 'snd-bcm2835' which (I believe) loads the driver for the on-board sound device. Adding 'snd-dummy' on the next line does what I'm after! The Dummy sound driver then loads as the second device on boot.

There are a few other file relating to ALSA in the '/etc/modprobe.d/' directory, namely 'alsa-base.conf' and 'alsa-base-blacklist.conf' that contain other ALSA related info and seem to install lots of different things using 'modprobe'. Not sure if I should add 'options snd-dummy=-2' to the bottom of the 'alsa-base.conf' file (shown below), but it does seem like the on-board driver loads first then the Dummy device load next just using what I have set above.

	# autoloader aliases
	install sound-slot-0 /sbin/modprobe snd-card-0
	install sound-slot-1 /sbin/modprobe snd-card-1
	install sound-slot-2 /sbin/modprobe snd-card-2
	install sound-slot-3 /sbin/modprobe snd-card-3
	install sound-slot-4 /sbin/modprobe snd-card-4
	install sound-slot-5 /sbin/modprobe snd-card-5
	install sound-slot-6 /sbin/modprobe snd-card-6
	install sound-slot-7 /sbin/modprobe snd-card-7
	# Cause optional modules to be loaded above generic modules
	install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
	install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
	install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
	# Keep snd-pcsp from beeing loaded as first soundcard
	options snd-pcsp index=-2
	# Keep snd-usb-audio from beeing loaded as first soundcard
	options snd-usb-audio index=-2
	# Prevent abnormal drivers from grabbing index 0
	options bt87x index=-2
	options cx88_alsa index=-2
	options snd-atiixp-modem index=-2
	options snd-intel8x0m index=-2
	options snd-via82xx-modem index=-2

Many thanks Clemens for your pointer.

Chris

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user





[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux