Skip to content

Commit 6e4320d

Browse files
charleskeepaxtiwai
authored andcommitted
ALSA: hda: cs35l41: Add calls to newly added test key function
The test key now needs to be manually held when calling cs35l41_register_errata_patch, after patch: Add the missing function calls to this driver. Fixes: f517ba4 ("ASoC: cs35l41: Add support for hibernate memory retention mode") Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Lucas Tanure <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 2cb5204 commit 6e4320d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sound/pci/hda/cs35l41_hda.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ int cs35l41_hda_probe(struct device *dev, const char *device_name, int id, int i
463463
goto err;
464464
}
465465

466+
ret = cs35l41_test_key_unlock(cs35l41->dev, cs35l41->regmap);
467+
if (ret)
468+
goto err;
469+
466470
ret = cs35l41_register_errata_patch(cs35l41->dev, cs35l41->regmap, reg_revid);
467471
if (ret)
468472
goto err;
@@ -473,6 +477,10 @@ int cs35l41_hda_probe(struct device *dev, const char *device_name, int id, int i
473477
goto err;
474478
}
475479

480+
ret = cs35l41_test_key_lock(cs35l41->dev, cs35l41->regmap);
481+
if (ret)
482+
goto err;
483+
476484
ret = cs35l41_hda_apply_properties(cs35l41, acpi_hw_cfg);
477485
if (ret)
478486
goto err;

0 commit comments

Comments
 (0)