#include <linux/module.h>
#include <linux/device.h>
#include <linux/mfd/mc13xxx.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/soc-dapm.h>
#include "mc13783.h"
Go to the source code of this file.
#define AUDIO_BCL_INV (1 << 3) |
#define AUDIO_C_CLK_EN (1 << 12) |
#define AUDIO_C_EN (1 << 11) |
#define AUDIO_C_RESET (1 << 15) |
#define AUDIO_CFS |
( |
|
x | ) |
(((x) & 0x3) << 5) |
#define AUDIO_CFS_INV (1 << 4) |
#define AUDIO_CLK |
( |
|
x | ) |
(((x) & 0x7) << 7) |
#define AUDIO_CLK_SEL (1 << 1) |
#define AUDIO_CODEC_CDCFS8K16K (1 << 10) |
#define AUDIO_CSM (1 << 2) |
#define AUDIO_DAC_CFS_DLY_B (1 << 10) |
#define AUDIO_RX0_ADDCDC (1 << 21) |
#define AUDIO_RX0_ADDRXIN (1 << 23) |
#define AUDIO_RX0_ADDSTDC (1 << 22) |
#define AUDIO_RX0_ALSPEN (1 << 5) |
#define AUDIO_RX0_ALSPSEL (1 << 7) |
#define AUDIO_RX1_ARXINEN (1 << 10) |
#define AUDIO_RX1_PGARXEN (1 << 0); |
#define AUDIO_RX1_PGASTEN (1 << 5) |
#define AUDIO_SSI_SEL (1 << 0) |
#define AUDIO_TX_AMC1LEN (1 << 7) |
#define AUDIO_TX_AMC1REN (1 << 5) |
#define AUDIO_TX_AMC2EN (1 << 9) |
#define AUDIO_TX_ATXINEN (1 << 11) |
#define AUDIO_TX_RXINREC (1 << 13) |
#define MC13783_AUDIO_CODEC 40 |
#define MC13783_AUDIO_DAC 41 |
#define MC13783_AUDIO_RX0 36 |
#define MC13783_AUDIO_RX1 37 |
#define MC13783_AUDIO_TX 38 |
#define MC13783_SSI_NETWORK 39 |
#define SSI_NETWORK_CDCFSDLY |
( |
|
x | ) |
(1 << 11) |
#define SSI_NETWORK_CDCRXSECGAIN |
( |
|
x | ) |
(((x) & 0x3) << 8) |
#define SSI_NETWORK_CDCRXSECSLOT |
( |
|
x | ) |
(((x) & 0x3) << 6) |
#define SSI_NETWORK_CDCSUMGAIN |
( |
|
x | ) |
(1 << 10) |
#define SSI_NETWORK_CDCTXRXSLOT |
( |
|
x | ) |
(((x) & 0x3) << 2) |
#define SSI_NETWORK_CDCTXSECSLOT |
( |
|
x | ) |
(((x) & 0x3) << 4) |
#define SSI_NETWORK_DAC_RXSLOT_0_1 (0 << 14) |
#define SSI_NETWORK_DAC_RXSLOT_2_3 (1 << 14) |
#define SSI_NETWORK_DAC_RXSLOT_4_5 (2 << 14) |
#define SSI_NETWORK_DAC_RXSLOT_6_7 (3 << 14) |
#define SSI_NETWORK_DAC_RXSLOT_MASK (3 << 14) |
#define SSI_NETWORK_DAC_SLOT_MASK (3 << 12) |
#define SSI_NETWORK_DAC_SLOTS_2 (3 << 12) |
#define SSI_NETWORK_DAC_SLOTS_4 (2 << 12) |
#define SSI_NETWORK_DAC_SLOTS_8 (1 << 12) |
#define SSI_NETWORK_STDCRXSECGAIN |
( |
|
x | ) |
(((x) & 0x3) << 18) |
#define SSI_NETWORK_STDCRXSECSLOT |
( |
|
x | ) |
(((x) & 0x3) << 16) |
#define SSI_NETWORK_STDCSUMGAIN (1 << 20) |
MODULE_AUTHOR |
( |
"Sascha |
Hauer, |
|
|
Pengutronix< s.hauer @pengutronix.de >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"ASoC MC13783 driver" |
| ) |
|
module_platform_driver |
( |
mc13783_codec_driver |
| ) |
|