summaryrefslogtreecommitdiff
path: root/sys/src/cmd/reform/audio.c
AgeCommit message (Collapse)Author
2022-09-27reform/audio: remove HP caps discharge; faster hp/spk switch and (un)mute ↵Sigrid Solveig Haflínudóttir
response
2022-09-09reform/audio: remove DAC vol limit; discharge HP caps on initSigrid Solveig Haflínudóttir
Capless mode was mistakingly enabled, with 500Ω on VRIO to disable the audio, which most likely cause the original "issue" of speakers playback switching off and on when on full volume. Fix that. Also set impedance on VRIO to 20kΩ. Discharge HP caps on init to cause less pop.
2022-09-08reform/audio: use soft-mute to toggle DACSigrid Solveig Haflínudóttir
Disabling DAC caused an audible pop and would stop the clock, causing any program writing to /dev/audio to halt until DAC would be enabled again. Use "digital soft mute" instead - no clock stopping, nor pops.
2022-08-21reform: tweak manpage and reform/audio a bitSigrid Solveig Haflínudóttir
2022-08-21move and rename MNT Reform 2 support utilies, cat manpages into oneSigrid Solveig Haflínudóttir
Aux/imx8pm and aux/wm8960 had pretty cryptic names and it made more sense to use a reform/pm and reform/audio naming, accordingly. Instead of having special mount points /mnt/pm and /mnt/wm8960, /dev is used directly, removing the need to do any manual work - stats(1) will continue showing the CPU temperature, and zuke(1) will still be able to control the volume, etc. Brightness controls were changed to a better interface - /dev/light, where each line contains a "a_thing its_light_value". This way more parts can be controlled. Right now it's only "lcd", but later it might be "kbd" and "trackball" as well. Example of lib/profile: reform/audio echo master 80 > /dev/volume reform/pm echo lcd 100 > /dev/light