summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-11-08 15:12:25 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:35:08 +0800
commit32009bc4778729decd69d909300e1086914d1e13 (patch)
tree9e5e3563843da0b0ac167f1db3634ddc95724fc9 /sound/soc/codecs
parent79ad7d52ae4267439c733a9e5d44ffdd156a393c (diff)
MLK-20277-2: ASoC: rpmsg_ak4497: remove digital_mute function
For the LPA mode, when the system enter suspend, the M4 will continue to play the data, but for normal ALSA case, the digital mute should be called at suspend, so the codec will be mute, which conflict with the requirement of LPA. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/rpmsg_ak4497.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/sound/soc/codecs/rpmsg_ak4497.c b/sound/soc/codecs/rpmsg_ak4497.c
index 80b8362eec93..ffc6792afec1 100644
--- a/sound/soc/codecs/rpmsg_ak4497.c
+++ b/sound/soc/codecs/rpmsg_ak4497.c
@@ -739,33 +739,6 @@ static int ak4497_set_bias_level(struct snd_soc_codec *codec,
return 0;
}
-static int ak4497_set_dai_mute(struct snd_soc_dai *dai, int mute)
-{
- struct snd_soc_codec *codec = dai->codec;
- struct rpmsg_ak4497_priv *ak4497 = snd_soc_codec_get_drvdata(codec);
- int nfs, ndt;
-
- nfs = ak4497->fs1;
-
- if (mute) { /* SMUTE: 1 , MUTE */
- snd_soc_update_bits(codec, AK4497_01_CONTROL2, 0x01, 0x01);
- ndt = 7424000 / nfs;
- mdelay(ndt);
-
- /* External Mute ON */
- if (gpio_is_valid(ak4497->mute_gpio))
- gpio_set_value_cansleep(ak4497->mute_gpio, 1);
- } else { /* SMUTE: 0, NORMAL operation */
-
- /* External Mute OFF */
- if (gpio_is_valid(ak4497->mute_gpio))
- gpio_set_value_cansleep(ak4497->mute_gpio, 0);
- snd_soc_update_bits(codec, AK4497_01_CONTROL2, 0x01, 0x00);
- }
-
- return 0;
-}
-
#define AK4497_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |\
@@ -807,7 +780,6 @@ static struct snd_soc_dai_ops ak4497_dai_ops = {
.hw_params = ak4497_hw_params,
.set_sysclk = ak4497_set_dai_sysclk,
.set_fmt = ak4497_set_dai_fmt,
- .digital_mute = ak4497_set_dai_mute,
};
struct snd_soc_dai_driver rpmsg_ak4497_dai[] = {