Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix set_mute in corner cases
[src/app-framework-binder.git]
/
plugins
/
audio
/
audio-alsa.h
diff --git
a/plugins/audio/audio-alsa.h
b/plugins/audio/audio-alsa.h
index
56b4f55
..
25292ad
100644
(file)
--- 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_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;
long vol_max;
long vol;
pthread_t thr;
@@
-39,7
+40,7
@@
struct dev_ctx {
};
STATIC void* _play_thread_fn (void *);
};
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;
PUBLIC unsigned char _alsa_get_mute (unsigned int);
static struct dev_ctx **dev_ctx = NULL;