sgtl5000 cause system can't wakeup after suspend on Yocto 1.8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sgtl5000 cause system can't wakeup after suspend on Yocto 1.8

85,891 Views
charleshuang
Senior Contributor II

Hi

We use i.MX6 and sgtl5000 on fsl-yocto-3.14.52 , and we found a issue that sgtl5000 cause system can't wake up after suspend.

Please help  to solve this issue

Thanks

Labels (3)
0 Kudos
3 Replies

563 Views
art
NXP Employee
NXP Employee

The issue you mention is not the known one. Why do you think that SGTL5000 causes the system to not wake up after suspend? Please describe in more details.


Have a great day,
Artur

0 Kudos

563 Views
charleshuang
Senior Contributor II

Hi Artur

 Because when I  modiy code as below, it works fine

static int sgtl5000_resume(struct snd_soc_codec *codec)
{
        /* Bring the codec back up to standby to enable regulators */
        sgtl5000_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

        /* Restore registers by cached in memory */
        //sgtl5000_restore_regs(codec);
        return 0;
}

0 Kudos

563 Views
james_walmsley
Contributor II

Hi Charles, 

I also have this problem. Removing the call to restore_regs() fixes the problem as you have suggested.

The system seems to operate correctly with this call removed, and I couldn't actually find where the regs are saved e.g. during suspend.

Did you find out further why this is happening?

I am using the 3.14.52 - lp5.1.1-2.0.0-ga kernel.

I will look in the newer kernels for changes in the code.

James

0 Kudos