summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/lpass.h
diff options
context:
space:
mode:
authorLinus Walleij2017-04-05 10:34:10 +0200
committerMark Brown2017-04-21 19:07:45 +0200
commit97c52eb969718f0231f197937eb0418e7514aba3 (patch)
tree6e3d6d9194e38ce59a98e92fd9d3c083bb447cac /sound/soc/qcom/lpass.h
parentLinux 4.11-rc1 (diff)
downloadkernel-qcow2-linux-97c52eb969718f0231f197937eb0418e7514aba3.tar.gz
kernel-qcow2-linux-97c52eb969718f0231f197937eb0418e7514aba3.tar.xz
kernel-qcow2-linux-97c52eb969718f0231f197937eb0418e7514aba3.zip
ASoC: qcom: move clock names into LPASS variant struct
The clock names for the two supported codecs are either "mi2s-*" name variants generated by code. This naming scheme does not work for platforms like MSM8660 which has I2S channels named CODEC_I2S_SPKR (rather than just "MI2S tertiary" and other repetitive names) and consequently have clocks named "codec-i2s-spkr-osr-clk" and similar. Skip the runtime generation of clock names and replace it with name lookup tables encoded into the variant data. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass.h')
-rw-r--r--sound/soc/qcom/lpass.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index 9b031352ea3c..b848db2d6c3d 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -91,6 +91,8 @@ struct lpass_variant {
/* SOC specific dais */
struct snd_soc_dai_driver *dai_driver;
int num_dai;
+ const char * const *dai_osr_clk_names;
+ const char * const *dai_bit_clk_names;
};
/* register the platform driver from the CPU DAI driver */