Message ID | 20220509214703.4482-20-vitalyr@opensource.cirrus.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 97076475e2fdf471348b9ce73215cdbceeb4390f |
Headers | show |
Series | *ALSA: hda: cirrus: Add initial DSP support and firmware loading | expand |
On Mon, May 09, 2022 at 10:46:56PM +0100, Vitaly Rodionov wrote: > From: Stefan Binding <sbinding@opensource.cirrus.com> > > When waking from hibernation, it is possible for the function > which sends the wake command to fail initially, but after a > retry it will succeed. There is no need to print an error if > the initial attempts fail. > > Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> > Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> > --- Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles
diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index cc5366c8bdd6..e726a38f1997 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -1302,7 +1302,8 @@ int cs35l41_set_cspl_mbox_cmd(struct device *dev, struct regmap *regmap, return 0; } - dev_err(dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); + if (cmd != CSPL_MBOX_CMD_OUT_OF_HIBERNATE) + dev_err(dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); return -ENOMSG; }