Update of /cvsroot/alsa/alsa-tools/envy24control In directory sc8-pr-cvs1:/tmp/cvs-serv17209
Modified Files: volume.c Log Message: Dirk Kalis <[EMAIL PROTECTED]> In the patch is the adc volume rate only set to max if ipga volume is set. Index: volume.c =================================================================== RCS file: /cvsroot/alsa/alsa-tools/envy24control/volume.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- volume.c 3 Dec 2002 17:10:39 -0000 1.6 +++ volume.c 7 Dec 2002 09:44:27 -0000 1.7 @@ -144,7 +144,7 @@ void ipga_volume_update(int idx) { snd_ctl_elem_value_t *val; - int err; + int err, ipga_vol; snd_ctl_elem_value_alloca(&val); snd_ctl_elem_value_set_interface(val, SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(val, IPGA_VOLUME_NAME); @@ -154,15 +154,17 @@ return; } gtk_adjustment_set_value(GTK_ADJUSTMENT(av_ipga_volume_adj[idx]), - -snd_ctl_elem_value_get_integer(val, 0)); + -(ipga_vol = snd_ctl_elem_value_get_integer(val, 0))); snd_ctl_elem_value_set_name(val, ADC_VOLUME_NAME); snd_ctl_elem_value_set_index(val, idx); if ((err = snd_ctl_elem_read(ctl, val)) < 0) { g_print("Unable to read adc volume: %s\n", snd_strerror(err)); return; } - gtk_adjustment_set_value(GTK_ADJUSTMENT(av_adc_volume_adj[idx]), - -127); + // set ADC volume to max if IPGA volume greater 0 + if (ipga_vol) + gtk_adjustment_set_value(GTK_ADJUSTMENT(av_adc_volume_adj[idx]), + -127); } void dac_sense_update(int idx) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog