Swinney C.
2014-01-12 12:06:55 UTC
Hi All,
I have referred to the document on the WiKi at http://www.alsa-project.org/main/index.php/Matrix%3aModule-dummy, but I require some additional help, as I am a bit of a noob at all of this.
I am looking to get a Dummy Audio device working on the Raspberry Pi running Raspian (which is based on Debian). The Raspberry Pi only has an analogue audio output as standard; however, I require a specific application that requires both audio input and output (PJSIP), even though for my instance we will not be using the input.
From the WiKi page above, I can run the following command which sets up a Dummy sound device and is enough to get PJSIP working:
sudo modprobe snd-dummy
Iâm not sure what the other commands do (modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss) but as far as I can see, I do not need them. Once the above command is run, I can see a new card list in the â/proc/âasound/âcardsâ file such that it shows:
0 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
1 [Dummy ]: Dummy - Dummy
Dummy 1
However, 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. There is a Note section that refers to Debian, but again the folder reference (/etc/âmodutils/) does not exist. In fact, the application modutils does not exist and trying to install it using:
sudo apt-get install modutils
Results in the following error:
Package modutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
I can see that in this distribution the kernel module soundcore has indeed been renamed to snd, and I can create a symbolic link to the file using:
sudo ln -s /lib/modules/3.10.25+/kernel/sound/core/snd.ko /lib/modules/3.10.25+/kernel/sound/soundcore.ko
But there is no such application called update-modules
I have created a file called /etc/âmodules.conf and put in the following text, but of course this doe nothing and on reboot the card still disappears.
# 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
So, what can I do? Any help would be very much appreciated.
One other point, there is a link in the WiKi that is supposed to point some instructions about copy to the text into the module.conf file (just over half way down), however, the link is broken. I assume itâs just linking to some instruction about using something like nano, but it might still be worth fixing for future reference.
Regards,
Chris
I have referred to the document on the WiKi at http://www.alsa-project.org/main/index.php/Matrix%3aModule-dummy, but I require some additional help, as I am a bit of a noob at all of this.
I am looking to get a Dummy Audio device working on the Raspberry Pi running Raspian (which is based on Debian). The Raspberry Pi only has an analogue audio output as standard; however, I require a specific application that requires both audio input and output (PJSIP), even though for my instance we will not be using the input.
From the WiKi page above, I can run the following command which sets up a Dummy sound device and is enough to get PJSIP working:
sudo modprobe snd-dummy
Iâm not sure what the other commands do (modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss) but as far as I can see, I do not need them. Once the above command is run, I can see a new card list in the â/proc/âasound/âcardsâ file such that it shows:
0 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
1 [Dummy ]: Dummy - Dummy
Dummy 1
However, 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. There is a Note section that refers to Debian, but again the folder reference (/etc/âmodutils/) does not exist. In fact, the application modutils does not exist and trying to install it using:
sudo apt-get install modutils
Results in the following error:
Package modutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
I can see that in this distribution the kernel module soundcore has indeed been renamed to snd, and I can create a symbolic link to the file using:
sudo ln -s /lib/modules/3.10.25+/kernel/sound/core/snd.ko /lib/modules/3.10.25+/kernel/sound/soundcore.ko
But there is no such application called update-modules
I have created a file called /etc/âmodules.conf and put in the following text, but of course this doe nothing and on reboot the card still disappears.
# 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
So, what can I do? Any help would be very much appreciated.
One other point, there is a link in the WiKi that is supposed to point some instructions about copy to the text into the module.conf file (just over half way down), however, the link is broken. I assume itâs just linking to some instruction about using something like nano, but it might still be worth fixing for future reference.
Regards,
Chris