diff options
author | Joel Selvaraj <joel.devbox@protonmail.com> | 2020-06-17 23:14:58 +0530 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2021-01-08 12:28:53 +0530 |
commit | d6f00660a05a119b106b9c383060e510dee85c17 (patch) | |
tree | 23f1f0460c48d12b4b2908e7bf4eacf866c0dab5 /sound/soc/codecs/tas2559-codec.h | |
parent | ba245271fb8120b33a14ecf367a98e9160d30cdf (diff) |
pmOS: beryllium: Add tas2559 audio amplifier codec
Initial code cherry-picked from
https://gitlab.com/sdm845-mainline/sdm845-linux/-/commit/653fd6e9abef76c3b261527370cc18e06f4fc955
Also folded ("tas2559: fix compilation and enable i2c slave mode")
https://gitlab.com/sdm845-mainline/sdm845-linux/-/commit/d20fd2046efbfec554040bda6d2daa3553172edd
in this patch
[AmitP: Updated calibration file path for AOSP, used sys_* for
file operations instead of ksys_* and removed tiload
and misc parts which makes no audible difference.]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I234d8af7e042e58138e231f9556d071f1d264561
Change-Id: I2be2763af9628be37583d4719a5d504de9b98a30
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
[sumits: updated for v5.11-rc2]
Diffstat (limited to 'sound/soc/codecs/tas2559-codec.h')
-rw-r--r-- | sound/soc/codecs/tas2559-codec.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas2559-codec.h b/sound/soc/codecs/tas2559-codec.h new file mode 100644 index 000000000000..17093a5f73e4 --- /dev/null +++ b/sound/soc/codecs/tas2559-codec.h @@ -0,0 +1,30 @@ +/* +** ============================================================================= +** Copyright (c) 2016 Texas Instruments Inc. +** +** This program is free software; you can redistribute it and/or modify it under +** the terms of the GNU General Public License as published by the Free Software +** Foundation; version 2. +** +** This program is distributed in the hope that it will be useful, but WITHOUT +** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +** FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +** +** File: +** tas2559-codec.h +** +** Description: +** header file for tas2559-codec.c +** +** ============================================================================= +*/ + +#ifndef _TAS2559_CODEC_H +#define _TAS2559_CODEC_H + +#include "tas2559.h" + +int tas2559_register_codec(struct tas2559_priv *pTAS2559); +int tas2559_deregister_codec(struct tas2559_priv *pTAS2559); + +#endif /* _TAS2559_CODEC_H */ |