• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/soc/omap/

Lines Matching refs:mcbsp_data

67 static struct omap_mcbsp_data mcbsp_data[NUM_LINKS];
157 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
159 int dma_op_mode = omap_mcbsp_get_dma_op_mode(mcbsp_data->bus_id);
175 (mcbsp_data->wlen / 8);
181 omap_mcbsp_set_tx_threshold(mcbsp_data->bus_id, words);
183 omap_mcbsp_set_rx_threshold(mcbsp_data->bus_id, words);
193 struct omap_mcbsp_data *mcbsp_data = rule->private;
198 size = omap_mcbsp_get_fifo_size(mcbsp_data->bus_id);
210 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
211 int bus_id = mcbsp_data->bus_id;
240 mcbsp_data,
256 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
259 omap_mcbsp_free(mcbsp_data->bus_id);
260 mcbsp_data->configured = 0;
269 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
276 mcbsp_data->active++;
277 omap_mcbsp_start(mcbsp_data->bus_id, play, !play);
283 omap_mcbsp_stop(mcbsp_data->bus_id, play, !play);
284 mcbsp_data->active--;
299 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
304 fifo_use = omap_mcbsp_get_tx_delay(mcbsp_data->bus_id);
306 fifo_use = omap_mcbsp_get_rx_delay(mcbsp_data->bus_id);
324 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
325 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
327 int dma, bus_id = mcbsp_data->bus_id;
371 mcbsp_data->bus_id);
374 mcbsp_data->bus_id);
415 if (mcbsp_data->configured) {
420 format = mcbsp_data->fmt & SND_SOC_DAIFMT_FORMAT_MASK;
458 master = mcbsp_data->fmt & SND_SOC_DAIFMT_MASTER_MASK;
460 div = mcbsp_data->clk_div ? mcbsp_data->clk_div : 1;
461 framesize = (mcbsp_data->in_freq / div) / params_rate(params);
485 omap_mcbsp_config(bus_id, &mcbsp_data->regs);
486 mcbsp_data->wlen = wlen;
487 mcbsp_data->configured = 1;
499 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
500 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
503 if (mcbsp_data->configured)
506 mcbsp_data->fmt = fmt;
599 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
600 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
605 mcbsp_data->clk_div = div;
611 static int omap_mcbsp_dai_set_clks_src(struct omap_mcbsp_data *mcbsp_data,
625 if (cpu_is_omap2420() && mcbsp_data->bus_id > 1)
631 switch (mcbsp_data->bus_id) {
664 static int omap_mcbsp_dai_set_rcvr_src(struct omap_mcbsp_data *mcbsp_data,
672 if (mcbsp_data->bus_id != 0)
702 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
703 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
706 mcbsp_data->in_freq = freq;
714 err = omap_mcbsp_dai_set_clks_src(mcbsp_data, clk_id);
727 err = omap_mcbsp_dai_set_rcvr_src(mcbsp_data, clk_id);
766 .private_data = &mcbsp_data[(link_id)].bus_id, \