ASoC: Intel: Add Broadwell Machine support
Subsystems (3)
PATCH v2 1/1 ASoC: Intel: Add Broadwell Machine support
From: Liam Girdwood <[email protected]>
Add support for Broadwell based machines with SST DSP audio.
Signed-off-by Liam Girdwood <[email protected]>
Signed-off-by Jie Yang <[email protected]>
--- sound/soc/intel/Kconfig | 12 +++ sound/soc/intel/Makefile | 2 + sound/soc/intel/broadwell.c | 251 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+) create mode 100644 sound/soc/intel/broadwell.c
sound/soc/intel/Kconfig +12 -0
@@ -58,3 +58,15 @@ config SND_SOC_INTEL_BYT_MAX98090_MACH help This adds audio driver for Intel Baytrail platform based boards with the MAX98090 audio codec. + +config SND_SOC_INTEL_BROADWELL_MACH + tristate "ASoC Audio DSP support for Intel Broadwell Wildcatpoint" + depends on SND_SOC_INTEL_SST && X86_INTEL_LPSS + select SND_SOC_INTEL_HASWELL + select SND_COMPRESS_OFFLOAD + select SND_SOC_RT286 + help + This adds support for the Wilcatpoint Audio DSP on Intel(R) Broadwell + Ultrabook platforms. + Say Y if you have such a device + If unsure select "N".
sound/soc/intel/Makefile +2 -0
@@ -24,7 +24,9 @@ obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o snd-soc-sst-haswell-objs := haswell.o snd-soc-sst-byt-rt5640-mach-objs := byt-rt5640.o snd-soc-sst-byt-max98090-mach-objs := byt-max98090.o +snd-soc-sst-broadwell-objs := broadwell.o obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o obj-$(CONFIG_SND_SOC_INTEL_BYT_RT5640_MACH) += snd-soc-sst-byt-rt5640-mach.o obj-$(CONFIG_SND_SOC_INTEL_BYT_MAX98090_MACH) += snd-soc-sst-byt-max98090-mach.o +obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o
sound/soc/intel/broadwell.c new file +251 -0
251 lines not on this page · raw message
Signature · 1 line
1.8.3.2
Quoted 3 lines · Jie Yang
From: Liam Girdwood <[email protected]>
Add support for Broadwell based machines with SST DSP audio.
Applied, one tiny thing though:
Quoted 4 lines
sound/soc/intel/broadwell.c new file +4
-0+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;
sound/soc/intel/broadwell.c line 92
Quoted 10 lines
sound/soc/intel/broadwell.c new file +10
-0+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.