PulseAudio on OpenWRT with MPD and other Stuff: Difference between revisions
mNo edit summary |
|||
| Line 106: | Line 106: | ||
*...and pkill -9 pulseaudio (works great if the process is 'stuck', and don't forget okpg install procps-ng-pkill) | *...and pkill -9 pulseaudio (works great if the process is 'stuck', and don't forget okpg install procps-ng-pkill) | ||
/usr/share/pulseaudio/alsa-mixer/paths/ : Path to ALSAMIXER settings (yup, PulseAudio is in the path!) | /usr/share/pulseaudio/alsa-mixer/paths/<span> </span>: Path to ALSAMIXER settings (yup, PulseAudio is in the path!) | ||
/proc/asound/card0/usbmixer : possible location where ALSAMIXER gets names for different controls | /proc/asound/card0/usbmixer<span> </span>: possible location where ALSAMIXER gets names for different controls | ||
alsactl<span> </span>: Good for testing basic sound device settings (Top Tip: By default, for whatever reason, the "state" (AKA stored configuration) Directory (/var/lib/alsa) does not exist, so create it. | alsactl<span> </span>: Good for testing basic sound device settings (Top Tip: By default, for whatever reason, the "state" (AKA stored configuration) Directory (/var/lib/alsa) does not exist, so create it. | ||
| Line 128: | Line 128: | ||
alsamixer: shows a text GUI of controls | alsamixer: shows a text GUI of controls | ||
cat /sys/kernel/debug/usb/devices : shows details about various USB Devices | cat /sys/kernel/debug/usb/devices<span> </span>: shows details about various USB Devices | ||
aplay -l<span> </span>: shows list of sound devices | aplay -l<span> </span>: shows list of sound devices | ||
| Line 289: | Line 289: | ||
Done. | Done. | ||
...and what channels are available from a device, well, use this command: amixer -c 0 scontents | |||
Below is the output for a 7.1 surround USB Audio Device;<syntaxhighlight lang="text"> | |||
Simple mixer control 'PCM',0 | |||
Capabilities: pvolume pswitch pswitch-joined | |||
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right | |||
Limits: Playback 0 - 87 | |||
Mono: | |||
Front Left: Playback 37 [43%] [-37.50dB] [on] | |||
Front Right: Playback 37 [43%] [-37.50dB] [on] | |||
Rear Left: Playback 60 [69%] [-20.25dB] [on] | |||
Rear Right: Playback 60 [69%] [-20.25dB] [on] | |||
Front Center: Playback 60 [69%] [-20.25dB] [on] | |||
Woofer: Playback 60 [69%] [-20.25dB] [on] | |||
Side Left: Playback 60 [69%] [-20.25dB] [on] | |||
Side Right: Playback 60 [69%] [-20.25dB] [on] | |||
Simple mixer control 'PCM',1 | |||
Capabilities: pvolume pswitch pswitch-joined | |||
Playback channels: Front Left - Front Right | |||
Limits: Playback 0 - 87 | |||
Mono: | |||
Front Left: Playback 4 [5%] [-62.25dB] [on] | |||
Front Right: Playback 4 [5%] [-62.25dB] [on] | |||
Simple mixer control 'Line',0 | |||
Capabilities: cvolume cswitch cswitch-joined | |||
Capture channels: Front Left - Front Right | |||
Limits: Capture 0 - 56 | |||
Front Left: Capture 16 [29%] [0.00dB] [on] | |||
Front Right: Capture 16 [29%] [0.00dB] [on] | |||
Simple mixer control 'Mic',0 | |||
Capabilities: cvolume cswitch cswitch-joined | |||
Capture channels: Front Left - Front Right | |||
Limits: Capture 0 - 56 | |||
Front Left: Capture 16 [29%] [0.00dB] [on] | |||
Front Right: Capture 16 [29%] [0.00dB] [on] | |||
root@PandoraWRT:/MP3# | |||
</syntaxhighlight> | |||