|
|
@@ -2,15 +2,15 @@
|
|
|
|
|
|
Replaces the LPC1114 firmware: the panel and keys hang off I²C expanders on the
|
|
|
Linux board. The panel runs on real hardware through `radio-ui i2c` and
|
|
|
-`radio-ui drm`. The key expander answers on the test rig and reads idle; no
|
|
|
-key has been pressed yet. The overlay has not run.
|
|
|
+`radio-ui drm`. All 13 keys read correctly through the key expander on the test
|
|
|
+rig. The overlay has not run.
|
|
|
|
|
|
| Path | What |
|
|
|
|---|---|
|
|
|
| `driver/s1d13700_core.*` | Panel core, used by everything: init, 2 bpp conversion, write planner, TCA9539 stream |
|
|
|
| `driver/s1d13700_drm.c` | DRM driver (6.x kernels) |
|
|
|
| `sim/` | Model of the TCA9539 and S1D13700: decodes the I²C bytes and flags bus faults |
|
|
|
-| `radio/` | The application, in Python: UI, MPD client and the `sim`, `i2c` and `drm` frontends |
|
|
|
+| `radio/` | The application, in Python: UI, MPD client, I²C key polling and the `sim`, `i2c`, `drm` and `keytest` frontends |
|
|
|
| `radio/libpanel.c` | The panel core and simulator as a library for the application |
|
|
|
| `radio-ui` | Starts the application |
|
|
|
| `dts/radio-panel.dts` | Overlay for the keys, backlight and panel |
|
|
|
@@ -32,6 +32,17 @@ GTK 3 for `sim` and `--window-keys`; libdrm for `drm`. On Debian:
|
|
|
|
|
|
`RADIO_PANEL_LIB` points it at the library if it is not in `build/`.
|
|
|
|
|
|
+Volume is set through MPD (`volume ±1`), so MPD needs a working mixer. The
|
|
|
+default hardware mixer looks for a `PCM` control, which the H3 codec does not
|
|
|
+have; the firmware's old `volup`/`voldown` scripts used `DAC`, so the ALSA
|
|
|
+output in `/etc/mpd.conf` needs:
|
|
|
+
|
|
|
+ mixer_type "hardware"
|
|
|
+ mixer_device "default"
|
|
|
+ mixer_control "DAC"
|
|
|
+
|
|
|
+Without it MPD's status has no `volume:` line and the volume keys do nothing.
|
|
|
+
|
|
|
## Running
|
|
|
|
|
|
Window with the simulated panel, using a real MPD:
|
|
|
@@ -164,13 +175,13 @@ test board, so the keys are polled; the final board wires it to a host GPIO.
|
|
|
| P0.3 | Next | P1.1 | OK |
|
|
|
| P0.4 | Left | P1.2 | Menu |
|
|
|
| P0.5 | Down | P1.3 | List |
|
|
|
-| P0.6 | Up | P1.4 | Play |
|
|
|
+| P0.6 | Up | P1.4 | Stop |
|
|
|
| P0.7 | Right | P1.5 | Pause |
|
|
|
-| | | P1.6 | Stop |
|
|
|
+| | | P1.6 | Play |
|
|
|
| | | P1.7 | Prev |
|
|
|
|
|
|
## To confirm on hardware
|
|
|
|
|
|
- TC/R (`--tcr`) for frame rate; 162 comes from the AVR project's 2 bpp setup
|
|
|
-- Every key on the key screen (`tests/hw_test.sh`); then the overlay (`evtest`)
|
|
|
+- Key autorepeat on Up/Down; then the overlay (`evtest`)
|
|
|
- The application on the target's Python 3.7.3
|