267725d3efce1d5a3f5c4431049469b144dbb10a
[openwrt/staging/lynxis.git] /
1 From 638f29943041f9205486a03587b7bd9e64799b2a Mon Sep 17 00:00:00 2001
2 From: Hermann Lauer <hlauer@seba.iwr.uni-heidelberg.de>
3 Date: Thu, 8 Aug 2019 15:40:37 +0200
4 Subject: [PATCH] According to 5713 pdf doc CLOCK_CTRL is a readonly
5 status register, and it behaves so. Remove useless setting
6
7 ---
8 sound/soc/codecs/tas5713.c | 5 +----
9 1 file changed, 1 insertion(+), 4 deletions(-)
10
11 --- a/sound/soc/codecs/tas5713.c
12 +++ b/sound/soc/codecs/tas5713.c
13 @@ -190,10 +190,6 @@ static int tas5713_probe(struct snd_soc_
14 ret = snd_soc_component_write(component, TAS5713_ERROR_STATUS, 0x00);
15 if (ret < 0) return ret;
16
17 - // Clock mode: 44/48kHz, MCLK=64xfs
18 - ret = snd_soc_component_write(component, TAS5713_CLOCK_CTRL, 0x60);
19 - if (ret < 0) return ret;
20 -
21 // I2S 24bit
22 ret = snd_soc_component_write(component, TAS5713_SERIAL_DATA_INTERFACE, 0x05);
23 if (ret < 0) return ret;
24 @@ -257,6 +253,7 @@ static bool tas5713_reg_volatile(struct
25 switch (reg) {
26 case TAS5713_DEVICE_ID:
27 case TAS5713_ERROR_STATUS:
28 + case TAS5713_CLOCK_CTRL:
29 return true;
30 default:
31 return false;