aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.4/950-0271-According-to-5713-pdf-doc-CLOCK_CTRL-is-a-readonly-s.patch
blob: 267725d3efce1d5a3f5c4431049469b144dbb10a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 638f29943041f9205486a03587b7bd9e64799b2a Mon Sep 17 00:00:00 2001
From: Hermann Lauer <hlauer@seba.iwr.uni-heidelberg.de>
Date: Thu, 8 Aug 2019 15:40:37 +0200
Subject: [PATCH] According to 5713 pdf doc CLOCK_CTRL is a readonly
 status register, and it behaves so. Remove useless setting

---
 sound/soc/codecs/tas5713.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/sound/soc/codecs/tas5713.c
+++ b/sound/soc/codecs/tas5713.c
@@ -190,10 +190,6 @@ static int tas5713_probe(struct snd_soc_
 	ret = snd_soc_component_write(component, TAS5713_ERROR_STATUS, 0x00);
 	if (ret < 0) return ret;
 
-	// Clock mode: 44/48kHz, MCLK=64xfs
-	ret = snd_soc_component_write(component, TAS5713_CLOCK_CTRL, 0x60);
-	if (ret < 0) return ret;
-
 	// I2S 24bit
 	ret = snd_soc_component_write(component, TAS5713_SERIAL_DATA_INTERFACE, 0x05);
 	if (ret < 0) return ret;
@@ -257,6 +253,7 @@ static bool tas5713_reg_volatile(struct
 	switch (reg) {
 		case TAS5713_DEVICE_ID:
 		case TAS5713_ERROR_STATUS:
+		case TAS5713_CLOCK_CTRL:
 			return true;
 	default:
 			return false;