Re: [PATCH] ASoC: rsnd: fix DALIGN register for SSIU

From: Eugeniu Rosca
Date: Tue Nov 19 2019 - 05:43:39 EST


Hello Morimoto-san,

On Tue, Nov 19, 2019 at 09:46:12AM +0900, Kuninori Morimoto wrote:

[..]

> Basically I have no objection.
> But we can reuse dalign_values[0][x] value ?
>
> id = 0;
> if ((snd_pcm_format_width(runtime->format) != 16) ||
> (mod != target)) {
> inv = 0;
> if (mod == ssiu))
> id = rsnd_mod_id_sub(mod);
> /* Target mod needs inverted DALIGN when 16bit */
> } else {
> inv = 1;
> if (mod == ssiu)
> id = rsnd_mod_id_sub(mod);
> }
>
> return dalign_values[id][inv];

Thank you for your review comment.
We will soon push a v2.

--
Best Regards,
Eugeniu