mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-11 05:33:46 -04:00
Fix ADC controls with higher resolution in envy24control
Fixed envy24control to handle ADC volumes with higher resolution properly. Also, the bogus sync of gtk_adjustment between ADC and IPGA volumes is fixed in the case no IPGA is detected.
This commit is contained in:
parent
526334dda9
commit
917e71fcc8
3 changed files with 13 additions and 4 deletions
|
|
@ -1570,7 +1570,7 @@ static void create_analog_volume(GtkWidget *main, GtkWidget *notebook, int page)
|
|||
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 6);
|
||||
}
|
||||
|
||||
adj = gtk_adjustment_new(0, -127, 0, 1, 16, 0);
|
||||
adj = gtk_adjustment_new(0, -(envy_adc_max()), 0, 1, 16, 0);
|
||||
av_adc_volume_adj[i] = adj;
|
||||
vscale = gtk_vscale_new(GTK_ADJUSTMENT(adj));
|
||||
gtk_scale_set_draw_value(GTK_SCALE(vscale), FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue