/sound/soc/sh/rcar/ |
D | src.c | 17 struct rsnd_mod mod; member 25 container_of((_mod), struct rsnd_src, mod) 27 rsnd_dma_available(rsnd_mod_to_dma(&(src)->mod)) 226 static int rsnd_src_set_convert_rate(struct rsnd_mod *mod, in rsnd_src_set_convert_rate() argument 229 struct rsnd_dai_stream *io = rsnd_mod_to_io(mod); in rsnd_src_set_convert_rate() 231 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_set_convert_rate() 239 rsnd_mod_write(mod, SRC_SWRSR, 0); in rsnd_src_set_convert_rate() 240 rsnd_mod_write(mod, SRC_SWRSR, 1); in rsnd_src_set_convert_rate() 246 rsnd_mod_write(mod, SRC_SRCIR, 1); in rsnd_src_set_convert_rate() 249 rsnd_mod_write(mod, SRC_ADINR, rsnd_get_adinr(mod)); in rsnd_src_set_convert_rate() [all …]
|
D | ssi.c | 66 struct rsnd_mod mod; member 84 #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod) 88 rsnd_dma_available(rsnd_mod_to_dma(&(ssi)->mod)) 93 static int rsnd_ssi_use_busif(struct rsnd_mod *mod) in rsnd_ssi_use_busif() argument 95 struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod); in rsnd_ssi_use_busif() 96 struct rsnd_dai_stream *io = rsnd_mod_to_io(mod); in rsnd_ssi_use_busif() 107 static void rsnd_ssi_status_check(struct rsnd_mod *mod, in rsnd_ssi_status_check() argument 110 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_ssi_status_check() 116 status = rsnd_mod_read(mod, SSISR); in rsnd_ssi_status_check() 129 struct rsnd_priv *priv = rsnd_mod_to_priv(&ssi->mod); in rsnd_ssi_master_clk_start() [all …]
|
D | adg.c | 37 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_adg_ssi_ws_timing_gen2() local 38 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_adg_ssi_ws_timing_gen2() 39 int id = rsnd_mod_id(mod); in rsnd_adg_ssi_ws_timing_gen2() 61 struct rsnd_mod *mod, in rsnd_adg_set_cmd_timsel_gen2() argument 64 int id = rsnd_mod_id(mod); in rsnd_adg_set_cmd_timsel_gen2() 73 rsnd_mod_bset(mod, CMDOUT_TIMSEL, mask, val); in rsnd_adg_set_cmd_timsel_gen2() 79 struct rsnd_mod *mod, in rsnd_adg_set_src_timsel_gen2() argument 84 int id = rsnd_mod_id(mod); in rsnd_adg_set_src_timsel_gen2() 100 rsnd_mod_bset(mod, SRCIN_TIMSEL0, mask, in); in rsnd_adg_set_src_timsel_gen2() 101 rsnd_mod_bset(mod, SRCOUT_TIMSEL0, mask, out); in rsnd_adg_set_src_timsel_gen2() [all …]
|
D | rsnd.h | 149 u32 rsnd_read(struct rsnd_priv *priv, struct rsnd_mod *mod, enum rsnd_reg reg); 150 void rsnd_write(struct rsnd_priv *priv, struct rsnd_mod *mod, 152 void rsnd_bset(struct rsnd_priv *priv, struct rsnd_mod *mod, enum rsnd_reg reg, 154 u32 rsnd_get_adinr(struct rsnd_mod *mod); 187 char* (*dma_name)(struct rsnd_mod *mod); 188 int (*probe)(struct rsnd_mod *mod, 190 int (*remove)(struct rsnd_mod *mod, 192 int (*init)(struct rsnd_mod *mod, 194 int (*quit)(struct rsnd_mod *mod, 196 int (*start)(struct rsnd_mod *mod, [all …]
|
D | core.c | 133 char *rsnd_mod_name(struct rsnd_mod *mod) in rsnd_mod_name() argument 135 if (!mod || !mod->ops) in rsnd_mod_name() 138 return mod->ops->name; in rsnd_mod_name() 141 char *rsnd_mod_dma_name(struct rsnd_mod *mod) in rsnd_mod_dma_name() argument 143 if (!mod || !mod->ops) in rsnd_mod_dma_name() 146 if (!mod->ops->dma_name) in rsnd_mod_dma_name() 147 return mod->ops->name; in rsnd_mod_dma_name() 149 return mod->ops->dma_name(mod); in rsnd_mod_dma_name() 153 struct rsnd_mod *mod, in rsnd_mod_init() argument 158 mod->priv = priv; in rsnd_mod_init() [all …]
|
D | dvc.c | 21 struct rsnd_mod mod; member 28 container_of((_mod), struct rsnd_dvc, mod) 36 static void rsnd_dvc_volume_update(struct rsnd_mod *mod) in rsnd_dvc_volume_update() argument 38 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_update() 49 rsnd_mod_write(mod, DVC_VOL0R, vol[0]); in rsnd_dvc_volume_update() 50 rsnd_mod_write(mod, DVC_VOL1R, vol[1]); in rsnd_dvc_volume_update() 52 rsnd_mod_write(mod, DVC_ZCMCR, mute); in rsnd_dvc_volume_update() 55 static int rsnd_dvc_probe_gen2(struct rsnd_mod *mod, in rsnd_dvc_probe_gen2() argument 58 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_dvc_probe_gen2() 61 dev_dbg(dev, "%s (Gen2) is probed\n", rsnd_mod_name(mod)); in rsnd_dvc_probe_gen2() [all …]
|
D | gen.c | 61 struct rsnd_mod *mod, enum rsnd_reg reg) in rsnd_read() argument 70 regmap_fields_read(gen->regs[reg], rsnd_mod_id(mod), &val); in rsnd_read() 72 dev_dbg(dev, "r %s - 0x%04d : %08x\n", rsnd_mod_name(mod), reg, val); in rsnd_read() 78 struct rsnd_mod *mod, in rsnd_write() argument 87 regmap_fields_write(gen->regs[reg], rsnd_mod_id(mod), data); in rsnd_write() 89 dev_dbg(dev, "w %s - 0x%04d : %08x\n", rsnd_mod_name(mod), reg, data); in rsnd_write() 92 void rsnd_bset(struct rsnd_priv *priv, struct rsnd_mod *mod, in rsnd_bset() argument 101 regmap_fields_update_bits(gen->regs[reg], rsnd_mod_id(mod), in rsnd_bset() 105 rsnd_mod_name(mod), reg, data, mask); in rsnd_bset() 200 struct rsnd_mod *mod, in rsnd_gen2_dma_addr() argument [all …]
|
/sound/soc/samsung/ |
D | i2s.c | 221 u32 mod = readl(i2s->addr + I2SMOD); in set_rfs() local 228 mod &= ~(MOD_RCLK_MASK << rfs_shift); in set_rfs() 232 mod |= (MOD_RCLK_768FS << rfs_shift); in set_rfs() 235 mod |= (MOD_RCLK_512FS << rfs_shift); in set_rfs() 238 mod |= (MOD_RCLK_384FS << rfs_shift); in set_rfs() 241 mod |= (MOD_RCLK_256FS << rfs_shift); in set_rfs() 245 writel(mod, i2s->addr + I2SMOD); in set_rfs() 277 u32 mod = readl(i2s->addr + I2SMOD); in set_bfs() local 283 mod &= ~(EXYNOS5420_MOD_BCLK_MASK << bfs_shift); in set_bfs() 286 mod &= ~(MOD_BCLK_MASK << bfs_shift); in set_bfs() [all …]
|
D | s3c-i2s-v2.c | 81 u32 fic, con, mod; in s3c2412_snd_txctrl() local 87 mod = readl(regs + S3C2412_IISMOD); in s3c2412_snd_txctrl() 89 pr_debug("%s: IIS: CON=%x MOD=%x FIC=%x\n", __func__, con, mod, fic); in s3c2412_snd_txctrl() 96 switch (mod & S3C2412_IISMOD_MODE_MASK) { in s3c2412_snd_txctrl() 103 mod &= ~S3C2412_IISMOD_MODE_MASK; in s3c2412_snd_txctrl() 104 mod |= S3C2412_IISMOD_MODE_TXRX; in s3c2412_snd_txctrl() 109 mod & S3C2412_IISMOD_MODE_MASK); in s3c2412_snd_txctrl() 114 writel(mod, regs + S3C2412_IISMOD); in s3c2412_snd_txctrl() 125 switch (mod & S3C2412_IISMOD_MODE_MASK) { in s3c2412_snd_txctrl() 127 mod &= ~S3C2412_IISMOD_MODE_MASK; in s3c2412_snd_txctrl() [all …]
|
D | idma.c | 152 u32 mod = readl(idma.regs + I2SMOD); in idma_hw_params() local 156 mod |= MOD_TXS_IDMA; in idma_hw_params() 158 writel(mod, idma.regs + I2SMOD); in idma_hw_params()
|
/sound/mips/ |
D | hal2.c | 81 unsigned short mod; /* MOD value */ member 325 unsigned short mod; in hal2_compute_rate() local 328 mod = 4 * 44100 / rate; in hal2_compute_rate() 331 mod = 4 * 48000 / rate; in hal2_compute_rate() 336 codec->mod = mod; in hal2_compute_rate() 337 rate = 4 * codec->master / mod; in hal2_compute_rate() 346 int mod = hal2->dac.mod; in hal2_set_dac_rate() local 350 ((0xffff & (inc - mod - 1)) << 16) | inc); in hal2_set_dac_rate() 357 int mod = hal2->adc.mod; in hal2_set_adc_rate() local 361 ((0xffff & (inc - mod - 1)) << 16) | inc); in hal2_set_adc_rate()
|
/sound/soc/intel/ |
D | sst-haswell-dsp.c | 88 struct sst_module *mod; in hsw_parse_module() local 120 mod = sst_module_new(fw, &template, NULL); in hsw_parse_module() 121 if (mod == NULL) in hsw_parse_module() 131 sst_module_free(mod); in hsw_parse_module() 150 sst_module_free(mod); in hsw_parse_module() 164 sst_module_insert_fixed_block(mod, &block_data); in hsw_parse_module()
|
D | sst-baytrail-dsp.c | 69 struct sst_module *mod; in sst_byt_parse_module() local 82 mod = sst_module_new(fw, &template, NULL); in sst_byt_parse_module() 83 if (mod == NULL) in sst_byt_parse_module() 121 sst_module_insert_fixed_block(mod, &block_data); in sst_byt_parse_module()
|
/sound/aoa/core/ |
D | alsa.c | 17 int aoa_alsa_init(char *name, struct module *mod, struct device *dev) in aoa_alsa_init() argument 26 err = snd_card_new(dev, index, name, mod, sizeof(struct aoa_card), in aoa_alsa_init()
|
D | alsa.h | 13 extern int aoa_alsa_init(char *name, struct module *mod, struct device *dev);
|
/sound/core/ |
D | hwdep.c | 165 struct module *mod = hw->card->module; in snd_hwdep_release() local 176 module_put(mod); in snd_hwdep_release()
|