Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:setting_up_sound [2012/10/17 04:26] – [Hearing sound using ALSA] add asoundrc aus9 | wiki:setting_up_sound [2018/10/04 20:21] (current) – [Rich setup guide] aus9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | under re-construction Now 2 pages will fix up contents later | ||
- | |||
======ALSA====== | ======ALSA====== | ||
Sound is NOT built into base CorePlus, MicroCore or TinyCore, sound is implemented via extensions. I assume you are reading this because you a newbie. | Sound is NOT built into base CorePlus, MicroCore or TinyCore, sound is implemented via extensions. I assume you are reading this because you a newbie. | ||
- | |||
- | |||
- | |||
=====OSS versus ALSA===== | =====OSS versus ALSA===== | ||
Line 12: | Line 7: | ||
* If you need to change sound devices on-the-fly gui –> Pulseaudio (front end to ALSA) \\ | * If you need to change sound devices on-the-fly gui –> Pulseaudio (front end to ALSA) \\ | ||
* If you need to change sound devices no gui –> ALSA \\ | * If you need to change sound devices no gui –> ALSA \\ | ||
- | * If you need easier surround sound –> | + | * If you need easier surround sound –> |
* If you like command mode surround sound –> Try OSS \\ | * If you like command mode surround sound –> Try OSS \\ | ||
* If you have an ISA sound device –> Try OSS then ALSA \\ | * If you have an ISA sound device –> Try OSS then ALSA \\ | ||
Line 23: | Line 18: | ||
good luck and [[sound_setup_using_oss| click here for OSS wiki]] | good luck and [[sound_setup_using_oss| click here for OSS wiki]] | ||
+ | |||
+ | =====Remove OSS===== | ||
+ | If you have previously installed OSS remove those packages from onboot | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | =====Rich setup guide===== | ||
+ | Install alsa-config.tcz and alsa.tcz | ||
+ | |||
+ | Install alsamixergui.tcz (optional) | ||
+ | |||
+ | Set the volume control on the front of the speaker about 1/3 of the way up | ||
+ | |||
+ | Run: | ||
+ | < | ||
+ | |||
+ | This produced a slight thump as the card was found and initialized. That command | ||
+ | also unmuted the speakers and set the mixer volumes at sane levels. | ||
+ | |||
+ | Run: | ||
+ | < | ||
+ | |||
+ | If all went well, you should hear the phrases | ||
+ | your left and right speakers respectively. | ||
+ | |||
+ | Run: | ||
+ | < | ||
+ | |||
+ | Run: | ||
+ | < | ||
+ | |||
+ | Run: | ||
+ | < | ||
+ | |||
+ | Run a backup to save your setup. | ||
=====Hearing sound using ALSA===== | =====Hearing sound using ALSA===== | ||
Line 56: | Line 90: | ||
=====HDMI or .asoundrc users ===== | =====HDMI or .asoundrc users ===== | ||
+ | |||
+ | Although I use HDMI as the main theme in this section, it applies to all users that need it and model=string in other sections or index strings does not resolve sound issues for you. | ||
If your mixer does not show up your HDMI device, you are likely to need an / | If your mixer does not show up your HDMI device, you are likely to need an / | ||
Line 61: | Line 97: | ||
Note its dot asoundrc, if you don't have one, we are going to create one now. But I don't have a HDMI sound device so will pretend to have one. | Note its dot asoundrc, if you don't have one, we are going to create one now. But I don't have a HDMI sound device so will pretend to have one. | ||
- | First run the commands | + | First run the command |
< | < | ||
- | cat / | ||
- | 2: [ 0- 1]: digital audio playback | ||
- | 3: [ 0- 0]: digital audio playback | ||
- | 4: [ 0- 0]: digital audio capture | ||
- | 5: [ 0- 0]: hardware dependent | ||
- | 6: [ 0] : control | ||
- | | ||
- | tc@box:~$ cat / | ||
- | 00-00: STAC92xx Analog : STAC92xx Analog : playback 1 : capture 2 | ||
- | 00-01: STAC92xx Digital : STAC92xx Digital : playback 1 | ||
tc@box:~$ aplay -l | tc@box:~$ aplay -l | ||
**** List of PLAYBACK Hardware Devices **** | **** List of PLAYBACK Hardware Devices **** | ||
Line 82: | Line 108: | ||
Subdevice #0: subdevice #0 | Subdevice #0: subdevice #0 | ||
</ | </ | ||
+ | |||
+ | Now reducing my aplay command to bare essentials, it reads | ||
+ | < | ||
+ | card 0, device 0 (analog) | ||
+ | ---subdevice 0 | ||
+ | card 0, device 1 (digital) | ||
+ | ---subdevice 0 | ||
+ | </ | ||
+ | |||
+ | But lets pretend you see output for digital and it reads | ||
+ | |||
+ | card 0 , device 1 | ||
+ | ---subdevice 0 | ||
+ | |||
+ | as the first subdevice tends to be hdmi, we can drop reference to it in the asoundrc but if you need it, add the extra line below device (number) | ||
+ | ^subdevice (number)^ | ||
+ | |||
+ | We next create a file to be saved as / | ||
+ | |||
+ | < | ||
+ | pcm.!default { | ||
+ | type hw | ||
+ | card 0 | ||
+ | device 1 | ||
+ | } | ||
+ | |||
+ | ctl.card0 { | ||
+ | type hw | ||
+ | card 0 | ||
+ | device 1 | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The first string pcm......!default is telling alsa....try this device first for any application wanting to use sound. | ||
+ | |||
+ | Now as we newbies, instead of learning how to stop and restart alsa, we cheat and logout and choose "Exit to Prompt", | ||
+ | |||
+ | Now if you need to change any mixer level, [[wiki: | ||
+ | |||
+ | =====asoundrc wiki=====\\ | ||
+ | http:// | ||
| | ||
Line 124: | Line 191: | ||
If you have multiple sound devices or the mixer channels are not correct or still no sound continue reading please. | If you have multiple sound devices or the mixer channels are not correct or still no sound continue reading please. | ||
+ | |||
=====Technical details for Newbies if no sound===== | =====Technical details for Newbies if no sound===== | ||
To hear sound, you need a sound tcz to load called alsa.tcz (this also loads dependencies)\\ | To hear sound, you need a sound tcz to load called alsa.tcz (this also loads dependencies)\\ | ||
Line 180: | Line 248: | ||
* modules exist, but a system setting such as the bootcode has " | * modules exist, but a system setting such as the bootcode has " | ||
* modules exist, but a module " | * modules exist, but a module " | ||
+ | |||
=====alsaconf when the aplay list is empty===== | =====alsaconf when the aplay list is empty===== | ||
If you downloaded alsa and its in your onboot list and you rebooted, you should have sound devices configured. You may need to adjust the mixers to **hear** sound. However, if | If you downloaded alsa and its in your onboot list and you rebooted, you should have sound devices configured. You may need to adjust the mixers to **hear** sound. However, if | ||
Line 192: | Line 261: | ||
Users with ISA sound devices may need alsaconf. If the only changes were to mixer levels or running alsaconf you can now jump to [[alsa_part2# | Users with ISA sound devices may need alsaconf. If the only changes were to mixer levels or running alsaconf you can now jump to [[alsa_part2# | ||
+ | |||
===== blacklist ===== | ===== blacklist ===== | ||
This option needs edit of your boot loader config with root powers. This is **unofficial** recommended way for all users where:\\ | This option needs edit of your boot loader config with root powers. This is **unofficial** recommended way for all users where:\\ | ||
Line 209: | Line 279: | ||
If you have multiple modules to blacklist you can use the formula | If you have multiple modules to blacklist you can use the formula | ||
^blacklist=sound_module_name, | ^blacklist=sound_module_name, | ||
+ | |||
=====Blacklist for permanent disable of internal sound device===== | =====Blacklist for permanent disable of internal sound device===== | ||
So if you have a computer where the internal sound, onboard or isa or pci is faulty or deficient, blacklist the internal sound module. | So if you have a computer where the internal sound, onboard or isa or pci is faulty or deficient, blacklist the internal sound module. | ||
Line 231: | Line 302: | ||
</ | </ | ||
In other words, what we test live, is roughly what we show in bootlocal but drop the word sudo | In other words, what we test live, is roughly what we show in bootlocal but drop the word sudo | ||
+ | |||
=====Reasons for changing===== | =====Reasons for changing===== | ||
In this section, the blacklist is the same as the modprobe -r command. But we are doing it, because you find that the mixer channels or switches or options are not a match to your actual hardware. This is true for my intel device and may be true of a number of intel devices but also affects some other sound module users such as AC97. | In this section, the blacklist is the same as the modprobe -r command. But we are doing it, because you find that the mixer channels or switches or options are not a match to your actual hardware. This is true for my intel device and may be true of a number of intel devices but also affects some other sound module users such as AC97. | ||
Line 258: | Line 330: | ||
</ | </ | ||
If this is too much info for newbies, ignore the modinfo command. | If this is too much info for newbies, ignore the modinfo command. | ||
+ | |||
=====Research your sound device===== | =====Research your sound device===== | ||
lsmod shows what your sound module is. Now use that information to check the list of files for {{http:// | lsmod shows what your sound module is. Now use that information to check the list of files for {{http:// | ||
Line 290: | Line 363: | ||
</ | </ | ||
This information may be seen in alsamixer command or in alsamixergui, | This information may be seen in alsamixer command or in alsamixergui, | ||
- | < | + | |
- | STAC9220/ | + | But I have just had to change while testing PA and the new preferred method for intel users is this link |
- | ============= | + | http:// |
- | ref Reference board | + | |
- | 3stack D945 3stack | + | and so we now use model=auto. |
- | 5stack D945 5stack + SPDIF | + | |
- | | + | |
- | intel-mac-v2 Intel Mac Type 2 | + | |
- | intel-mac-v3 Intel Mac Type 3 | + | |
- | intel-mac-v4 Intel Mac Type 4 | + | |
- | intel-mac-v5 Intel Mac Type 5 | + | |
- | intel-mac-auto Intel Mac (detect type according | + | |
- | macmini Intel Mac Mini (equivalent with type 3) | + | |
- | macbook Intel Mac Book (eq. type 5) | + | |
- | macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3) | + | |
- | macbook-pro Intel Mac Book Pro 2nd generation (eq. type 3) | + | |
- | imac-intel Intel iMac (eq. type 2) | + | |
- | imac-intel-20 Intel iMac (newer version) (eq. type 3) | + | |
- | ecs202 ECS/PC chips | + | |
- | | + | |
- | | + | |
- | dell-m81 Dell (unknown) | + | |
- | dell-m82 Dell XPS M1210 | + | |
- | | + | |
- | </ | + | |
- | See 5stack? It means 5 color connectors for audio. So as alsasound was showing only 2 channel mixer settings, I need to make the following change to bootlocal. | + | |
=====bootlocal.sh tweaks - Part two -- to change mixer controls or settings===== | =====bootlocal.sh tweaks - Part two -- to change mixer controls or settings===== | ||
Line 323: | Line 376: | ||
^/ | ^/ | ||
- | eg I use / | + | eg I use / |
====Part 2 where you have not blacklisted==== | ====Part 2 where you have not blacklisted==== | ||
You will need a remove module and re-insert module command, using formula | You will need a remove module and re-insert module command, using formula | ||
Line 337: | Line 391: | ||
{{wiki: | {{wiki: | ||
- | =====index issues===== | + | =====index |
As a general rule, most software applications, | As a general rule, most software applications, | ||
Line 355: | Line 409: | ||
=====Page 2===== | =====Page 2===== | ||
[[wiki: | [[wiki: | ||
- | |||
- | |||
- | |||
- | |||
- | |||