X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Faudio%2Faudio-alsa.h;h=9b9ee21c07e86ae1ac8a2c81fba4ee0af9173885;hb=e3320f303c4eb8f7fe0fac69bfa9ce36d9916930;hp=85545d579ef4a7a1f9b3ced5b1ee4f0d287ebf4b;hpb=6f2913ab5e366e8f3df12a7df11a85b7b6574e2c;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h index 85545d57..9b9ee21c 100644 --- a/plugins/audio/audio-alsa.h +++ b/plugins/audio/audio-alsa.h @@ -24,13 +24,14 @@ #include "local-def.h" -typedef struct dev_ctx dev_ctx_T; +typedef struct dev_ctx_alsa dev_ctx_alsa_T; -struct dev_ctx { +struct dev_ctx_alsa { char *name; 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; @@ -38,10 +39,10 @@ struct dev_ctx { unsigned char thr_finished; }; -STATIC void* _play_thread_fn (void *); +STATIC void* _alsa_play_thread_fn (void *); PUBLIC int _alsa_get_volume (unsigned int, unsigned int); PUBLIC unsigned char _alsa_get_mute (unsigned int); -static struct dev_ctx **dev_ctx = NULL; +static struct dev_ctx_alsa **dev_ctx_a = NULL; #endif /* AUDIO_ALSA_H */