ASoC: mediatek: mt8183: fix tdm out data align issue
Subsystems (3)
PATCH v2 1/3 ASoC: mediatek: mt8183: fix tdm out data align issue
Mt8183 tdm out support S16_LE/S24_LE/S32_LE formats. When output S32_LE, we need set hd_align so that memif can output MSB 24bits. When output S24_LE, we need reset hd_align so that memif can output LSB 24bits.
--- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/mediatek/common/mtk-afe-fe-dai.c +1 -2
@@ -241,7 +241,7 @@ int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,struct mtk_base_afe *afe =snd_soc_dai_get_drvdata (dai);struct mtk_base_afe_memif *memif = &afe->memif[rtd->cpu_dai->id];int hd_audio =0 ; -int hd_align =1 ; +int hd_align =0 ;/* set hd mode */ switch (substream->runtime->format) {
@@ -254,7 +254,6 @@ int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,break ;case SNDRV_PCM_FORMAT_S24_LE : hd_audio =1 ; - hd_align =0 ;break ;default : dev_err(afe->dev, "%s() error: unsupported format %d\n",
Signature · 1 line
2.18.0
A message that is not in the archive (sent off-list or not yet received): 1566622726-27113-1-git-send-email-jiaxin.yu-NuS5LvNUpcJWk0Htik3J/[email protected]
Applied "ASoC: mediatek: mt8183: fix tdm out data align issue" to the asoc tree
The patch
ASoC: mediatek: mt8183: fix tdm out data align issue
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
d2ac1fe0342ce2b44621f60d053800e2d94f1d21Mon Sep 17 00:00:00 2001
From: Jiaxin Yu <jiaxin.yu-NuS5LvNUpcJWk0Htik3J/[email protected]>
Date: Sat, 24 Aug 2019 12:58:46 +0800
Subject: [PATCH] ASoC: mediatek: mt8183: fix tdm out data align issue
Mt8183 tdm out support S16_LE/S24_LE/S32_LE formats. When output S32_LE, we need set hd_align so that memif can output MSB 24bits. When output S24_LE, we need reset hd_align so that memif can output LSB 24bits.
--- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/mediatek/common/mtk-afe-fe-dai.c +1 -2
@@ -241,7 +241,7 @@ int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,struct mtk_base_afe *afe =snd_soc_dai_get_drvdata (dai);struct mtk_base_afe_memif *memif = &afe->memif[rtd->cpu_dai->id];int hd_audio =0 ; -int hd_align =1 ; +int hd_align =0 ;/* set hd mode */ switch (substream->runtime->format) {
@@ -254,7 +254,6 @@ int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,break ;case SNDRV_PCM_FORMAT_S24_LE : hd_audio =1 ; - hd_align =0 ;break ;default : dev_err(afe->dev, "%s() error: unsupported format %d\n",
Signature · 1 line
2.20.1