ASoC: msm: Add support for 192KHZ sampling rate on mi2s rx ports
Add 192KHz sampling rate support for mono/stereo playback with 16/24 bit on mi2s rx ports in addition to primary mi2s rx port. Configure i2s bit clock based on the sample rate, channels, bitwidth parameters. CRs-Fixed: 999711 Change-Id: I274ef656d26fbae9a92c27fb3dd7353b66ac015d Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
This commit is contained in:
parent
bef1b12e62
commit
2a64321da8
1 changed files with 9 additions and 6 deletions
|
@ -3505,10 +3505,11 @@ static struct snd_soc_dai_driver msm_dai_q6_mi2s_dai[] = {
|
|||
.stream_name = "Secondary MI2S Playback",
|
||||
.aif_name = "SEC_MI2S_RX",
|
||||
.rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
|
||||
SNDRV_PCM_RATE_16000,
|
||||
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 |
|
||||
SNDRV_PCM_RATE_192000,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
.rate_min = 8000,
|
||||
.rate_max = 48000,
|
||||
.rate_max = 192000,
|
||||
},
|
||||
.capture = {
|
||||
.stream_name = "Secondary MI2S Capture",
|
||||
|
@ -3553,10 +3554,11 @@ static struct snd_soc_dai_driver msm_dai_q6_mi2s_dai[] = {
|
|||
.stream_name = "Quaternary MI2S Playback",
|
||||
.aif_name = "QUAT_MI2S_RX",
|
||||
.rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
|
||||
SNDRV_PCM_RATE_16000,
|
||||
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 |
|
||||
SNDRV_PCM_RATE_192000,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
.rate_min = 8000,
|
||||
.rate_max = 48000,
|
||||
.rate_max = 192000,
|
||||
},
|
||||
.capture = {
|
||||
.stream_name = "Quaternary MI2S Capture",
|
||||
|
@ -3589,10 +3591,11 @@ static struct snd_soc_dai_driver msm_dai_q6_mi2s_dai[] = {
|
|||
.stream_name = "Quinary MI2S Playback",
|
||||
.aif_name = "QUIN_MI2S_RX",
|
||||
.rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
|
||||
SNDRV_PCM_RATE_16000,
|
||||
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 |
|
||||
SNDRV_PCM_RATE_192000,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
.rate_min = 8000,
|
||||
.rate_max = 48000,
|
||||
.rate_max = 192000,
|
||||
},
|
||||
.capture = {
|
||||
.stream_name = "Quinary MI2S Capture",
|
||||
|
|
Loading…
Add table
Reference in a new issue