Linux modules for PC speaker: pcspkr vs snd_pcsp
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
What is the difference between these two modules
pcspkr
: PC-Speaker driversnd_pcsp
: PC-Speaker driver
different tutorials call for different ones
linux ubuntu audio kernel-modules
add a comment |Â
up vote
0
down vote
favorite
What is the difference between these two modules
pcspkr
: PC-Speaker driversnd_pcsp
: PC-Speaker driver
different tutorials call for different ones
linux ubuntu audio kernel-modules
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
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
What is the difference between these two modules
pcspkr
: PC-Speaker driversnd_pcsp
: PC-Speaker driver
different tutorials call for different ones
linux ubuntu audio kernel-modules
What is the difference between these two modules
pcspkr
: PC-Speaker driversnd_pcsp
: PC-Speaker driver
different tutorials call for different ones
linux ubuntu audio kernel-modules
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
add a comment |Â
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
add a comment |Â
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".
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
add a comment |Â
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".
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
add a comment |Â
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".
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
add a comment |Â
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".
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".
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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