Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * max9850.h -- codec driver for max9850
4 *
5 * Copyright (C) 2011 taskit GmbH
6 * Author: Christian Glindkamp <christian.glindkamp@taskit.de>
7 */
8
9#ifndef _MAX9850_H
10#define _MAX9850_H
11
12#define MAX9850_STATUSA 0x00
13#define MAX9850_STATUSB 0x01
14#define MAX9850_VOLUME 0x02
15#define MAX9850_GENERAL_PURPOSE 0x03
16#define MAX9850_INTERRUPT 0x04
17#define MAX9850_ENABLE 0x05
18#define MAX9850_CLOCK 0x06
19#define MAX9850_CHARGE_PUMP 0x07
20#define MAX9850_LRCLK_MSB 0x08
21#define MAX9850_LRCLK_LSB 0x09
22#define MAX9850_DIGITAL_AUDIO 0x0a
23
24#define MAX9850_CACHEREGNUM 11
25
26/* MAX9850_DIGITAL_AUDIO */
27#define MAX9850_MASTER (1<<7)
28#define MAX9850_INV (1<<6)
29#define MAX9850_BCINV (1<<5)
30#define MAX9850_DLY (1<<3)
31#define MAX9850_RTJ (1<<2)
32
33#endif
1/*
2 * max9850.h -- codec driver for max9850
3 *
4 * Copyright (C) 2011 taskit GmbH
5 * Author: Christian Glindkamp <christian.glindkamp@taskit.de>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 */
13
14#ifndef _MAX9850_H
15#define _MAX9850_H
16
17#define MAX9850_STATUSA 0x00
18#define MAX9850_STATUSB 0x01
19#define MAX9850_VOLUME 0x02
20#define MAX9850_GENERAL_PURPOSE 0x03
21#define MAX9850_INTERRUPT 0x04
22#define MAX9850_ENABLE 0x05
23#define MAX9850_CLOCK 0x06
24#define MAX9850_CHARGE_PUMP 0x07
25#define MAX9850_LRCLK_MSB 0x08
26#define MAX9850_LRCLK_LSB 0x09
27#define MAX9850_DIGITAL_AUDIO 0x0a
28
29#define MAX9850_CACHEREGNUM 11
30
31/* MAX9850_DIGITAL_AUDIO */
32#define MAX9850_MASTER (1<<7)
33#define MAX9850_INV (1<<6)
34#define MAX9850_BCINV (1<<5)
35#define MAX9850_DLY (1<<3)
36#define MAX9850_RTJ (1<<2)
37
38#endif