From: Cezary Rojewski <cezary.rojewski@intel.com>
To: alsa-devel@alsa-project.org, broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz, zhuning@everest-semi.com,
amadeuszx.slawinski@linux.intel.com,
pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com,
Cezary Rojewski <cezary.rojewski@intel.com>
Subject: [PATCH 2/8] ASoC: codecs: es8316: Add support for S24_3LE format
Date: Thu, 29 Jun 2023 13:24:43 +0200 [thread overview]
Message-ID: <20230629112449.1755928-3-cezary.rojewski@intel.com> (raw)
In-Reply-To: <20230629112449.1755928-1-cezary.rojewski@intel.com>
Codec supports words that are 16/18/20/24/32 bits long. In case of 24,
it should be treated as 24/24 not 24/32 i.e.: 24 valid bit-depth in 24
bit-depth container.
For compatibility reasons, S24_LE is left as is.
Cc: Zhu Ning <zhuning@everest-semi.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
sound/soc/codecs/es8316.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c
index 5d1fd505d6ba..7e5eb13af428 100644
--- a/sound/soc/codecs/es8316.c
+++ b/sound/soc/codecs/es8316.c
@@ -494,6 +494,7 @@ static int es8316_pcm_hw_params(struct snd_pcm_substream *substream,
bclk_divider /= 20;
break;
case SNDRV_PCM_FORMAT_S24_LE:
+ case SNDRV_PCM_FORMAT_S24_3LE:
wordlen = ES8316_SERDATA2_LEN_24;
bclk_divider /= 24;
break;
--
2.25.1
next prev parent reply other threads:[~2023-06-29 11:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-29 11:24 [PATCH 0/8] ASoC: Intel: avs: New boards and fixes to existing ones Cezary Rojewski
2023-06-29 11:24 ` [PATCH 1/8] ASoC: codecs: es8316: Add support for 24 MHz MCLK Cezary Rojewski
2023-06-29 11:24 ` Cezary Rojewski [this message]
2023-06-29 11:24 ` [PATCH 3/8] ASoC: Intel: avs: Add es8336 machine board Cezary Rojewski
2023-06-29 11:24 ` [PATCH 4/8] ASoC: Intel: avs: Load es8336 board on KBL-based platforms Cezary Rojewski
2023-06-29 11:24 ` [PATCH 5/8] ASoC: Intel: avs: Add rt5663 machine board Cezary Rojewski
2023-06-29 11:24 ` [PATCH 6/8] ASoC: Intel: avs: Load rt5663 board on KBL-based platforms Cezary Rojewski
2023-06-29 11:24 ` [PATCH 7/8] ASoC: Intel: avs: rt5682: Add missing components Cezary Rojewski
2023-06-29 11:24 ` [PATCH 8/8] ASoC: Intel: avs: rt5682: Tidy up hw_params() Cezary Rojewski
2023-07-12 11:46 ` [PATCH 0/8] ASoC: Intel: avs: New boards and fixes to existing ones Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230629112449.1755928-3-cezary.rojewski@intel.com \
--to=cezary.rojewski@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=broonie@kernel.org \
--cc=hdegoede@redhat.com \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=tiwai@suse.com \
--cc=zhuning@everest-semi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox