Compilation fix
This commit is contained in:
parent
d4b9fff4e8
commit
d8a5b97c98
@ -140,7 +140,7 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
|
|||||||
{
|
{
|
||||||
Openmoko * openmoko = plugin->priv;
|
Openmoko * openmoko = plugin->priv;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
gdouble level;
|
gdouble level = 0.0;
|
||||||
gdouble * plevel = &level;
|
gdouble * plevel = &level;
|
||||||
|
|
||||||
switch(event)
|
switch(event)
|
||||||
@ -151,7 +151,7 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
||||||
plugin->helper->event(plugin->helper->phone,
|
plugin->helper->event(plugin->helper->phone,
|
||||||
PHONE_EVENT_GET_VOLUME, plevel);
|
PHONE_EVENT_VOLUME_GET, plevel);
|
||||||
#endif
|
#endif
|
||||||
/* enable echo cancellation */
|
/* enable echo cancellation */
|
||||||
plugin->helper->queue(plugin->helper->phone,
|
plugin->helper->queue(plugin->helper->phone,
|
||||||
@ -170,7 +170,7 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
||||||
plugin->helper->event(plugin->helper->phone,
|
plugin->helper->event(plugin->helper->phone,
|
||||||
PHONE_EVENT_GET_VOLUME, plevel);
|
PHONE_EVENT_VOLUME_GET, plevel);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case PHONE_EVENT_CALL_TERMINATED:
|
case PHONE_EVENT_CALL_TERMINATED:
|
||||||
@ -204,7 +204,7 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
openmoko->mixer_elem = openmoko->mixer_elem_headphone;
|
openmoko->mixer_elem = openmoko->mixer_elem_headphone;
|
||||||
plugin->helper->event(plugin->helper->phone,
|
plugin->helper->event(plugin->helper->phone,
|
||||||
PHONE_EVENT_GET_VOLUME, plevel);
|
PHONE_EVENT_VOLUME_GET, plevel);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case PHONE_EVENT_SPEAKER_OFF:
|
case PHONE_EVENT_SPEAKER_OFF:
|
||||||
@ -213,7 +213,7 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
openmoko->mixer_elem = openmoko->mixer_elem_speaker;
|
||||||
plugin->helper->event(plugin->helper->phone,
|
plugin->helper->event(plugin->helper->phone,
|
||||||
PHONE_EVENT_GET_VOLUME, plevel);
|
PHONE_EVENT_VOLUME_GET, plevel);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case PHONE_EVENT_SUSPEND:
|
case PHONE_EVENT_SUSPEND:
|
||||||
|
Loading…
Reference in New Issue
Block a user