16 Jul
2014
16 Jul
'14
11:32 p.m.
On Mon, Jul 14, 2014 at 10:35:40AM +0800, Jie Yang wrote:
From: Liam Girdwood liam.r.girdwood@linux.intel.com
Add support for Broadwell based machines with SST DSP audio.
Applied, one tiny thing though:
+static int broadwell_rt286_hw_params(struct snd_pcm_substream *substream,
- struct snd_pcm_hw_params *params)
+{
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
- struct snd_soc_dai *codec_dai = rtd->codec_dai;
- int ret;
- ret = snd_soc_dai_set_sysclk(codec_dai, RT286_SCLK_S_PLL, 24000000,
SND_SOC_CLOCK_IN);
- if (ret < 0) {
dev_err(rtd->dev, "can't set codec sysclk configuration\n");
return ret;
- }
Since this is left the same all the time it'd be better to set it in rtd_init() or a late_probe() callback rather than resetting it each time.