Skip to content

Commit 95fc5ef

Browse files
morimotogregkh
authored andcommitted
ASoC: rsnd: ssi: 24bit data needs right-aligned settings
commit f46a93b820eb3707faf238cd769a004e2504515f upstream. Data left/right aligned is controlled by PDTA bit on SSICR. But default is left-aligned. Thus 24bit sound will be very small sound without this patch. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fd50462 commit 95fc5ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/sh/rcar/ssi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#define SCKP (1 << 13) /* Serial Bit Clock Polarity */
4040
#define SWSP (1 << 12) /* Serial WS Polarity */
4141
#define SDTA (1 << 10) /* Serial Data Alignment */
42+
#define PDTA (1 << 9) /* Parallel Data Alignment */
4243
#define DEL (1 << 8) /* Serial Data Delay */
4344
#define CKDV(v) (v << 4) /* Serial Clock Division Ratio */
4445
#define TRMD (1 << 1) /* Transmit/Receive Mode Select */
@@ -286,7 +287,7 @@ static int rsnd_ssi_init(struct rsnd_mod *mod,
286287
struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io);
287288
u32 cr;
288289

289-
cr = FORCE;
290+
cr = FORCE | PDTA;
290291

291292
/*
292293
* always use 32bit system word for easy clock calculation.

0 commit comments

Comments
 (0)