#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <plat/cpu.h>
#include "mcbsp.h"
Go to the source code of this file.
|
#define | MCBSP_READ(mcbsp, reg) omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 0) |
|
#define | MCBSP_WRITE(mcbsp, reg, val) omap_mcbsp_write(mcbsp, OMAP_MCBSP_REG_##reg, val) |
|
#define | MCBSP_READ_CACHE(mcbsp, reg) omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 1) |
|
#define | MCBSP_ST_READ(mcbsp, reg) omap_mcbsp_st_read(mcbsp, OMAP_ST_REG_##reg) |
|
#define | MCBSP_ST_WRITE(mcbsp, reg, val) omap_mcbsp_st_write(mcbsp, OMAP_ST_REG_##reg, val) |
|
#define | max_thres(m) (mcbsp->pdata->buffer_size) |
|
#define | valid_threshold(m, val) ((val) <= max_thres(m)) |
|
#define | THRESHOLD_PROP_BUILDER(prop) |
|
|
void | omap_mcbsp_config (struct omap_mcbsp *mcbsp, const struct omap_mcbsp_reg_cfg *config) |
|
int | omap_st_set_chgain (struct omap_mcbsp *mcbsp, int channel, s16 chgain) |
|
int | omap_st_get_chgain (struct omap_mcbsp *mcbsp, int channel, s16 *chgain) |
|
int | omap_st_enable (struct omap_mcbsp *mcbsp) |
|
int | omap_st_disable (struct omap_mcbsp *mcbsp) |
|
int | omap_st_is_enabled (struct omap_mcbsp *mcbsp) |
|
void | omap_mcbsp_set_tx_threshold (struct omap_mcbsp *mcbsp, u16 threshold) |
|
void | omap_mcbsp_set_rx_threshold (struct omap_mcbsp *mcbsp, u16 threshold) |
|
u16 | omap_mcbsp_get_tx_delay (struct omap_mcbsp *mcbsp) |
|
u16 | omap_mcbsp_get_rx_delay (struct omap_mcbsp *mcbsp) |
|
int | omap_mcbsp_request (struct omap_mcbsp *mcbsp) |
|
void | omap_mcbsp_free (struct omap_mcbsp *mcbsp) |
|
void | omap_mcbsp_start (struct omap_mcbsp *mcbsp, int tx, int rx) |
|
void | omap_mcbsp_stop (struct omap_mcbsp *mcbsp, int tx, int rx) |
|
int | omap2_mcbsp_set_clks_src (struct omap_mcbsp *mcbsp, u8 fck_src_id) |
|
| THRESHOLD_PROP_BUILDER (max_tx_thres) |
|
| THRESHOLD_PROP_BUILDER (max_rx_thres) |
|
int __devinit | omap_mcbsp_init (struct platform_device *pdev) |
|
void __devexit | omap_mcbsp_sysfs_remove (struct omap_mcbsp *mcbsp) |
|
#define MCBSP_READ |
( |
|
mcbsp, |
|
|
|
reg |
|
) |
| omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 0) |
#define MCBSP_READ_CACHE |
( |
|
mcbsp, |
|
|
|
reg |
|
) |
| omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 1) |
#define MCBSP_ST_READ |
( |
|
mcbsp, |
|
|
|
reg |
|
) |
| omap_mcbsp_st_read(mcbsp, OMAP_ST_REG_##reg) |
#define MCBSP_ST_WRITE |
( |
|
mcbsp, |
|
|
|
reg, |
|
|
|
val |
|
) |
| omap_mcbsp_st_write(mcbsp, OMAP_ST_REG_##reg, val) |
#define MCBSP_WRITE |
( |
|
mcbsp, |
|
|
|
reg, |
|
|
|
val |
|
) |
| omap_mcbsp_write(mcbsp, OMAP_MCBSP_REG_##reg, val) |
#define THRESHOLD_PROP_BUILDER |
( |
|
prop | ) |
|
Value:
\
} \
\
if (status) \
\
} \
\
static
DEVICE_ATTR(prop, 0644, prop##_show, prop##_store);
Definition at line 769 of file mcbsp.c.
THRESHOLD_PROP_BUILDER |
( |
max_tx_thres |
| ) |
|
THRESHOLD_PROP_BUILDER |
( |
max_rx_thres |
| ) |
|