[PATCH v2 3/5] ASoC: pcm179x: Add left-justified formats for pcm1792a

From: Roman Smrž

Date: Fri Oct 16 2026 - 06:43:39 EST


The left-justified format is supported per the datasheet, but was
missing in the table.

Signed-off-by: Roman Smrž <roman@xxxxxxxxxxxxxxxxxxxx>
---
sound/soc/codecs/pcm179x.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
index 61b87dab3266..fae5de318b6e 100644
--- a/sound/soc/codecs/pcm179x.c
+++ b/sound/soc/codecs/pcm179x.c
@@ -75,6 +75,8 @@ static const struct pcm179x_fmt_table pcm1792a_fmt[] = {
{ SND_SOC_DAIFMT_RIGHT_J, 16, 0 },
{ SND_SOC_DAIFMT_RIGHT_J, 24, 2 },
{ SND_SOC_DAIFMT_RIGHT_J, 32, 2 },
+ { SND_SOC_DAIFMT_LEFT_J, 24, 3 },
+ { SND_SOC_DAIFMT_LEFT_J, 32, 3 },
{ SND_SOC_DAIFMT_I2S, 16, 4 },
{ SND_SOC_DAIFMT_I2S, 24, 5 },
{ SND_SOC_DAIFMT_I2S, 32, 5 },
@@ -144,6 +146,7 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream,

static const u64 pcm179x_selectable_formats =
SND_SOC_POSSIBLE_DAIFMT_I2S |
+ SND_SOC_POSSIBLE_DAIFMT_LEFT_J |
SND_SOC_POSSIBLE_DAIFMT_RIGHT_J;

static const struct snd_soc_dai_ops pcm179x_dai_ops = {

--
2.55.0