1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * max9877.h -- amp driver for max9877 3 * max9877.h -- amp driver for max9877 4 * 4 * 5 * Copyright (C) 2009 Samsung Electronics Co.L 5 * Copyright (C) 2009 Samsung Electronics Co.Ltd 6 * Author: Joonyoung Shim <jy0922.shim@samsung 6 * Author: Joonyoung Shim <jy0922.shim@samsung.com> 7 */ 7 */ 8 8 9 #ifndef _MAX9877_H 9 #ifndef _MAX9877_H 10 #define _MAX9877_H 10 #define _MAX9877_H 11 11 12 #define MAX9877_INPUT_MODE 0x00 12 #define MAX9877_INPUT_MODE 0x00 13 #define MAX9877_SPK_VOLUME 0x01 13 #define MAX9877_SPK_VOLUME 0x01 14 #define MAX9877_HPL_VOLUME 0x02 14 #define MAX9877_HPL_VOLUME 0x02 15 #define MAX9877_HPR_VOLUME 0x03 15 #define MAX9877_HPR_VOLUME 0x03 16 #define MAX9877_OUTPUT_MODE 0x04 16 #define MAX9877_OUTPUT_MODE 0x04 17 17 18 /* MAX9877_INPUT_MODE */ 18 /* MAX9877_INPUT_MODE */ 19 #define MAX9877_INB (1 << 19 #define MAX9877_INB (1 << 4) 20 #define MAX9877_INA (1 << 20 #define MAX9877_INA (1 << 5) 21 #define MAX9877_ZCD (1 << 21 #define MAX9877_ZCD (1 << 6) 22 22 23 /* MAX9877_OUTPUT_MODE */ 23 /* MAX9877_OUTPUT_MODE */ 24 #define MAX9877_OUTMODE_MASK (15 << 24 #define MAX9877_OUTMODE_MASK (15 << 0) 25 #define MAX9877_OSC_MASK (3 << 25 #define MAX9877_OSC_MASK (3 << 4) 26 #define MAX9877_OSC_OFFSET 4 26 #define MAX9877_OSC_OFFSET 4 27 #define MAX9877_BYPASS (1 << 27 #define MAX9877_BYPASS (1 << 6) 28 #define MAX9877_SHDN (1 << 28 #define MAX9877_SHDN (1 << 7) 29 29 30 #endif 30 #endif 31 31
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.