ASoC: msm: qdsp6v2: add support to enable 4-channel QUAT TDM recording
Add the corresponding 'cap_mask' to support 4 slots configuration in CPU DAI driver to enable 4-channel QUAT TDM recording feature on SDM845. Change-Id: I137d874b00fadde7513ab6c843f61becc74feac1 Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
This commit is contained in:
parent
8f7ccc2e6f
commit
1cb5ce084c
1 changed files with 4 additions and 1 deletions
|
@ -6104,11 +6104,14 @@ static int msm_dai_q6_tdm_set_tdm_slot(struct snd_soc_dai *dai,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* HW only supports 16 and 8 slots configuration */
|
||||
/* HW supports 1-32 slots configuration. Typical: 1, 2, 4, 8, 16, 32 */
|
||||
switch (slots) {
|
||||
case 2:
|
||||
cap_mask = 0x03;
|
||||
break;
|
||||
case 4:
|
||||
cap_mask = 0x0F;
|
||||
break;
|
||||
case 8:
|
||||
cap_mask = 0xFF;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue