Commit Graph
100 Commits
Author SHA1 Message Date
Geoffrey D. Bennett f0213eadb1 Replace -j4 with -j$(nproc) 2025-02-26 02:23:24 +10:30
Geoffrey D. Bennett ae23674f21 Add small deadband to dial drag to stop double-click adjustments
Sometimes 0.5 < abs(offset_y) < 1 when double-clicking without moving
the mouse, causing the intended toggling between -inf and 0dB to not
work.

Fixes: #149.
2025-02-26 02:22:59 +10:30
Geoffrey D. Bennett 68e45e58a6 Remove unused start_x, start_y from gtk_dial_drag_gesture_update() 2025-02-26 02:07:55 +10:30
Geoffrey D. Bennett f1585a3b8c Update flatpak container image from gnome-45 to gnome-47 2025-02-21 05:00:28 +10:30
Geoffrey D. Bennett d1c1eb5db2 Undefine _FORTIFY_SOURCE before defining so GitHub can build the deb
The GitHub build was failing with:
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
2025-02-21 04:57:17 +10:30
Geoffrey D. Bennett 21cdfbbe1a Make make clean do depclean too 2025-02-21 04:34:43 +10:30
Geoffrey D. Bennett 7033f9f622 Add big 4th Gen demo files 2025-02-21 04:34:43 +10:30
Geoffrey D. Bennett 5106ed228e Update docs and such for 1st Gen and big 4th Gen support 2025-02-21 04:34:43 +10:30
Geoffrey D. Bennett ab40037064 Bump copyright year to 2025 2025-02-21 04:08:35 +10:30
Geoffrey D. Bennett ed4f9cbaa7 Call card_destroy_callback() when an ALSA element is removed 2025-02-21 04:08:35 +10:30
Geoffrey D. Bennett c7357c0539 Move card_destroy_callback() before alsa_card_callback() 2025-02-21 04:08:35 +10:30
Geoffrey D. Bennett 01c947f434 Fix output control column/mute tooltip handling 2025-02-21 04:08:35 +10:30
Geoffrey D. Bennett dc21eb52d0 Add support for Level Meter labels 2025-02-21 04:08:35 +10:30
Geoffrey D. Bennett c4ab20f9b5 Update alsa.c to handle differing FCP mixer element names 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett b41a47587b Add support for TLVs from the FCP driver
Decode level meter labels and the FCP socket location from TLVs.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 11dba2b42c Simplify update_levels_controls() 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett f1f085abcf Add support for new 4th Gen control names
The 4th Gen driver has renamed "Line" to "Analogue" and removed
"Input" and "Output" in cases like "Mixer Input", "DSP Input", and
"Analogue Output". Some numbers are no longer zero-padded.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 18841b2a45 Add support for two-control speaker switching and talkback
The 4th Gen driver has two boolean controls each for the speaker
switching and talkback controls, rather than the single enum control
that the 3rd Gen driver presents.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 64d9f8173a Make perror("fopen") messages distinct 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 78e2d9642f Update alsa interface and gain widget to support linear volume
# Conflicts:
#	src/alsa.c
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 4a40b00695 Update gtkdial to support linear-volume controls 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 0f7389dca8 Highlight mixer labels on dial hover 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 640d027502 Update routing hover to highlight corresponding source sink 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 2bc6c86a8d Handle per-channel link buttons
Older kernel versions had one link button per channel pair.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 67ccd1d684 Handle interfaces with fixed mixer inputs 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 81bc3c77c8 Treat locked ALSA elements as read-only 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett e0083f7085 Update constants for new maximum number of mux inputs and meters
Big 4th Gen devices have more inputs and meters than previous devices.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 5da140df1e Wrap long line, fix reopen callback comment in alsa.c 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 1b0e072237 Gen 1: Add support for 1st Gen output controls 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 8178bd298b Gen 1: Add support for 1st Gen input controls 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 845dd5c98b Gen 1: Add support for 1st Gen mixer controls 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 45287711a4 Gen 1: Add support for 1st Gen stereo elements
Move routing src/snk creation into alsa.c from window-routing.c.
Move port_category and port_num from struct routing_snk to struct
alsa_elem.
Handle ALSA elements with two values.
Handle controls labelled as 1L and 1R instead of 1 and 2.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett b1831c137a Gen 1: Add support for elements with count > 1 in saved config 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 1cdac65c00 Gen 1: Move alsa-sim elem creation into alsa_config_to_new_elem() 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett c38bbba793 Gen 1: Parse and save config count field
Needed for 1st Gen stereo volume controls.
2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett da1f011ab4 Gen 1: Ignore control "index" value in saved configurations 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 64f0cc36cc Gen 1: Add PC_OFF port category 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 9034790c06 Gen 1: Trigger support based on "Matrix" element presence 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 91d7218a47 Gen 1: Add 1st Gen devices to window-hardware.c 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 97ced90466 Gen 1: Mute switches are backwards 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett fa3e73d52f Gen 1: Handle different names for clock source and sync status 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 602854d087 Add Scarlett 1st Gen demo state files 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 97ca9ae754 Add get_elem_by_substr() to alsa.[ch] 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett 6a04e1d1fa Update logo 2025-02-21 04:08:34 +10:30
Geoffrey D. Bennett da4be2993e Update flatpak to GNOME 47 2025-02-21 04:08:25 +10:30
Geoffrey D. Bennett abdb7f40f5 Fix crash in window-level.c on_destroy() 2024-07-03 02:53:18 +09:30
Geoffrey D. Bennett 0187698826 Replace cairo_show_text() in gtkdial.c with Pango
Fixes: #126.
2024-07-03 02:53:18 +09:30
Geoffrey D. Bennett 955dd1355a Add 3rd Gen 18i8/18i20 S/PDIF/Digital I/O Mode startup controls 2024-05-10 22:27:45 +09:30
Geoffrey D. Bennett 1615580de6 Add const to get*elem*() char* function arguments 2024-05-10 22:25:43 +09:30
Geoffrey D. Bennett 5526aa2f54 Fix link from FAQ.md to INSTALL.md
Fixes: #116.
2024-04-15 13:44:59 +09:30
Geoffrey D. Bennett 4ce2565b90 Add peak value display to the level meters 2024-04-11 22:47:48 +09:30
Geoffrey D. Bennett 909d3618b3 Use snprintf() in widget-gain.c when printing floats 2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 1fa964d348 Add peak display to the level meters 2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 159b3340eb Move level meter fields out of struct alsa_card
Create a levels struct managed inside window-levels.c.
2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 5fb3191124 Fix up deb and RPM package description & add docs
# Conflicts:
#	.github/workflows/build-debian-package.yml
2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett cc6853f541 Make flatpak build faster 2024-04-11 21:24:04 +09:30
Geoffrey D. Bennett 5d77207b66 Download and include scarlett2 firmware in flatpak
Fixes: #112.
2024-04-11 21:23:49 +09:30
Geoffrey D. Bennett a940db51c2 Add -fPIE and -pie build flags to fix flatpak build under Fedora 2024-04-11 18:13:21 +09:30
Geoffrey D. Bennett 92f9d5db8e Switch to embedded SVG icons
Make the icons independent of the desktop theme so they always look
good.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett af97b72b12 Update widget-boolean to cache the icon widgets 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 3f7a4c2063 Allow for boolean controls that are backwards
Gen 1 has playback controls (0 = off, 1 = on), not mute controls
(0 = not muted, 1 = muted) like the Gen 2+ do.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 111ec1154d Add support for volatile buttons to widget-boolean.c
Will be used by Gen 1 support.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett db0929bd08 Search $PATH and /usr/sbin for alsactl
The path to alsactl was previously hardcoded because some distros put
it in /usr/sbin but don't include that directory in $PATH.
Unfortunately other distros put alsactl elsewhere. Let's search $PATH
and /usr/sbin to cater for both.

Fixes #101.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 2ddede4d3f Override focus and colour CSS button styles
Set all button focus outline properties and set the colour and filter
on fixed buttons so more theme styles are overridden.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 0e227e1e07 Fix Sample Rate button to be insensitive 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 1d2ac0fd5c Add Arch package dependency 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 05e9d9e0a2 Fix widget-boolean.c to free data on button destruction 2024-03-31 03:17:35 +10:30
Geoffrey D. Bennett c57e4eb2a4 Move 4th Gen Solo 48V switch above the Air switch
Fixes #107.
2024-03-28 13:15:21 +10:30
Geoffrey D. Bennett feba2f4520 Update documentation for Scarlett 4th Gen and Vocaster 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 16e3a25f76 Update About dialog 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett be1f9763e1 Add firmware info to the INSTALL.md Prerequisites section 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 605df45b2f Prompt for firmware update if in MSD Mode and an update is available 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 984133f61d Store the best_firmware_version in struct alsa_card 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 6e40b8d9ed Add initial support for the Vocaster One and Two 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 607b002985 Update gain widget to show no decimal places for scale > 0.5
The 4th Gen input gain control scale is 69/70 which is close enough to
1 that we don't need to display any decimal places.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 0fae084ccb Display "+" before positive dB values in the gain widget 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett f00de1bd25 Add display of sample rate 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 96b4ec8259 Add gtk_widget_remove_css_classes_by_prefix() helper 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 2b664c446b Add missing static to populate_submenu() in menu.c 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 486c40048b Make window-helper.c close the window when Esc is pressed
Fixes #102.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 84ad0484f9 Reduce GtkDial circle brightness
Provides better contrast between dials in the sea of mixer knobs.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett b9549eb58e If there's an MSD control, add a reboot control too 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett b06b19e2a8 Don't show empty rows in levels window
If a port category has no ports, skip that row. 4th Gen has a DSP port
category that does not exist in previous generations.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 4c2a5ab12a Add 4th Gen Solo, 2i2, and 4i4 demo files 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 8b16bbdaed Make gain widget dB numbers smaller 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 7e712dece4 Don't set transient on modal window
Doesn't work on Ubuntu 22.04 GNOME when the parent goes away.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 52424dd067 Remove fixed/mentioned-elsewhere issues from USAGE.md 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett fdf8c50413 Update OpenSUSE and Ubuntu package dependencies 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 9026eb76c5 Add support for firmware update 2024-03-24 17:06:17 +10:30
Geoffrey D. Bennett c9441b2591 Move -lm into LDFLAGS 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett b4fc332f0a Retrieve and store the device USB PID 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett 9544635e30 Add support for config reset 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett e95cbff3d5 Don't export alsa_cards from alsa.c 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett 05006284c6 Retrieve and store the device serial number 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett c90fbdc3d1 CSS fixes for buttons
Make non-toggle buttons brighter.
Make disabled glow match the dimmer text colour.
Don't put an opacity filter over status buttons.
2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 2137000d05 Add red focus outline to GtkDial 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett b02ad32d5a Fix GtkDial to redraw on notify::sensitive signal 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 7a7e08d4eb Fix GtkDial to not redraw the dial if the set value doesn't change 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 22a2aa2ad6 Add routing group tooltips 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 8c06e7aff7 Update the gain widget to support updating direct monitor mix controls
The 4th Gen Solo and 2i2 have controls to set custom Mix A/B gains
when Direct Monitor is enabled. Update those controls when the Mix A/B
gains are updated so that they are remembered.
2024-02-20 23:38:49 +10:30