mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
ASoC: lahaina: Update sample rate for speaker protection
Support 48KHz sampling rate for speaker protection backend DAI link. Change-Id: I2ca284b843ff1bf11c17d2b36a6bbc0339dc8a95 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
1b0ebc41e0
commit
cd507e1f28
1 changed files with 3 additions and 2 deletions
|
|
@ -638,7 +638,7 @@ static struct dev_config cdc_dma_rx_cfg[] = {
|
|||
|
||||
/* Default configuration of Codec DMA Interface TX */
|
||||
static struct dev_config cdc_dma_tx_cfg[] = {
|
||||
[WSA_CDC_DMA_TX_0] = {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
||||
[WSA_CDC_DMA_TX_0] = {SAMPLING_RATE_8KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
||||
[WSA_CDC_DMA_TX_1] = {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
||||
[WSA_CDC_DMA_TX_2] = {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
||||
[TX_CDC_DMA_TX_0] = {SAMPLING_RATE_48KHZ, SNDRV_PCM_FORMAT_S16_LE, 2},
|
||||
|
|
@ -4413,9 +4413,10 @@ static int msm_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
break;
|
||||
|
||||
case MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0:
|
||||
idx = msm_cdc_dma_get_idx_from_beid(dai_link->id);
|
||||
param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT,
|
||||
SNDRV_PCM_FORMAT_S32_LE);
|
||||
rate->min = rate->max = SAMPLING_RATE_8KHZ;
|
||||
rate->min = rate->max = cdc_dma_tx_cfg[idx].sample_rate;
|
||||
channels->min = channels->max = msm_vi_feed_tx_ch;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue