linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Odroid-XU$ sound issue after suspend-resume
@ 2019-08-05 13:34 Jaafar Ali
  0 siblings, 0 replies; only message in thread
From: Jaafar Ali @ 2019-08-05 13:34 UTC (permalink / raw)
  To: linux-kernel, linux-samsung-soc

Dear All,
Kernel 5.3-rc1
OS: ubuntu 18.04
Hardware: Odroid-XU4
The sound of Odroid-XU4 after suspend/resume cycle is choppy and slow.
I have found a workaround, the I2SMOD register value should be set to
zero after resume to force using internal codec clock (cdclkcon bit =
0),  also the rclk_srcrate which is obtained from the function
clk_get_rate(rclksrc) inside hw_params function is not correct and
must be divided by 2 to obtain proper value, i2s_resume function is
modified to:

static int i2s_resume(struct snd_soc_dai *dai)
{
        struct samsung_i2s_priv *priv = dev_get_drvdata(dai->dev);
        priv->suspend_i2smod = 0;//workaround-1 ,
        return pm_runtime_force_resume(dai->dev);

}

 inside hw_params function, the rclk_srcrate must be halved to solve
unknown problem of clock shift, so before return from hw_params we
must insert:
if(mod == 0){
priv->rclk_srcrate = priv->rclk_srcrate / 2; //workaround-2,
}
return 0;

With these two workaround sound issue was solved, but I hope we can
get concrete fix.

Best Regards


Jaafar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-05 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-05 13:34 Odroid-XU$ sound issue after suspend-resume Jaafar Ali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).