Patch "ASoC: codecs: msm8916-wcd: Fix supported formats" has been added to the 4.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
ASoC: codecs: msm8916-wcd: Fix supported formats
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
asoc-codecs-msm8916-wcd-fix-supported-formats.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
51f493ae71adc2c49a317a13c38e54e1cdf46005Mon Sep 17 00:00:00 2001
From: Srinivas Kandagatla <[email protected]>
Date: Thu, 30 Nov 2017 10:15:02 +0000
Subject: ASoC: codecs: msm8916-wcd: Fix supported formats
From: Srinivas Kandagatla <[email protected]>
commit 51f493ae71adc2c49a317a13c38e54e1cdf46005 upstream.
This codec is configurable for only 16 bit and 32 bit samples, so reflect this in the supported formats also remove 24bit sample from supported list.
--- sound/soc/codecs/msm8916-wcd-analog.c | 2 +- sound/soc/codecs/msm8916-wcd-digital.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/msm8916-wcd-analog.c +1 -1
@@ -267,7 +267,7 @@#define MSM8916_WCD_ANALOG_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000)#define MSM8916_WCD_ANALOG_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ - SNDRV_PCM_FMTBIT_S24_LE) + SNDRV_PCM_FMTBIT_S32_LE)static int btn_mask =SND_JACK_BTN_0 |SND_JACK_BTN_1 |SND_JACK_BTN_2 |SND_JACK_BTN_3 |SND_JACK_BTN_4 ;
sound/soc/codecs/msm8916-wcd-digital.c +2 -2
@@ -194,7 +194,7 @@ SNDRV_PCM_RATE_32000 | \ SNDRV_PCM_RATE_48000)#define MSM8916_WCD_DIGITAL_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ - SNDRV_PCM_FMTBIT_S24_LE) + SNDRV_PCM_FMTBIT_S32_LE)struct msm8916_wcd_digital_priv {struct clk *ahbclk, *mclk;
@@ -645,7 +645,7 @@ static int msm8916_wcd_digital_hw_paramsRX_I2S_CTL_RX_I2S_MODE_MASK , RX_I2S_CTL_RX_I2S_MODE_16);break ; -case SNDRV_PCM_FORMAT_S24_LE : +case SNDRV_PCM_FORMAT_S32_LE :snd_soc_update_bits (dai->codec,LPASS_CDC_CLK_TX_I2S_CTL ,TX_I2S_CTL_TX_I2S_MODE_MASK ,TX_I2S_CTL_TX_I2S_MODE_32 );
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/asoc-codecs-msm8916-wcd-fix-supported-formats.patch