Fix set_mute in corner cases
[src/app-framework-binder.git] / plugins / audio / audio-alsa.h
index 56b4f55..25292ad 100644 (file)
@@ -31,6 +31,7 @@ struct dev_ctx {
   snd_pcm_t *dev;
   snd_pcm_hw_params_t *params;
   snd_mixer_elem_t *mixer_elm;
+  snd_mixer_elem_t *mixer_elm_m;
   long vol_max;
   long vol;
   pthread_t thr;
@@ -39,7 +40,7 @@ struct dev_ctx {
 };
 
 STATIC void* _play_thread_fn (void *);
-PUBLIC unsigned int _alsa_get_volume (unsigned int);
+PUBLIC int _alsa_get_volume (unsigned int, unsigned int);
 PUBLIC unsigned char _alsa_get_mute (unsigned int);
 
 static struct dev_ctx **dev_ctx = NULL;