aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm_misc.c')
-rw-r--r--sound/core/pcm_misc.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sound/core/pcm_misc.c b/sound/core/pcm_misc.c
index 9be81025372f..c4eb561d2008 100644
--- a/sound/core/pcm_misc.c
+++ b/sound/core/pcm_misc.c
@@ -163,13 +163,30 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = {
163 .width = 32, .phys = 32, .le = 0, .signd = 0, 163 .width = 32, .phys = 32, .le = 0, .signd = 0,
164 .silence = { 0x69, 0x69, 0x69, 0x69 }, 164 .silence = { 0x69, 0x69, 0x69, 0x69 },
165 }, 165 },
166 /* FIXME: the following three formats are not defined properly yet */ 166 /* FIXME: the following two formats are not defined properly yet */
167 [SNDRV_PCM_FORMAT_MPEG] = { 167 [SNDRV_PCM_FORMAT_MPEG] = {
168 .le = -1, .signd = -1, 168 .le = -1, .signd = -1,
169 }, 169 },
170 [SNDRV_PCM_FORMAT_GSM] = { 170 [SNDRV_PCM_FORMAT_GSM] = {
171 .le = -1, .signd = -1, 171 .le = -1, .signd = -1,
172 }, 172 },
173 [SNDRV_PCM_FORMAT_S20_LE] = {
174 .width = 20, .phys = 32, .le = 1, .signd = 1,
175 .silence = {},
176 },
177 [SNDRV_PCM_FORMAT_S20_BE] = {
178 .width = 20, .phys = 32, .le = 0, .signd = 1,
179 .silence = {},
180 },
181 [SNDRV_PCM_FORMAT_U20_LE] = {
182 .width = 20, .phys = 32, .le = 1, .signd = 0,
183 .silence = { 0x00, 0x00, 0x08, 0x00 },
184 },
185 [SNDRV_PCM_FORMAT_U20_BE] = {
186 .width = 20, .phys = 32, .le = 0, .signd = 0,
187 .silence = { 0x00, 0x08, 0x00, 0x00 },
188 },
189 /* FIXME: the following format is not defined properly yet */
173 [SNDRV_PCM_FORMAT_SPECIAL] = { 190 [SNDRV_PCM_FORMAT_SPECIAL] = {
174 .le = -1, .signd = -1, 191 .le = -1, .signd = -1,
175 }, 192 },