Skip to content

Commit

Permalink
ASoC: rt5682: do nothing in rt5682_suspend/resume in sdw mode
Browse files Browse the repository at this point in the history
regcache sync will be done in sdw device suspend/resume functions.
And we have different jack detection mechanism for SoundWire.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
bardliao authored and plbossart committed Feb 4, 2021
1 parent 0edbb5a commit eb1fe08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/soc/codecs/rt5682.c
Expand Up @@ -2910,6 +2910,9 @@ static int rt5682_suspend(struct snd_soc_component *component)
{
struct rt5682_priv *rt5682 = snd_soc_component_get_drvdata(component);

if (rt5682->is_sdw)
return 0;

regcache_cache_only(rt5682->regmap, true);
regcache_mark_dirty(rt5682->regmap);
return 0;
Expand All @@ -2919,6 +2922,9 @@ static int rt5682_resume(struct snd_soc_component *component)
{
struct rt5682_priv *rt5682 = snd_soc_component_get_drvdata(component);

if (rt5682->is_sdw)
return 0;

regcache_cache_only(rt5682->regmap, false);
regcache_sync(rt5682->regmap);

Expand Down

0 comments on commit eb1fe08

Please sign in to comment.