diff options
author | Eric Laurent <elaurent@google.com> | 2010-10-11 09:02:58 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-10-21 19:30:39 -0700 |
commit | 84f3736063154f07de2602ad22992f7f4e24dd8c (patch) | |
tree | d039551d0e603e113232b594aa64aa405a317d02 /libaudio2/alsa_audio.h | |
parent | e46ae2fa1195d5de9bb5c6789501d1e09173c2da (diff) | |
download | device_samsung_crespo-84f3736063154f07de2602ad22992f7f4e24dd8c.zip device_samsung_crespo-84f3736063154f07de2602ad22992f7f4e24dd8c.tar.gz device_samsung_crespo-84f3736063154f07de2602ad22992f7f4e24dd8c.tar.bz2 |
Fix issue 3122180.
Disable use of user space ALSA library.
This change contains updates to the new audio HAL that does not rely
on ALSA user space library. It also activates this new version
of libaudio for the build by default.
Change-Id: Id68c05714a19820e12a48cbe07a161e4e9a189d8
Diffstat (limited to 'libaudio2/alsa_audio.h')
-rw-r--r-- | libaudio2/alsa_audio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libaudio2/alsa_audio.h b/libaudio2/alsa_audio.h index ecc78a9..3cb86d9 100644 --- a/libaudio2/alsa_audio.h +++ b/libaudio2/alsa_audio.h @@ -30,6 +30,13 @@ struct pcm; #define PCM_8000HZ 0x00200000 #define PCM_RATE_MASK 0x00F00000 +#define PCM_PERIOD_CNT_MIN 2 +#define PCM_PERIOD_CNT_SHIFT 16 +#define PCM_PERIOD_CNT_MASK (0xF << PCM_PERIOD_CNT_SHIFT) +#define PCM_PERIOD_SZ_MIN 128 +#define PCM_PERIOD_SZ_SHIFT 12 +#define PCM_PERIOD_SZ_MASK (0xF << PCM_PERIOD_SZ_SHIFT) + /* Acquire/release a pcm channel. * Returns non-zero on error */ |