Searched refs:mcbsp (Results 1 – 4 of 4) sorted by relevance
/sound/soc/omap/ |
D | mcbsp.c | 33 static void omap_mcbsp_write(struct omap_mcbsp *mcbsp, u16 reg, u32 val) in omap_mcbsp_write() argument 35 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_write() 37 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_write() 38 ((u16 *)mcbsp->reg_cache)[reg] = (u16)val; in omap_mcbsp_write() 41 ((u32 *)mcbsp->reg_cache)[reg] = val; in omap_mcbsp_write() 46 static int omap_mcbsp_read(struct omap_mcbsp *mcbsp, u16 reg, bool from_cache) in omap_mcbsp_read() argument 48 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_read() 50 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_read() 52 ((u16 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read() 55 ((u32 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read() [all …]
|
D | omap-mcbsp.c | 71 struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); in omap_mcbsp_set_threshold() local 87 omap_mcbsp_set_tx_threshold(mcbsp, words); in omap_mcbsp_set_threshold() 89 omap_mcbsp_set_rx_threshold(mcbsp, words); in omap_mcbsp_set_threshold() 99 struct omap_mcbsp *mcbsp = rule->private; in omap_mcbsp_hwrule_min_buffersize() local 104 size = mcbsp->pdata->buffer_size; in omap_mcbsp_hwrule_min_buffersize() 114 struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); in omap_mcbsp_dai_startup() local 118 err = omap_mcbsp_request(mcbsp); in omap_mcbsp_dai_startup() 135 if (mcbsp->pdata->buffer_size) { in omap_mcbsp_dai_startup() 145 mcbsp, in omap_mcbsp_dai_startup() 159 struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); in omap_mcbsp_dai_shutdown() local [all …]
|
D | mcbsp.h | 329 void omap_mcbsp_config(struct omap_mcbsp *mcbsp, 331 void omap_mcbsp_set_tx_threshold(struct omap_mcbsp *mcbsp, u16 threshold); 332 void omap_mcbsp_set_rx_threshold(struct omap_mcbsp *mcbsp, u16 threshold); 333 u16 omap_mcbsp_get_tx_delay(struct omap_mcbsp *mcbsp); 334 u16 omap_mcbsp_get_rx_delay(struct omap_mcbsp *mcbsp); 335 int omap_mcbsp_get_dma_op_mode(struct omap_mcbsp *mcbsp); 336 int omap_mcbsp_request(struct omap_mcbsp *mcbsp); 337 void omap_mcbsp_free(struct omap_mcbsp *mcbsp); 338 void omap_mcbsp_start(struct omap_mcbsp *mcbsp, int tx, int rx); 339 void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int tx, int rx); [all …]
|
D | Makefile | 4 snd-soc-omap-mcbsp-objs := omap-mcbsp.o mcbsp.o 10 obj-$(CONFIG_SND_OMAP_SOC_MCBSP) += snd-soc-omap-mcbsp.o
|