Audio-RIL-Interface: implement mic_mute
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
This commit is contained in:
parent
564cb0a1b8
commit
24bf4db81b
@ -26,8 +26,25 @@
|
|||||||
#include <samsung-ril-socket.h>
|
#include <samsung-ril-socket.h>
|
||||||
#include <srs-client.h>
|
#include <srs-client.h>
|
||||||
|
|
||||||
int galaxys2_mic_mute(void *pdata, int mute)
|
int galaxys2_mic_mute(void *pdata, enum ril_mic_mute mute)
|
||||||
{
|
{
|
||||||
|
struct srs_client *client;
|
||||||
|
struct srs_snd_mic_mute_data mic_mute_state;
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
ALOGD("%s(%p, %d)", __func__, pdata, mute);
|
||||||
|
|
||||||
|
if (pdata == NULL)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
client = (struct srs_client *) pdata;
|
||||||
|
|
||||||
|
mic_mute_state.mute = mute;
|
||||||
|
|
||||||
|
rc = srs_client_send(client, SRS_SND_SET_MIC_MUTE, &mic_mute_state, sizeof(mic_mute_state));
|
||||||
|
if (rc < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user