Openwrt/target/linux/bcm27xx/patches-5.4/950-0271-According-to-5713-pdf-doc-CLOCK_CTRL-is-a-readonly-s.patch
Álvaro Fernández Rojas f07e572f64 bcm27xx: import latest patches from the RPi foundation
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G
bcm2710: boot tested on RPi 3B v1.2
bcm2711: boot tested on RPi 4B v1.1 4G

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-18 23:42:32 +01:00

32 lines
1.1 KiB
Diff

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;