1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * ak4535.h -- AK4535 Soc Audio driver 2 * ak4535.h -- AK4535 Soc Audio driver 4 * 3 * 5 * Copyright 2005 Openedhand Ltd. 4 * Copyright 2005 Openedhand Ltd. 6 * 5 * 7 * Author: Richard Purdie <richard@openedhand. 6 * Author: Richard Purdie <richard@openedhand.com> 8 * 7 * 9 * Based on wm8753.h 8 * Based on wm8753.h >> 9 * >> 10 * This program is free software; you can redistribute it and/or modify >> 11 * it under the terms of the GNU General Public License version 2 as >> 12 * published by the Free Software Foundation. 10 */ 13 */ 11 14 12 #ifndef _AK4535_H 15 #ifndef _AK4535_H 13 #define _AK4535_H 16 #define _AK4535_H 14 17 15 /* AK4535 register space */ 18 /* AK4535 register space */ 16 19 17 #define AK4535_PM1 0x0 20 #define AK4535_PM1 0x0 18 #define AK4535_PM2 0x1 21 #define AK4535_PM2 0x1 19 #define AK4535_SIG1 0x2 22 #define AK4535_SIG1 0x2 20 #define AK4535_SIG2 0x3 23 #define AK4535_SIG2 0x3 21 #define AK4535_MODE1 0x4 24 #define AK4535_MODE1 0x4 22 #define AK4535_MODE2 0x5 25 #define AK4535_MODE2 0x5 23 #define AK4535_DAC 0x6 26 #define AK4535_DAC 0x6 24 #define AK4535_MIC 0x7 27 #define AK4535_MIC 0x7 25 #define AK4535_TIMER 0x8 28 #define AK4535_TIMER 0x8 26 #define AK4535_ALC1 0x9 29 #define AK4535_ALC1 0x9 27 #define AK4535_ALC2 0xa 30 #define AK4535_ALC2 0xa 28 #define AK4535_PGA 0xb 31 #define AK4535_PGA 0xb 29 #define AK4535_LATT 0xc 32 #define AK4535_LATT 0xc 30 #define AK4535_RATT 0xd 33 #define AK4535_RATT 0xd 31 #define AK4535_VOL 0xe 34 #define AK4535_VOL 0xe 32 #define AK4535_STATUS 0xf 35 #define AK4535_STATUS 0xf >> 36 >> 37 #define AK4535_CACHEREGNUM 0x10 >> 38 >> 39 struct ak4535_setup_data { >> 40 int i2c_bus; >> 41 unsigned short i2c_address; >> 42 }; >> 43 >> 44 extern struct snd_soc_dai ak4535_dai; >> 45 extern struct snd_soc_codec_device soc_codec_dev_ak4535; 33 46 34 #endif 47 #endif 35 48
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.