envy24control: fix control callback for spdif output

Update S/PDIF Output Settings GUI when settings change.

Signed-off-by: Andreas Persson <andreasp56@outlook.com>
This commit is contained in:
Andreas Persson 2025-03-29 07:16:31 +01:00
parent 5eaadd15bd
commit 5636f87897

View file

@ -81,6 +81,10 @@ void control_input_callback(gpointer data, gint source, GdkInputCondition condit
else if (!strcmp(name, "Input Sensitivity Switch"))
adc_sense_update(index);
break;
case SND_CTL_ELEM_IFACE_PCM:
if (!strcmp(name, "IEC958 Playback Default"))
spdif_output_update();
break;
default:
break;
}