From: Mark Brown Date: Thu, 29 Sep 2016 19:44:37 +0000 (-0700) Subject: Merge remote-tracking branches 'asoc/topic/rt5659', 'asoc/topic/rt5660', 'asoc/topic... X-Git-Tag: v4.9-rc1~4^2~4^2~3 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=commitdiff_plain;h=096388b76a1ba32d1b1e20bcc0e6b4901544eed1 Merge remote-tracking branches 'asoc/topic/rt5659', 'asoc/topic/rt5660', 'asoc/topic/rt5677' and 'asoc/topic/samsung' into asoc-next --- 096388b76a1ba32d1b1e20bcc0e6b4901544eed1 diff --cc sound/soc/samsung/s3c24xx_uda134x.c index 92e88bca386e,50849e137fc0,50849e137fc0,50849e137fc0,1619e762e635..7853fbe6ccc9 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c @@@@@@ -54,29 -54,28 -54,28 -54,28 -54,26 +54,27 @@@@@@ static struct snd_pcm_hw_constraint_lis }; #endif ---- static struct platform_device *s3c24xx_uda134x_snd_device; ---- static int s3c24xx_uda134x_startup(struct snd_pcm_substream *substream) { ---- int ret = 0; ++++ struct snd_soc_pcm_runtime *rtd = substream->private_data; ++++ struct snd_soc_dai *cpu_dai = rtd->cpu_dai; #ifdef ENFORCE_RATES struct snd_pcm_runtime *runtime = substream->runtime; #endif ++++ int ret = 0; mutex_lock(&clk_lock); ---- pr_debug("%s %d\n", __func__, clk_users); ++++ if (clk_users == 0) { ---- xtal = clk_get(&s3c24xx_uda134x_snd_device->dev, "xtal"); ++++ xtal = clk_get(rtd->dev, "xtal"); if (IS_ERR(xtal)) { ---- printk(KERN_ERR "%s cannot get xtal\n", __func__); ++++ dev_err(rtd->dev, "%s cannot get xtal\n", __func__); ret = PTR_ERR(xtal); } else { ---- pclk = clk_get(&s3c24xx_uda134x_snd_device->dev, ---- "pclk"); ++++ pclk = clk_get(cpu_dai->dev, "iis"); if (IS_ERR(pclk)) { ---- printk(KERN_ERR "%s cannot get pclk\n", ---- __func__); ++++ dev_err(rtd->dev, "%s cannot get pclk\n", ++++ __func__); clk_put(xtal); ret = PTR_ERR(pclk); }