https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&user=Stee&feedformat=atomAlpine Linux - User contributions [en]2024-03-28T14:06:42ZUser contributionsMediaWiki 1.40.0https://wiki.alpinelinux.org/w/index.php?title=ALSA&diff=18549ALSA2021-01-11T17:58:35Z<p>Stee: </p>
<hr />
<div>== Install ==<br />
<br />
First you will need to install Alsa packages, the Linux sound driver and volume adjuster.<br />
<br />
# apk add alsa-utils alsa-utils-doc alsa-lib alsaconf<br />
<br />
== Setup ==<br />
<br />
Then you will need to add all your users (including root) to the <code>audio</code> group.<br />
<br />
# addgroup $USER audio<br />
# addgroup root audio<br />
<br />
Find the default sound card.<br />
<br />
# alsamixer<br />
<br />
The default sound card will show up. Try turning up the volume of Master and the device(s) such as speakers or microphones that you need, and audio should work (''F1'' - help, ''M'' - toggle mute, ...)<br />
<br />
If there are no volume controls visible, try hitting ''F6'' on your keyboard and toggling between the sound cards (which all might have the same name in the context menu that pops up except for the numbers next to and before the names).<br />
<br />
Once you've found the sound card name that gives you volume controls, set the unique number that showed up in the ''F6'' context menu as your default soundcard.<br />
<br />
# nano /usr/share/alsa/alsa.conf<br />
<br />
Scroll down until you find the lines that start with <code>defaults.ctl.card</code> and <code>defaults.pcm.card</code> and put the number (you found in the ''F6'' context menu of the alsamixer command for the soundcard you want as your default) at the end of those lines separated by a space for each. For example, if the default sound card you want is "1".<br />
<br />
<code>defaults.ctl.card 1</code><br />
<code>defaults.pcm.card 1</code><br />
<br />
Save your nano work by pressing ''Ctrl+O'' and confirm the changes by pressing ''Enter''. Then exit nano by pressing ''Ctrl+X''.<br />
<br />
Try turning up the volume of Master and the device(s) such as speakers or microphones that you need with the <code>alsamixer</code> command, and audio should work.<br />
<br />
Alsa service is not started on install, you need to start it and to add it on rc.<br />
rc-service alsa start<br />
rc-update add alsa<br />
<br />
Gstreamer can now catch the device and the audio mixer is working.<br />
<br />
[[Category:Installation]]<br />
[[Category:Desktop]]<br />
[[Category:Multimedia]]<br />
[[Category:Sound]]</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=Talk:Sound_Setup&diff=18548Talk:Sound Setup2021-01-11T17:57:08Z<p>Stee: Stee moved page Talk:Sound Setup to Talk:ALSA: is specific to alsa</p>
<hr />
<div>#REDIRECT [[Talk:ALSA]]</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=Talk:ALSA&diff=18547Talk:ALSA2021-01-11T17:57:08Z<p>Stee: Stee moved page Talk:Sound Setup to Talk:ALSA: is specific to alsa</p>
<hr />
<div>As this page specifically refers to setting up {{Pkg|alsa-utils}} it should be renamed to Alsa-utils configuration under the category of sound. This way when other sound wikis are created ({{Pkg|pulseaudio}} or {{Pkg|jack}}, etc) there is no confusion.</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=Sound_Setup&diff=18546Sound Setup2021-01-11T17:57:08Z<p>Stee: Stee moved page Sound Setup to ALSA: is specific to alsa</p>
<hr />
<div>#REDIRECT [[ALSA]]</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=ALSA&diff=18545ALSA2021-01-11T17:57:08Z<p>Stee: Stee moved page Sound Setup to ALSA: is specific to alsa</p>
<hr />
<div>== Introduction ==<br />
<br />
This will show you how to setup sound using [https://www.alsa-project.org/wiki/Main_Page ALSA].<br />
<br />
== Setup ==<br />
<br />
First you will need to install Alsa packages, the Linux sound driver and volume adjuster.<br />
<br />
# apk add alsa-utils alsa-utils-doc alsa-lib alsaconf<br />
<br />
Then you will need to add all your users (including root) to the <code>audio</code> group.<br />
<br />
# addgroup $USER audio<br />
# addgroup root audio<br />
<br />
Find the default sound card.<br />
<br />
# alsamixer<br />
<br />
The default sound card will show up. Try turning up the volume of Master and the device(s) such as speakers or microphones that you need, and audio should work (''F1'' - help, ''M'' - toggle mute, ...)<br />
<br />
If there are no volume controls visible, try hitting ''F6'' on your keyboard and toggling between the sound cards (which all might have the same name in the context menu that pops up except for the numbers next to and before the names).<br />
<br />
Once you've found the sound card name that gives you volume controls, set the unique number that showed up in the ''F6'' context menu as your default soundcard.<br />
<br />
# nano /usr/share/alsa/alsa.conf<br />
<br />
Scroll down until you find the lines that start with <code>defaults.ctl.card</code> and <code>defaults.pcm.card</code> and put the number (you found in the ''F6'' context menu of the alsamixer command for the soundcard you want as your default) at the end of those lines separated by a space for each. For example, if the default sound card you want is "1".<br />
<br />
<code>defaults.ctl.card 1</code><br />
<code>defaults.pcm.card 1</code><br />
<br />
Save your nano work by pressing ''Ctrl+O'' and confirm the changes by pressing ''Enter''. Then exit nano by pressing ''Ctrl+X''.<br />
<br />
Try turning up the volume of Master and the device(s) such as speakers or microphones that you need with the <code>alsamixer</code> command, and audio should work.<br />
<br />
Alsa service is not started on install, you need to start it and to add it on rc.<br />
rc-service alsa start<br />
rc-update add alsa<br />
<br />
Gstreamer can now catch the device and the audio mixer is working.<br />
<br />
[[Category:Installation]]<br />
[[Category:Desktop]]<br />
[[Category:Multimedia]]<br />
[[Category:Sound]]</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=PulseAudio&diff=18544PulseAudio2021-01-11T17:56:13Z<p>Stee: </p>
<hr />
<div>== Installation ==<br />
<br />
apk add pulseaudio pulseaudio-alsa<br />
<br />
== Alsa only applications support ==<br />
<br />
Most applications on Alpine Linux are compiled to support only ALSA, foregoing linking against libpulse and the ability to dynamically switch to pulseaudio output when it finds that pulseaudio is running. Install the pulse output plugin for ALSA so applications can output to Pulseaudio.<br />
<br />
apk add alsa-plugins-pulse<br />
<br />
== Process Priority ==<br />
<br />
Pulseaudio should run with an elevated priority, because e.g. crackling or delayed audio is more annoying than a low framerate in games.<br />
<br />
Installing the shadow package (which is compiled against linux-pam) is an easy way for the non-root user to be granted the ability to change niceness, and pulseaudio is recommended to be run as the user, rather than as root. E.g. in /etc/security/limits.d/audio.conf (and putting the user in the "audio" group):<br />
<br />
@audio - nice -11<br />
<br />
<br />
[[category:Multimedia]]<br />
[[Category:Sound]]</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=Category:Sound&diff=18543Category:Sound2021-01-11T17:53:50Z<p>Stee: Created page with "All you wanted to know about sound."</p>
<hr />
<div>All you wanted to know about sound.</div>Steehttps://wiki.alpinelinux.org/w/index.php?title=ALSA&diff=18542ALSA2021-01-11T17:52:28Z<p>Stee: Mention this is using ALSA.</p>
<hr />
<div>== Introduction ==<br />
<br />
This will show you how to setup sound using [https://www.alsa-project.org/wiki/Main_Page ALSA].<br />
<br />
== Setup ==<br />
<br />
First you will need to install Alsa packages, the Linux sound driver and volume adjuster.<br />
<br />
# apk add alsa-utils alsa-utils-doc alsa-lib alsaconf<br />
<br />
Then you will need to add all your users (including root) to the <code>audio</code> group.<br />
<br />
# addgroup $USER audio<br />
# addgroup root audio<br />
<br />
Find the default sound card.<br />
<br />
# alsamixer<br />
<br />
The default sound card will show up. Try turning up the volume of Master and the device(s) such as speakers or microphones that you need, and audio should work (''F1'' - help, ''M'' - toggle mute, ...)<br />
<br />
If there are no volume controls visible, try hitting ''F6'' on your keyboard and toggling between the sound cards (which all might have the same name in the context menu that pops up except for the numbers next to and before the names).<br />
<br />
Once you've found the sound card name that gives you volume controls, set the unique number that showed up in the ''F6'' context menu as your default soundcard.<br />
<br />
# nano /usr/share/alsa/alsa.conf<br />
<br />
Scroll down until you find the lines that start with <code>defaults.ctl.card</code> and <code>defaults.pcm.card</code> and put the number (you found in the ''F6'' context menu of the alsamixer command for the soundcard you want as your default) at the end of those lines separated by a space for each. For example, if the default sound card you want is "1".<br />
<br />
<code>defaults.ctl.card 1</code><br />
<code>defaults.pcm.card 1</code><br />
<br />
Save your nano work by pressing ''Ctrl+O'' and confirm the changes by pressing ''Enter''. Then exit nano by pressing ''Ctrl+X''.<br />
<br />
Try turning up the volume of Master and the device(s) such as speakers or microphones that you need with the <code>alsamixer</code> command, and audio should work.<br />
<br />
Alsa service is not started on install, you need to start it and to add it on rc.<br />
rc-service alsa start<br />
rc-update add alsa<br />
<br />
Gstreamer can now catch the device and the audio mixer is working.<br />
<br />
[[Category:Installation]]<br />
[[Category:Desktop]]<br />
[[Category:Multimedia]]<br />
[[Category:Sound]]</div>Stee