MIC Services

MIC Services

Microphone service “mic:u” #

Command HeaderDescription
0x00010042MapSharedMem
0x00020000UnmapSharedMem
0x00030140StartSampling
0x00040040AdjustSampling
0x00050000StopSampling
0x00060000IsSampling
0x00070000GetEventHandle
0x00080040SetGain
0x00090000GetGain
0x000A0040SetPower
0x000B0000GetPower
0x000C0042SetIirFilterMic
0x000D0040SetClamp
0x000E0000GetClamp
0x000F0040SetAllowShellClosed
0x00100040When the input value is 0, value 1 is written to an u8 MIC module state field. Otherwise, value 0 is written there. Normally the input value is non-zero.

This is an interface for using the MIC hardware via the “cdc:MIC” service and the MIC IO registers.

Only one session can be open for this service total(that is, only one process can use this service at a time).

Encoding #

EnumValue
ENCODING_PCM80
ENCODING_PCM161
ENCODING_PCM8_SIGNED2
ENCODING_PCM16_SIGNED3

SampleRate #

EnumValue
SAMPLE_RATE_327300
SAMPLE_RATE_163601
SAMPLE_RATE_109102
SAMPLE_RATE_81803

The actual accurate sampling rate can be calculated using (16756991 / 512) / (SampleRate + 1) where SampleRate is one of the above values.

See Also #

MIC Shared Memory

Category:Services