ASoc: msm: Add AMR NB and AMR WB support for Voip

Use SPECIAL format for AMR. Add mixer control to
input mode and rate.

Change-Id: I8746d86ce323744995575a22b6128b39daaa3d13
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
[sboyd: Drop soc/msm parts]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Helen Zeng 2011-10-13 17:25:50 -07:00 committed by Stephen Boyd
parent 0b1a86ae8a
commit 806f50cdbb

View file

@ -148,7 +148,9 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = {
.le = -1, .signd = -1,
},
[SNDRV_PCM_FORMAT_SPECIAL] = {
.le = -1, .signd = -1,
/* set the width and phys same as S16_LE */
.width = 16, .phys = 16, .le = -1, .signd = -1,
.silence = {},
},
[SNDRV_PCM_FORMAT_S24_3LE] = {
.width = 24, .phys = 24, .le = 1, .signd = 1,