Linux modules for PC speaker: pcspkr vs snd_pcsp

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












What is the difference between these two modules




  • pcspkr: PC-Speaker driver


  • snd_pcsp: PC-Speaker driver

different tutorials call for different ones







share|improve this question

















  • 1




    cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
    – A.B
    Jun 6 at 16:45















up vote
0
down vote

favorite












What is the difference between these two modules




  • pcspkr: PC-Speaker driver


  • snd_pcsp: PC-Speaker driver

different tutorials call for different ones







share|improve this question

















  • 1




    cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
    – A.B
    Jun 6 at 16:45













up vote
0
down vote

favorite









up vote
0
down vote

favorite











What is the difference between these two modules




  • pcspkr: PC-Speaker driver


  • snd_pcsp: PC-Speaker driver

different tutorials call for different ones







share|improve this question













What is the difference between these two modules




  • pcspkr: PC-Speaker driver


  • snd_pcsp: PC-Speaker driver

different tutorials call for different ones









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 16:42
























asked Jun 6 at 14:59









Evan Carroll

4,46683472




4,46683472







  • 1




    cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
    – A.B
    Jun 6 at 16:45













  • 1




    cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
    – A.B
    Jun 6 at 16:45








1




1




cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
– A.B
Jun 6 at 16:45





cateee.net/lkddb/web-lkddb/SND_PCSP.html : seems it (tries to) turn(s) the pc speaker into a sound card (with a sound card API), with beep left as a bonus.
– A.B
Jun 6 at 16:45











1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










pcspkr is the standard module; it allows you to control the PC speaker via the input layer. The canonical symlink is /dev/input/by-path/platform-pcspkr-event-spkr. You can send events to the speaker by writing to it (most other input devices will produce events, which you read from the input device node). The PC speaker is very simple, basically it can play tones of a given frequency, which can be used for beeps with different pitches.



snd_pcsp is an attempt to the use this very limited hardware to produce full PCM sound. It appears as an ALSA device. It doesn't work very well, at least on my system; the sound is barely recognizable. I'd by surprised if a "tutorial calls for it".






share|improve this answer





















  • If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
    – dirkt
    Jun 7 at 4:01











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448229%2flinux-modules-for-pc-speaker-pcspkr-vs-snd-pcsp%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










pcspkr is the standard module; it allows you to control the PC speaker via the input layer. The canonical symlink is /dev/input/by-path/platform-pcspkr-event-spkr. You can send events to the speaker by writing to it (most other input devices will produce events, which you read from the input device node). The PC speaker is very simple, basically it can play tones of a given frequency, which can be used for beeps with different pitches.



snd_pcsp is an attempt to the use this very limited hardware to produce full PCM sound. It appears as an ALSA device. It doesn't work very well, at least on my system; the sound is barely recognizable. I'd by surprised if a "tutorial calls for it".






share|improve this answer





















  • If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
    – dirkt
    Jun 7 at 4:01















up vote
1
down vote



accepted










pcspkr is the standard module; it allows you to control the PC speaker via the input layer. The canonical symlink is /dev/input/by-path/platform-pcspkr-event-spkr. You can send events to the speaker by writing to it (most other input devices will produce events, which you read from the input device node). The PC speaker is very simple, basically it can play tones of a given frequency, which can be used for beeps with different pitches.



snd_pcsp is an attempt to the use this very limited hardware to produce full PCM sound. It appears as an ALSA device. It doesn't work very well, at least on my system; the sound is barely recognizable. I'd by surprised if a "tutorial calls for it".






share|improve this answer





















  • If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
    – dirkt
    Jun 7 at 4:01













up vote
1
down vote



accepted







up vote
1
down vote



accepted






pcspkr is the standard module; it allows you to control the PC speaker via the input layer. The canonical symlink is /dev/input/by-path/platform-pcspkr-event-spkr. You can send events to the speaker by writing to it (most other input devices will produce events, which you read from the input device node). The PC speaker is very simple, basically it can play tones of a given frequency, which can be used for beeps with different pitches.



snd_pcsp is an attempt to the use this very limited hardware to produce full PCM sound. It appears as an ALSA device. It doesn't work very well, at least on my system; the sound is barely recognizable. I'd by surprised if a "tutorial calls for it".






share|improve this answer













pcspkr is the standard module; it allows you to control the PC speaker via the input layer. The canonical symlink is /dev/input/by-path/platform-pcspkr-event-spkr. You can send events to the speaker by writing to it (most other input devices will produce events, which you read from the input device node). The PC speaker is very simple, basically it can play tones of a given frequency, which can be used for beeps with different pitches.



snd_pcsp is an attempt to the use this very limited hardware to produce full PCM sound. It appears as an ALSA device. It doesn't work very well, at least on my system; the sound is barely recognizable. I'd by surprised if a "tutorial calls for it".







share|improve this answer













share|improve this answer



share|improve this answer











answered Jun 6 at 18:51









dirkt

13.9k2930




13.9k2930











  • If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
    – dirkt
    Jun 7 at 4:01

















  • If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
    – dirkt
    Jun 7 at 4:01
















If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
– dirkt
Jun 7 at 4:01





If the question is "how do I get virtualbox to simulate a PC speaker" (which you didn't mention at all in the question above, might be a good idea to do it next time): As you've already heard, either enable virtualbox to directly access the speaker hardware via passthrough, or use whatever options virtualbox has to emulate a speaker. (I haven't tried either). Read virtualbox docs for details. If virtualbox doesn't emulate enough for you, try QEMU. Linux modules on the host side have nothing to do with this.
– dirkt
Jun 7 at 4:01













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448229%2flinux-modules-for-pc-speaker-pcspkr-vs-snd-pcsp%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?