X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Faudio%2Faudio-alsa.h;h=25292ad19e5d49fc34cac1c67fdb8ccfdebe53d1;hb=12686e3f00eb942bf587e99f80654400cc6995b6;hp=56b4f55f8c106eb175656bde13afa6a2dc00ae19;hpb=03bebc12f0fd5006a72e430084146a36d2db7c8d;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h index 56b4f55f..25292ad1 100644 --- a/plugins/audio/audio-alsa.h +++ b/plugins/audio/audio-alsa.h @@ -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;