Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8883e449 authored by Romed Schur's avatar Romed Schur Committed by Meng Wang
Browse files

asoc: csra66x0: Support of sysfs interface



Sysfs interface added to support filter register access.

Change-Id: I6dcbd3e728ab6c80c6a1d29f6fc2e795f4a09119
Signed-off-by: default avatarRomed Schur <rschur@codeaurora.org>
parent 63f48155
Loading
Loading
Loading
Loading
+554 −108

File changed.

Preview size limit exceeded, changes collapsed.

+12 −5
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#ifndef _CSRA66X0_H
@@ -200,6 +200,9 @@
/* RESERVED (CSRA66X0_BASE+0x00FF) */
#define CSRA66X0_MAX_REGISTER_ADDR CSRA66X0_DCA_FREEZE_CTRL

#define CSRA66X0_COEFF_BASE     0xD000
#define CSRA66X0_MAX_COEFF_ADDR 0xD6DF

#define EXPECTED_CSRA66X0_CHIP_ID 0x39

#define SPK_VOLUME_M20DB 0x119
@@ -208,9 +211,13 @@
#define SPK_VOLUME_LSB_MSK 0x00FF
#define SPK_VOLUME_MSB_MSK 0x0100

#define CONFIG_STATE    0x0
#define RUN_STATE       0x1
#define STDBY_STATE     0x2
#define SET_CONFIG_STATE    0x0
#define SET_RUN_STATE       0x1
#define SET_STDBY_STATE     0x2

#define CONFIG_STATE_ID 0x3
#define WAIT_FOR_CONFIG_STATE_TIMEOUT_MS 2000
#define SYSFS_RESET 1

#define FAULT_STATUS_INTERNAL       0x01
#define FAULT_STATUS_OTP_INTEGRITY  0x02