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

Message ID 20261002090308.941453-4-roman@amarulasolutions.com
State Superseded
Headers
Series ASoC: pcm179x: Add support for pcm1795 and pcm1796 |

Commit Message

Roman Smrž Oct. 2, 2026, 9:03 a.m. UTC
The left-justified format is supported per the datasheet, but was
missing in the table.

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

Comments

Dario Binacchi Oct. 2, 2026, 9:24 a.m. UTC | #1
Hi Roman,

On Fri, Oct 2, 2026 at 11:03 AM Roman Smrž <roman@amarulasolutions.com> wrote:
>
> The left-justified format is supported per the datasheet, but was
> missing in the table.
>
> Signed-off-by: Roman Smrž <roman@amarulasolutions.com>
> ---
>  sound/soc/codecs/pcm179x.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
> index 61b87dab3266..c059e410cbbe 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 },
> --
> 2.55.0
>
>

Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Regards,
Dario
  

Patch

diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
index 61b87dab3266..c059e410cbbe 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 },