2008-06-23 07:51:28 -06:00
|
|
|
/*
|
|
|
|
* ak4535.h -- AK4535 Soc Audio driver
|
|
|
|
*
|
|
|
|
* Copyright 2005 Openedhand Ltd.
|
|
|
|
*
|
|
|
|
* Author: Richard Purdie <richard@openedhand.com>
|
|
|
|
*
|
|
|
|
* Based on wm8753.h
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _AK4535_H
|
|
|
|
#define _AK4535_H
|
|
|
|
|
|
|
|
/* AK4535 register space */
|
|
|
|
|
|
|
|
#define AK4535_PM1 0x0
|
|
|
|
#define AK4535_PM2 0x1
|
|
|
|
#define AK4535_SIG1 0x2
|
|
|
|
#define AK4535_SIG2 0x3
|
|
|
|
#define AK4535_MODE1 0x4
|
|
|
|
#define AK4535_MODE2 0x5
|
|
|
|
#define AK4535_DAC 0x6
|
|
|
|
#define AK4535_MIC 0x7
|
|
|
|
#define AK4535_TIMER 0x8
|
|
|
|
#define AK4535_ALC1 0x9
|
|
|
|
#define AK4535_ALC2 0xa
|
|
|
|
#define AK4535_PGA 0xb
|
|
|
|
#define AK4535_LATT 0xc
|
|
|
|
#define AK4535_RATT 0xd
|
|
|
|
#define AK4535_VOL 0xe
|
|
|
|
#define AK4535_STATUS 0xf
|
|
|
|
|
|
|
|
#define AK4535_CACHEREGNUM 0x10
|
|
|
|
|
|
|
|
struct ak4535_setup_data {
|
2008-09-01 11:46:59 -06:00
|
|
|
int i2c_bus;
|
2008-06-23 07:51:28 -06:00
|
|
|
unsigned short i2c_address;
|
|
|
|
};
|
|
|
|
|
2008-07-07 09:07:52 -06:00
|
|
|
extern struct snd_soc_dai ak4535_dai;
|
2008-06-23 07:51:28 -06:00
|
|
|
extern struct snd_soc_codec_device soc_codec_dev_ak4535;
|
|
|
|
|
|
|
|
#endif
|