|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-
|
|
|
+
|
|
|
*/
|
|
|
|
|
|
* Copyright 2011, The Android Open Source Project
|
|
@@ -205,7 +205,7 @@ static struct dev_config tdm_rx_cfg[TDM_INTERFACE_MAX][TDM_PORT_MAX] = {
|
|
|
},
|
|
|
{
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 8},
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 8},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
@@ -214,10 +214,10 @@ static struct dev_config tdm_rx_cfg[TDM_INTERFACE_MAX][TDM_PORT_MAX] = {
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
},
|
|
|
{
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 16},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
@@ -268,7 +268,7 @@ static struct dev_config tdm_tx_cfg[TDM_INTERFACE_MAX][TDM_PORT_MAX] = {
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
},
|
|
|
{
|
|
|
- {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 6},
|
|
|
+ {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 16},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
|
{SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 1},
|
|
@@ -407,24 +407,25 @@ static unsigned int tdm_rx_slot_offset
|
|
|
{0xFFFF},
|
|
|
},
|
|
|
{
|
|
|
- {0, 4, 8, 12, 16, 20, 24, 28, 0xFFFF},
|
|
|
- {0xFFFF},
|
|
|
+ {0, 8, 16, 24, 32, 40, 48, 56, 0xFFFF},
|
|
|
+ {4, 12, 20, 28, 36, 44, 52, 60, 0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
- {28,0xFFFF},
|
|
|
+ {60,0xFFFF},
|
|
|
},
|
|
|
{
|
|
|
- {0, 4, 0xFFFF},
|
|
|
- {8, 12, 0xFFFF},
|
|
|
- {16, 20, 0xFFFF},
|
|
|
- {24, 28, 0xFFFF},
|
|
|
+ {0, 8, 16, 24, 32, 40, 48, 56,
|
|
|
+ 4, 12, 20, 28, 36, 44, 52, 60, 0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
- {28, 0xFFFF},
|
|
|
+ {0xFFFF},
|
|
|
+ {0xFFFF},
|
|
|
+ {0xFFFF},
|
|
|
+ {60, 0xFFFF},
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -462,7 +463,7 @@ static unsigned int tdm_tx_slot_offset
|
|
|
},
|
|
|
{
|
|
|
{0, 4, 8, 12, 16, 20, 24, 28,
|
|
|
- 32, 36, 40, 44, 48, 52, 56, 60, 0xFFFF},
|
|
|
+ 32, 36, 40, 44, 48, 52, 56, 60, 0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
@@ -472,14 +473,15 @@ static unsigned int tdm_tx_slot_offset
|
|
|
{60,0xFFFF},
|
|
|
},
|
|
|
{
|
|
|
- {0, 4, 8, 12, 16, 20, 0xFFFF},
|
|
|
+ {0, 4, 8, 12, 16, 20, 24, 28,
|
|
|
+ 32, 36, 40, 44, 48, 52, 56, 60, 0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
{0xFFFF},
|
|
|
- {20, 0xFFFF},
|
|
|
+ {60, 0xFFFF},
|
|
|
}
|
|
|
};
|
|
|
|