Commit Graph

25 Commits

Author SHA1 Message Date
Michel Pollet
af6ff70155 Split the CPU regulator thread to it's own file
Removed it fron the Nuklear file, as it's actually not doign anything UI
based.
Also cleanup up type names etc

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 07:23:06 +01:00
Michel Pollet
938be1724e speaker: Initialize debug fd
Was outputing garbage on the console. Doh.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 07:22:19 +01:00
Michel Pollet
3ee0061de6 Fix for missing control-XXX keys #6
These were mostly stolen by Nuklear handlers

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 07:21:42 +01:00
Michel Pollet
8ed001203d test: Updated mii_test to work with latest api changes
Mostly for benching/leak check purpose

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:30:25 +01:00
Michel Pollet
3ee2a36d38 mish: Removed globals.
Removed big horrible global used by mish commands, now use the parameter
made for it.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:29:41 +01:00
Michel Pollet
f030ed758e libmish: Reworked to add a 'kind' to commands
Quest to remove any globals from mii

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:28:53 +01:00
Michel Pollet
2f2cf15576 Removed dead code from mii.c
Keyboard uses a FIFO for a while

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:26:25 +01:00
Michel Pollet
5d0abefadf Added mii_dispose() -- clean up everything
Seems there are no leaks; only blocks left non-freed are the queue of
drivers, which is static anyway

Also added a MII_TERMINATE state to quit any 'main' loop.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:25:43 +01:00
Michel Pollet
73059bfd93 sw: Added a big soft switch bitfield
These are fetched often, so might as well cache them into a bitfield,
also removed the old BSR state, as it might as well be in that bitfield.

Converted all the user of these soft switches to this new bitfield.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:23:02 +01:00
Michel Pollet
66e2b7707d argv: Add --audio-off,--no-audio,--silent
Turn off audio at startup, not just unmute.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:17:47 +01:00
Michel Pollet
2f30c4986c speaker: Allow disabling audio, not just muting
Allow turning off the audio output (ie not initialize it). Also removed
the debug file descriptor global

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:16:56 +01:00
Michel Pollet
cb17359921 video: Fix Amber! #5
Forgot to flip these channels

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:15:42 +01:00
Michel Pollet
ba97447894 speaker: added a _dispose() call
Free memory, turn off alsa

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:14:49 +01:00
Michel Pollet
60bf0ae000 slot: added a (*dispose)(...) call
For drivers

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:13:36 +01:00
Michel Pollet
a4ac4c0049 bank: Added mii_bank_dispose()
Also added a mode for the callback that will be called with NULL on exit

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:13:08 +01:00
Michel Pollet
8ff29a874f dd: Added mii_dd_system_dispose()
It was already there, just had no prototype

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:12:27 +01:00
Michel Pollet
8a3c40d6fd Fixed Compiling.md
Typos mostly

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:11:51 +01:00
Michel Pollet
246d7c4b0d Added cache/callgrind log files to gitignore
Nothing functional

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:11:23 +01:00
Michel Pollet
2596e47acc make: Fix quotes around libmish pathname. #4
This is the only absolute path I can find... so it should be the only
one breaking build in directories with spaces?

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:10:55 +01:00
Michel Pollet
38041eb6cc Fix butterfly screenshot
With the right colors this time

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 18:58:57 +01:00
Michel Pollet
955773500e ui: Fix the speed combo box
Didn't work!

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 18:58:32 +01:00
Michel Pollet
14c7175236 make: Add -lpthread -lutil
As reported. Somehow not needed on debian...

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 18:58:10 +01:00
Michel Pollet
f17080a8f7 Fix for RGB vs BGR color switch
THis was affecting the double hires and also the hires (by double
negation!)

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 18:57:42 +01:00
Michel Pollet
f7a56ebc01 Initial Commit
Cleaned up for release at last!

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 08:50:14 +01:00
Michel Pollet
936f37728f
Initial commit 2023-10-24 19:48:23 +01:00