TS-8950-49xx Speaker

From embeddedTS Manuals
Revision as of 16:18, 9 July 2015 by Mark (talk | contribs) (Created page with "The TS-8950 includes a small speaker capable of 82dBA (100mW). This is accessed in most typical applications using the alsa software interface. The audio codec outputs the s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The TS-8950 includes a small speaker capable of 82dBA (100mW). This is accessed in most typical applications using the alsa software interface.

The audio codec outputs the same channel to the speaker and to the headphone port on the audio header. You can toggle a GPIO to disable the speaker and just play to the heapdhone port.

# Turn on speaker (on by default)
echo 1 > /sys/class/leds/en-speaker/brightness

# Turn off speaker
echo 0 > /sys/class/leds/en-speaker/brightness