shithub: riscv

Download patch

ref: 19f18b5dcee49c6f9c17550611930dffe1aaadf0
parent: 8e8b2788e5681cd4c4bc6ea09f2368b48b642d5f
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Aug 18 22:46:06 EDT 2022

man: wm8960(8) and imx8pm(8)

--- a/sys/man/8/acpi
+++ b/sys/man/8/acpi
@@ -54,6 +54,8 @@
 file currently does not provide any functionality.
 .SH SOURCE
 .B /sys/src/cmd/aux/acpi.c
+.SH SEE ALSO
+.IR imx8pm (8)
 .SH BUGS
 ACPI itself.
 .SH HISTORY
--- /dev/null
+++ b/sys/man/8/imx8pm
@@ -1,0 +1,44 @@
+.TH IMX8PM 8
+.SH NAME
+imx8pm \- power management for MNT Reform 2
+.SH SYNOPSIS
+.B aux/imx8pm
+[
+.B -D
+]
+[
+.B -m
+.I mountpoint
+]
+[
+.B -s
+.I service
+]
+.SH DESCRIPTION
+.I Aux/imx8pm
+presents at
+.I mountpoint
+(default
+.BR /mnt/pm )
+an interface to miscellaneous functions of IMX8MQ. If a
+.I service
+is specified, the interface will be posted at
+.BI /srv/ service 
+as well.
+.PP
+The directory contains the following files.
+.TP
+.B cputemp
+Exposes the current temperature reading of the CPU.
+.TP
+.B ctl
+Provides a way to control the brightness of the built-in LCD.
+.SH SOURCE
+.B /sys/src/cmd/aux/imx8pm.c
+.SH SEE ALSO
+.IR wm8960 (8)
+.SH BUGS
+Absolutely yes.
+.SH HISTORY
+.I Acpi
+first appeared in 9front (August, 2022).
--- /dev/null
+++ b/sys/man/8/wm8960
@@ -1,0 +1,74 @@
+.TH WM8960 8
+.SH NAME
+wm8960 \- audio controls for MNT Reform 2
+.SH SYNOPSIS
+.B aux/wm8960
+[
+.B -D
+]
+[
+.B -1
+]
+[
+.B -m
+.I mountpoint
+]
+[
+.B -s
+.I service
+]
+.SH DESCRIPTION
+.I Aux/imx8pm
+presents at
+.I mountpoint
+(default
+.BR /mnt/wm8960 )
+an interface to control the DAC (Digital-to-Analog Converter) found on
+MNT Reform 2.  If a
+.I service
+is specified, the interface will be posted at
+.BI /srv/ service 
+as well. In order to only initialize the DAC and immediately exit without
+running a file system, option
+.I -1
+can be used.
+.PP
+The directory contains the following files.
+.TP
+.B audioctl
+Shows the current status
+.I (on
+or
+.I off )
+of the three "outputs" -
+.BR master ,
+.BR hp
+and
+.BR spk .
+Each can be enabled, disabled or toggled, by writing a single line
+to the same file, consisting of the output name and the desired action -
+.I on ,
+.I off
+or
+.I toggle ,
+accordingly.
+.IP
+DAC can be reinitialized by writing a single
+.BR reset .
+.TP
+.B volume
+Provides an interface for volume control (see \fIaudio\fR(3)). Only
+44100Hz (default) and 48000Hz sample rates are supported.
+.IP
+Enhanced stereo separation can be enabled by writing
+.BR 3d ,
+followed by desired percentage of the effect.
+.SH SOURCE
+.B /sys/src/cmd/aux/imx8pm.c
+.SH SEE ALSO
+.IR wm8960 (8)
+.SH BUGS
+Absolutely yes.
+.SH HISTORY
+.I Wm8960
+first appeared in 9front (August, 2022).