diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2020-04-13 18:54:23 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2020-04-13 21:51:32 +0200 |
commit | 5f76c571ec23cad3c9f79d634141293eae080643 (patch) | |
tree | 941af0cc25836dc3063631855ca7776ea21cae31 /tas5825m-module/tas5825m.h | |
parent | e7101511824d54e836f4b6ccee630aef118a1ade (diff) | |
download | rpi-amp-5f76c571ec23cad3c9f79d634141293eae080643.tar.gz |
Add preliminary kernel module
Diffstat (limited to 'tas5825m-module/tas5825m.h')
-rw-r--r-- | tas5825m-module/tas5825m.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tas5825m-module/tas5825m.h b/tas5825m-module/tas5825m.h new file mode 100644 index 0000000..11605d0 --- /dev/null +++ b/tas5825m-module/tas5825m.h @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * tas5825.h - ALSA SoC Texas Instruments TAS5825M Audio Amplifier + * + * Copyright (C) 2020 Aurelien Jarno <aurelien@aurel32.net> + * + * Author: Aurelien Jarno <aurelien@aurel32.net> + */ + +#ifndef __TAS5825M_H__ +#define __TAS5825M_H__ + +#define TAS5825M_RATES (SNDRV_PCM_RATE_48000 | \ + SNDRV_PCM_RATE_96000 | \ + SNDRV_PCM_RATE_192000) +#define TAS5825M_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ + SNDRV_PCM_FMTBIT_S24_LE | \ + SNDRV_PCM_FMTBIT_S32_LE) + +/* Register Address Map */ +#define TAS5825M_RESET_CTRL 0x00 + +#endif /* __TAS5825M_H__ */ + |