Applied "ASoC: da7213: Add support to handle mclk data provided to driver" to the asoc tree
Subsystems (3)
Mark Brown
maintainerThe patch
ASoC: da7213: Add support to handle mclk data provided to driver
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
6e7c444318699496e6e6f30c875cf67534aeccc6Mon Sep 17 00:00:00 2001
From: Adam Thomson <[email protected]>
Date: Wed, 7 Oct 2015 14:27:11 +0100
Subject: [PATCH] ASoC: da7213: Add support to handle mclk data provided to
driver
Driver now can make use of mclk data, if provided, to set, enable and disable the clock source. As part of this, the choice to enable clock squaring is dealt with as part of dai_sysclk() call rather than as platform data.
--- include/sound/da7213.h | 3 --- sound/soc/codecs/da7213.c | 67 +++++++++++++++++++++++++++++++++++++++-------- sound/soc/codecs/da7213.h | 8 ++++-- 3 files changed, 62 insertions(+), 16 deletions(-)
include/sound/da7213.h +0 -3
@@ -44,9 +44,6 @@ struct da7213_platform_data {enum da7213_dmic_data_sel dmic_data_sel;enum da7213_dmic_samplephase dmic_samplephase; enum da7213_dmic_clk_rate dmic_clk_rate; - -/* MCLK squaring config */ - bool mclk_squaring; };#endif /* _DA7213_PDATA_H */
sound/soc/codecs/da7213.c +56 -11
112 lines not on this page · raw message
sound/soc/codecs/da7213.h +6 -2
@@ -13,6 +13,7 @@#ifndef _DA7213_H#define _DA7213_H +#include <linux/clk.h> #include <linux/regmap.h> #include <sound/da7213.h>
@@ -504,14 +505,17 @@#define DA7213_PLL_INDIV_20_40_MHZ_VAL 8#define DA7213_PLL_INDIV_40_54_MHZ_VAL 16 -enum clk_src { -DA7213_CLKSRC_MCLK +enum da7213_clk_src { +DA7213_CLKSRC_MCLK =0 , +DA7213_CLKSRC_MCLK_SQR , };/* Codec private data */ struct da7213_priv {struct regmap *regmap; +struct clk *mclk;unsigned int mclk_rate; +int clk_src;bool master;bool mclk_squarer_en;bool srm_en;
Signature · 1 line
2.5.0