#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <sound/soc.h>
Go to the source code of this file.
#define JZ4740_CODEC_1_ADC_ENABLE BIT(26) |
#define JZ4740_CODEC_1_ADC_ENABLE_OFFSET 26 |
#define JZ4740_CODEC_1_DAC_ENABLE BIT(24) |
#define JZ4740_CODEC_1_DAC_ENABLE_OFFSET 24 |
#define JZ4740_CODEC_1_HEADPHONE_AMP_CHANGE_ANY BIT(13) |
#define JZ4740_CODEC_1_HEADPHONE_CHARGE BIT(12) |
#define JZ4740_CODEC_1_HEADPHONE_DISABLE BIT(14) |
#define JZ4740_CODEC_1_HEADPHONE_DISABLE_OFFSET 14 |
#define JZ4740_CODEC_1_HEADPHONE_POWERDOWN BIT(8) |
#define JZ4740_CODEC_1_HEADPHONE_POWERDOWN_M BIT(9) |
#define JZ4740_CODEC_1_HEADPHONE_POWERDOWN_OFFSET 8 |
#define JZ4740_CODEC_1_HEADPHONE_PULLDOWN (BIT(11) | BIT(10)) |
#define JZ4740_CODEC_1_LINE_ENABLE BIT(29) |
#define JZ4740_CODEC_1_LINE_ENABLE_OFFSET 29 |
#define JZ4740_CODEC_1_MIC_ENABLE BIT(28) |
#define JZ4740_CODEC_1_MIC_ENABLE_OFFSET 28 |
#define JZ4740_CODEC_1_RESET BIT(0) |
#define JZ4740_CODEC_1_SUSPEND BIT(1) |
#define JZ4740_CODEC_1_SW1_ENABLE BIT(27) |
#define JZ4740_CODEC_1_SW1_ENABLE_OFFSET 27 |
#define JZ4740_CODEC_1_SW2_ENABLE BIT(25) |
#define JZ4740_CODEC_1_SW2_ENABLE_OFFSET 25 |
#define JZ4740_CODEC_1_VREF_AMP_DISABLE BIT(19) |
#define JZ4740_CODEC_1_VREF_DISABLE BIT(20) |
#define JZ4740_CODEC_1_VREF_HIGH_CURRENT BIT(16) |
#define JZ4740_CODEC_1_VREF_LOW_CURRENT BIT(17) |
#define JZ4740_CODEC_1_VREF_PULLDOWN BIT(18) |
#define JZ4740_CODEC_2_HEADPHONE_VOLUME_MASK 0x000003 |
#define JZ4740_CODEC_2_HEADPHONE_VOLUME_OFFSET 0 |
#define JZ4740_CODEC_2_INPUT_VOLUME_MASK 0x1f0000 |
#define JZ4740_CODEC_2_INPUT_VOLUME_OFFSET 16 |
#define JZ4740_CODEC_2_MIC_BOOST_GAIN_MASK 0x000030 |
#define JZ4740_CODEC_2_MIC_BOOST_GAIN_OFFSET 4 |
#define JZ4740_CODEC_2_SAMPLE_RATE_MASK 0x000f00 |
#define JZ4740_CODEC_2_SAMPLE_RATE_OFFSET 8 |
#define jz4740_codec_resume NULL |
#define jz4740_codec_suspend NULL |
#define JZ4740_REG_CODEC_1 0x0 |
#define JZ4740_REG_CODEC_2 0x1 |
MODULE_ALIAS |
( |
"platform:jz4740-codec" |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_platform_driver |
( |
jz4740_codec_driver |
| ) |
|