Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] ASoC: rt5645: remove RT5645_I2S_BCLK_MS1 control
@ 2015-04-30 10:18 Bard Liao
  2015-04-30 10:18 ` [PATCH 2/6] ASoC: rt5645: fix PLL source register definitions Bard Liao
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Bard Liao @ 2015-04-30 10:18 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, alsa-devel, lars, zhengxing, yang.a.fang, koro.chen,
	john.lin, Bard Liao, flove

RT5645_I2S_BCLK_MS1 (reg 0x73 [5]) is reserverd in rt5645 and rt5650.
This function is move to TDM control. We can configure it by
snd_soc_dai_set_tdm_slot's slot_width parameter.

Signed-off-by: Bard Liao <bardliao@realtek.com>
---
 sound/soc/codecs/rt5645.c | 5 ++---
 sound/soc/codecs/rt5645.h | 4 ----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 8bad9fe..33ebe88 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -2104,9 +2104,8 @@ static int rt5645_hw_params(struct snd_pcm_substream *substream,
 
 	switch (dai->id) {
 	case RT5645_AIF1:
-		mask_clk = RT5645_I2S_BCLK_MS1_MASK | RT5645_I2S_PD1_MASK;
-		val_clk = bclk_ms << RT5645_I2S_BCLK_MS1_SFT |
-			pre_div << RT5645_I2S_PD1_SFT;
+		mask_clk = RT5645_I2S_PD1_MASK;
+		val_clk = pre_div << RT5645_I2S_PD1_SFT;
 		snd_soc_update_bits(codec, RT5645_I2S1_SDP,
 			(0x3 << dl_sft), (val_len << dl_sft));
 		snd_soc_update_bits(codec, RT5645_ADDA_CLK1, mask_clk, val_clk);
diff --git a/sound/soc/codecs/rt5645.h b/sound/soc/codecs/rt5645.h
index 4473636..fa5c560 100644
--- a/sound/soc/codecs/rt5645.h
+++ b/sound/soc/codecs/rt5645.h
@@ -942,10 +942,6 @@
 #define RT5645_I2S2_SDI_I2S2			(0x1 << 6)
 
 /* ADC/DAC Clock Control 1 (0x73) */
-#define RT5645_I2S_BCLK_MS1_MASK		(0x1 << 15)
-#define RT5645_I2S_BCLK_MS1_SFT			15
-#define RT5645_I2S_BCLK_MS1_32			(0x0 << 15)
-#define RT5645_I2S_BCLK_MS1_64			(0x1 << 15)
 #define RT5645_I2S_PD1_MASK			(0x7 << 12)
 #define RT5645_I2S_PD1_SFT			12
 #define RT5645_I2S_PD1_1			(0x0 << 12)
-- 
1.8.1.1.439.g50a6b54

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-05-05  5:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 10:18 [PATCH 1/6] ASoC: rt5645: remove RT5645_I2S_BCLK_MS1 control Bard Liao
2015-04-30 10:18 ` [PATCH 2/6] ASoC: rt5645: fix PLL source register definitions Bard Liao
2015-04-30 10:18 ` [PATCH 3/6] ASoC: rt5645: add TDM slot control into dapm route Bard Liao
2015-04-30 10:18 ` [PATCH 4/6] ASoC: rt5645: add device tree support Bard Liao
2015-05-01 16:32   ` Mark Brown
2015-05-04  5:21     ` Bard Liao
2015-05-04 11:59       ` Mark Brown
2015-05-05  5:59         ` Bard Liao
2015-04-30 10:18 ` [PATCH 5/6] ASoC: rt5645: fix wrong mask for button report Bard Liao
2015-05-01 16:34   ` Mark Brown
2015-04-30 10:18 ` [PATCH 6/6] ASoC: rt5645: make volume TLV closer to reality Bard Liao
2015-05-01 16:35 ` [PATCH 1/6] ASoC: rt5645: remove RT5645_I2S_BCLK_MS1 control Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox