diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-12-13 11:55:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-13 11:55:11 +0000 |
commit | 45380ebd1ab3d604ece3dd14a84f89fbc69ea7b1 (patch) | |
tree | 816e479975bb22e39e9cbdde8fdfb400f38f72a9 /target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch | |
parent | 170ce2961703fe3c2c74e9aa3088df2905b3697e (diff) | |
download | mtk-20170518-45380ebd1ab3d604ece3dd14a84f89fbc69ea7b1.zip mtk-20170518-45380ebd1ab3d604ece3dd14a84f89fbc69ea7b1.tar.gz mtk-20170518-45380ebd1ab3d604ece3dd14a84f89fbc69ea7b1.tar.bz2 |
brcm2708: remove linux 3.10 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43687
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch')
-rw-r--r-- | target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch b/target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch deleted file mode 100644 index 763bd54..0000000 --- a/target/linux/brcm2708/patches-3.10/0115-ASoC-core-Add-API-for-configuration-of-DAI-BCLK-rati.patch +++ /dev/null @@ -1,71 +0,0 @@ -From 573a4bcbf022cae315a2b40ddd7b96c29d22971a Mon Sep 17 00:00:00 2001 -From: Liam Girdwood <liam.r.girdwood@linux.intel.com> -Date: Mon, 16 Sep 2013 13:01:46 +0100 -Subject: [PATCH 115/196] ASoC: core: Add API for configuration of DAI BCLK - ratio - -Some codec drivers when running in slave mode require that BCLK to sample rate ratio -is explicitly set by the machine driver as it may not be exactly rate * frame size. - -Extend the DAI API by adding :- - -int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); - -Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> -Signed-off-by: Mark Brown <broonie@linaro.org> ---- - include/sound/soc-dai.h | 3 +++ - sound/soc/soc-core.c | 16 ++++++++++++++++ - 2 files changed, 19 insertions(+) - -diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h -index ae9a227..d8acf0c 100644 ---- a/include/sound/soc-dai.h -+++ b/include/sound/soc-dai.h -@@ -105,6 +105,8 @@ int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai, - int snd_soc_dai_set_pll(struct snd_soc_dai *dai, - int pll_id, int source, unsigned int freq_in, unsigned int freq_out); - -+int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); -+ - /* Digital Audio interface formatting */ - int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt); - -@@ -131,6 +133,7 @@ struct snd_soc_dai_ops { - int (*set_pll)(struct snd_soc_dai *dai, int pll_id, int source, - unsigned int freq_in, unsigned int freq_out); - int (*set_clkdiv)(struct snd_soc_dai *dai, int div_id, int div); -+ int (*set_bclk_ratio)(struct snd_soc_dai *dai, unsigned int ratio); - - /* - * DAI format configuration -diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c -index d56bbea..d18272c 100644 ---- a/sound/soc/soc-core.c -+++ b/sound/soc/soc-core.c -@@ -3463,6 +3463,22 @@ int snd_soc_codec_set_pll(struct snd_soc_codec *codec, int pll_id, int source, - EXPORT_SYMBOL_GPL(snd_soc_codec_set_pll); - - /** -+ * snd_soc_dai_set_bclk_ratio - configure BCLK to sample rate ratio. -+ * @dai: DAI -+ * @ratio Ratio of BCLK to Sample rate. -+ * -+ * Configures the DAI for a preset BCLK to sample rate ratio. -+ */ -+int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) -+{ -+ if (dai->driver && dai->driver->ops->set_bclk_ratio) -+ return dai->driver->ops->set_bclk_ratio(dai, ratio); -+ else -+ return -EINVAL; -+} -+EXPORT_SYMBOL_GPL(snd_soc_dai_set_bclk_ratio); -+ -+/** - * snd_soc_dai_set_fmt - configure DAI hardware audio format. - * @dai: DAI - * @fmt: SND_SOC_DAIFMT_ format value. --- -1.9.1 - |