Re: [PATCH] ASoC: rt715: add main capture switch and main capture volume
18 Mar
2021
18 Mar
'21
1:08 p.m.
On Thu, Mar 18, 2021 at 03:35:31AM +0000, Jack Yu wrote:
- *l_val = (val_h << 8);
- *l_val = val_h << 8; ret = regmap_read(rt715->regmap, addr_h, l_val); if (ret < 0) pr_err("Failed to get L channel gain.\n");
This looks like an unrelated formatting change.
Because regmap has its own callback for read/write, so the formatting change is required for callback.
This change is literally just removing some brackets that don't do anything, the regmap API has no impact here.
if (mc->invert) { /* for mute status */
read_ll = !((read_ll & 0x80) >> RT715_MUTE_SFT);
read_rl = !((read_rl & 0x80) >> RT715_MUTE_SFT);
read_ll = !(read_ll & 0x80);
} else { /* for gain */ read_ll = read_ll & 0x7f;read_rl = !(read_rl & 0x80);
This too.
This change is just to simplify the code. The result will still be the same.
Sure, but that should be a separate patch with a separate changelog which explicitly says that this is being done.
1376
Age (days ago)
1376
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Brown