#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/suspend.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <asm/mach-au1x00/au1000.h>
#include "psc.h"
Go to the source code of this file.
#define AC97_CMDRESP 0x0c |
#define AC97_RW_RETRIES 5 |
#define ac97_to_ctx |
( |
|
x | ) |
ac97c_workdata |
#define AU1XPSCAC97_PMOPS NULL |
#define CFG_RC |
( |
|
x | ) |
(((x) & 0x3ff) << 13) /* valid rx slots mask */ |
#define CFG_RS (1 << 0) /* acrst# control */ |
#define CFG_SG (1 << 2) /* sync gate */ |
#define CFG_XS |
( |
|
x | ) |
(((x) & 0x3ff) << 3) /* valid tx slots mask */ |
#define CMD_GET_DATA |
( |
|
x | ) |
((x) & 0xffff) |
#define CMD_IDX |
( |
|
x | ) |
((x) & 0x7f) |
#define CMD_READ (1 << 7) |
#define CMD_SET_DATA |
( |
|
x | ) |
(((x) & 0xffff) << 16) |
#define CMD_WRITE (0 << 7) |
#define EN_D (1 << 1) /* DISable bit */ |
#define STAT_CP (1 << 6) /* command pending */ |
#define STAT_RU (1 << 9) /* rx underflow */ |
#define STAT_XU (1 << 11) /* tx underflow */ |
MODULE_AUTHOR |
( |
"Manuel Lauss" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Au1000/1500/1100 AC97C ASoC driver" |
| ) |
|
module_exit |
( |
au1xac97c_unload |
| ) |
|
module_init |
( |
au1xac97c_load |
| ) |
|
Initial value:= {
.read = au1xac97c_ac97_read,
.write = au1xac97c_ac97_write,
.reset = au1xac97c_ac97_cold_reset,
.warm_reset = au1xac97c_ac97_warm_reset,
}
Definition at line 182 of file ac97c.c.