PulseAudio on OpenWRT with MPD and other Stuff: Difference between revisions

mNo edit summary
mNo edit summary
Line 82: Line 82:
<br />
<br />


==== Crap that Does NOT work ====
====Crap that Does NOT work====
btmgmt "connect" (doesn't exist)
btmgmt "connect" (doesn't exist)


hcitool cc WhatEverMACaddress (doesn't work)
hcitool cc WhatEverMACaddress (doesn't work)
=== ALSA Related Commands ===
alsamixer: shows a text GUI of controls
aplay -l : shows list of sound devices
aplay -L : Shows a list of the various output ports
arecord -l : Shows a list of input / source devices (note, if PulseAudio is running and / or using a device it will show the device as 0, IE, 'unavailable')
arecord -L : Shows a 'limited' list of the input / source devices
amixer scontrols : Shows a 'brief' list of devices
amixer scontents : Shows a detailed list of devices
Example below;<syntaxhighlight lang="text">
amixer scontrols
Simple mixer control 'Speaker',0
Simple mixer control 'PCM',0
Simple mixer control 'PCM Capture Source',0
Simple mixer control 'Line',0
Simple mixer control 'Mic',0
Simple mixer control 'IEC958 In',0
amixer sdevices
Simple mixer control 'Speaker',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 - 197
  Mono:
  Front Left: Playback 184 [93%] [-2.44dB] [on]
  Front Right: Playback 184 [93%] [-2.44dB] [on]
  Rear Left: Playback 196 [99%] [-0.19dB] [on]
  Rear Right: Playback 196 [99%] [-0.19dB] [on]
  Front Center: Playback 196 [99%] [-0.19dB] [on]
  Woofer: Playback 196 [99%] [-0.19dB] [on]
  Side Left: Playback 196 [99%] [-0.19dB] [on]
  Side Right: Playback 196 [99%] [-0.19dB] [on]
Simple mixer control 'PCM',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 6928
  Front Left: Capture 4096 [59%] [-0.01dB] [on]
  Front Right: Capture 4096 [59%] [-0.01dB] [on]
Simple mixer control 'PCM Capture Source',0
  Capabilities: enum
  Items: 'Mic' 'Line' 'IEC958 In' 'Mixer'
  Item0: 'Line'
Simple mixer control 'Line',0
  Capabilities: pvolume cvolume pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 8065 Capture 0 - 6928
  Front Left: Playback 4781 [59%] [-5.33dB] [off] Capture 4507 [65%] [1.60dB] [on]
  Front Right: Playback 4781 [59%] [-5.33dB] [off] Capture 4507 [65%] [1.60dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume cvolume pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 8065 Capture 0 - 6928
  Front Left: Playback 5046 [63%] [-4.30dB] [off] Capture 2451 [35%] [-6.43dB] [on]
  Front Right: Playback 5046 [63%] [-4.30dB] [off] Capture 2451 [35%] [-6.43dB] [on]
Simple mixer control 'IEC958 In',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
The above output from the amixer scontrols and amixer sdevices command shows the following;
The 'Speaker' is actually a 7.1 Surround Sound USB Audio Device with several physical AUX / 1/8" / 3.5mm Output Jacks
The 'PCM' is a "CAPTURE" Device that does absolutely nothing on this device
The 'PCM Capture Source' is the currently selected input / source (mic, line, or SPDIF)
The 'Line' is represented physically by an AUX / 1/8" / 3.5mm Input Jack ("traditionally" blue)
The 'Mic' is represented physically by an AUX / 1/8" / 3.5mm Input Jack ("traditionally" pink), and on this device, there are actually two physical Jacks, but the software doesn't know this because the Jacks are simply wired in parallel.
The 'IEC958' is represented physically by the SPDIF Jack for a Fiber Optic Cable
...and for this device, the SPDIF output isn't represented to software and apparently is just 'wired' up like a "monitor", where it gets constant full output and cannot be controlled in software (oh, well)
</syntaxhighlight>


<br />
<br />