alsa
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| alsa [2026-11-22 21:47 UTC (5 days ago)] – formattinhg fix qkb | alsa [2026-11-22 22:40 UTC (5 days ago)] (current) – remove some useless AI text / verbosity jazzy | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * PIC32 key '' | * PIC32 key '' | ||
| - | * One master gate for both channels. | ||
| * It reads back with '' | * It reads back with '' | ||
| - | * It latches | + | * It remains in this state until the PIC32 resets at the next power-off. |
| - | With the amp off, ALSA, the codec, the mixer, and the clocks can all be perfectly | ||
| - | configured and the speaker is still silent. That is why playback needed nx in | ||
| - | practice: nx switches the amp on once at startup through | ||
| - | '' | ||
| ===== Turning the amp on ===== | ===== Turning the amp on ===== | ||
| - | The stock tool does it with: | + | You can toggle the amp using NxExe: |
| < | < | ||
| Line 27: | Line 22: | ||
| </ | </ | ||
| - | That command toggles the amp. The state persists until the PIC32 loses power, so | + | That command toggles the amplifier. The state persists until the PIC32 loses power, so |
| - | blindly toggling | + | blindly toggling |
| - | first, or set it explicitly. | + | |
| To set the amp explicitly, write the PIC32 frame directly. These are IPP frames | To set the amp explicitly, write the PIC32 frame directly. These are IPP frames | ||
| Line 63: | Line 57: | ||
| </ | </ | ||
| - | Play a file, not a pipe. A file plays: | + | Playing |
| < | < | ||
| aplay / | aplay / | ||
| - | </ | ||
| - | |||
| - | Piping into '' | ||
| - | |||
| - | < | ||
| - | cat tone.wav | aplay -q - | ||
| </ | </ | ||
| Line 80: | Line 68: | ||
| amixer -c 0 sset PCM 65% | amixer -c 0 sset PCM 65% | ||
| </ | </ | ||
| - | |||
| - | The old '' | ||
| - | not a percentage. | ||
| A complete manual sequence: | A complete manual sequence: | ||
| Line 98: | Line 83: | ||
| ===== Why nx seemed to be required ===== | ===== Why nx seemed to be required ===== | ||
| - | nx turns the speaker amp on once at startup and never turns it off. The PIC32 | + | nx turned |
| keeps that state until it loses power. | keeps that state until it loses power. | ||
| - | The codec is not the gate. Its registers, DAPM, GPIO, clocks, AUDMUX, and SSI1 | + | The codec can be configured fine without |
| can all match while the speaker is silent. The amp is a separate PIC32 value on | can all match while the speaker is silent. The amp is a separate PIC32 value on | ||
| '' | '' | ||
| control. It writes '' | control. It writes '' | ||
| - | Set '' | ||
| - | until the PIC32 resets, so it only needs setting once per power cycle. | ||
| ===== Notes (maybe outdated) ===== | ===== Notes (maybe outdated) ===== | ||
alsa.1795384041.txt.gz · Last modified: by qkb
