|
@@ -163,13 +163,30 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = {
|
|
|
.width = 32, .phys = 32, .le = 0, .signd = 0,
|
|
|
.silence = { 0x69, 0x69, 0x69, 0x69 },
|
|
|
},
|
|
|
- /* FIXME: the following three formats are not defined properly yet */
|
|
|
+ /* FIXME: the following two formats are not defined properly yet */
|
|
|
[SNDRV_PCM_FORMAT_MPEG] = {
|
|
|
.le = -1, .signd = -1,
|
|
|
},
|
|
|
[SNDRV_PCM_FORMAT_GSM] = {
|
|
|
.le = -1, .signd = -1,
|
|
|
},
|
|
|
+ [SNDRV_PCM_FORMAT_S20_LE] = {
|
|
|
+ .width = 20, .phys = 32, .le = 1, .signd = 1,
|
|
|
+ .silence = {},
|
|
|
+ },
|
|
|
+ [SNDRV_PCM_FORMAT_S20_BE] = {
|
|
|
+ .width = 20, .phys = 32, .le = 0, .signd = 1,
|
|
|
+ .silence = {},
|
|
|
+ },
|
|
|
+ [SNDRV_PCM_FORMAT_U20_LE] = {
|
|
|
+ .width = 20, .phys = 32, .le = 1, .signd = 0,
|
|
|
+ .silence = { 0x00, 0x00, 0x08, 0x00 },
|
|
|
+ },
|
|
|
+ [SNDRV_PCM_FORMAT_U20_BE] = {
|
|
|
+ .width = 20, .phys = 32, .le = 0, .signd = 0,
|
|
|
+ .silence = { 0x00, 0x08, 0x00, 0x00 },
|
|
|
+ },
|
|
|
+ /* FIXME: the following format is not defined properly yet */
|
|
|
[SNDRV_PCM_FORMAT_SPECIAL] = {
|
|
|
.le = -1, .signd = -1,
|
|
|
},
|