#include <linux/module.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <linux/spi/spi.h>
#include <sound/asoundef.h>
Go to the source code of this file.
#define AK4104_CONTROL1_DIF0 (1 << 2) |
#define AK4104_CONTROL1_DIF1 (1 << 3) |
#define AK4104_CONTROL1_PW (1 << 1) |
#define AK4104_CONTROL1_RSTN (1 << 0) |
#define AK4104_CONTROL2_MODE (1 << 2) |
#define AK4104_CONTROL2_SEL0 (1 << 0) |
#define AK4104_CONTROL2_SEL1 (1 << 1) |
#define AK4104_NUM_REGS 10 |
#define AK4104_REG_CHN_STATUS |
( |
|
x | ) |
((x) + 0x04) |
#define AK4104_REG_CONTROL1 0x00 |
#define AK4104_REG_CONTROL2 0x02 |
#define AK4104_REG_MASK 0x1f |
#define AK4104_REG_RESERVED 0x01 |
#define AK4104_REG_TX 0x03 |
#define AK4104_RESERVED_VAL 0x5b |
#define AK4104_TX_TXE (1 << 0) |
#define AK4104_TX_V (1 << 1) |
#define AK4104_WRITE 0xe0 |
#define DRV_NAME "ak4104-codec" |
MODULE_DESCRIPTION |
( |
"Asahi Kasei AK4104 ALSA SoC driver" |
| ) |
|
module_spi_driver |
( |
ak4104_spi_driver |
| ) |
|