Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 96) sorted by relevance

1234

/sound/usb/
A Dmixer_maps.c505 .map = extigy_map,
509 .map = mp3plus_map,
513 .map = audigy2nx_map,
518 .map = live24ext_map,
522 .map = audigy2nx_map,
546 .map = linex_map,
550 .map = maya44_map,
554 .map = justlink_map,
566 .map = mbox1_map,
574 .map = ebox44_map,
[all …]
A Dstream.c361 unsigned char map; in convert_chmap_v3() local
377 map = SNDRV_CHMAP_FL; in convert_chmap_v3()
382 map = SNDRV_CHMAP_FR; in convert_chmap_v3()
385 map = SNDRV_CHMAP_FC; in convert_chmap_v3()
394 map = SNDRV_CHMAP_SL; in convert_chmap_v3()
397 map = SNDRV_CHMAP_SR; in convert_chmap_v3()
400 map = SNDRV_CHMAP_RL; in convert_chmap_v3()
403 map = SNDRV_CHMAP_RR; in convert_chmap_v3()
406 map = SNDRV_CHMAP_RC; in convert_chmap_v3()
415 map = SNDRV_CHMAP_TC; in convert_chmap_v3()
[all …]
A Dproc.c139 const struct snd_pcm_chmap_elem *map = fp->chmap; in proc_dump_substream_formats() local
143 for (c = 0; c < map->channels; c++) { in proc_dump_substream_formats()
144 if (map->map[c] >= ARRAY_SIZE(channel_labels) || in proc_dump_substream_formats()
145 !channel_labels[map->map[c]]) in proc_dump_substream_formats()
149 channel_labels[map->map[c]]); in proc_dump_substream_formats()
/sound/soc/uniphier/
A Daio-core.c206 MAPCTR0_EN | sub->swm->rb.map); in aio_init()
208 MAPCTR0_EN | sub->swm->ch.map); in aio_init()
228 MAPCTR0_EN | sub->swm->oif.map); in aio_init()
232 MAPCTR0_EN | sub->swm->och.map); in aio_init()
234 MAPCTR0_EN | sub->swm->iif.map); in aio_init()
681 sub->swm->oif.map); in aio_port_set_enable()
745 int oport_map = sub->swm->oport.map; in aio_port_set_volume()
1025 v | BIT(sub->swm->och.map)); in aio_srcch_set_enable()
1057 BIT(sub->swm->rb.map), in aiodma_ch_set_enable()
1058 BIT(sub->swm->rb.map)); in aiodma_ch_set_enable()
[all …]
A Devea.c109 struct regmap *map = evea->regmap; in evea_set_power_state_on() local
111 regmap_update_bits(map, AANAPOW, AANAPOW_A_POWD, in evea_set_power_state_on()
127 struct regmap *map = evea->regmap; in evea_set_power_state_off() local
132 regmap_update_bits(map, ADACSEQ1(0), ADACSEQ1_MMUTE, in evea_set_power_state_off()
146 struct regmap *map = evea->regmap; in evea_update_switch_lin() local
149 regmap_update_bits(map, ALINEPOW, in evea_update_switch_lin()
161 regmap_update_bits(map, ALINEPOW, in evea_update_switch_lin()
170 struct regmap *map = evea->regmap; in evea_update_switch_lo() local
178 regmap_update_bits(map, ALO2OUTPOW, in evea_update_switch_lo()
188 regmap_update_bits(map, ALO2OUTPOW, in evea_update_switch_lo()
[all …]
/sound/soc/meson/
A Daxg-spdifout.c60 struct regmap *map; member
68 regmap_update_bits(map, SPDIFOUT_CTRL0, in axg_spdifout_enable()
73 regmap_update_bits(map, SPDIFOUT_CTRL0, in axg_spdifout_enable()
97 axg_spdifout_enable(priv->map); in axg_spdifout_trigger()
103 axg_spdifout_disable(priv->map); in axg_spdifout_trigger()
202 regmap_write(priv->map, offset, 0); in axg_spdifout_set_chsts()
210 regmap_write(priv->map, offset, 0); in axg_spdifout_set_chsts()
259 axg_spdifout_disable(priv->map); in axg_spdifout_startup()
418 if (IS_ERR(priv->map)) { in axg_spdifout_probe()
420 PTR_ERR(priv->map)); in axg_spdifout_probe()
[all …]
A Daxg-pdm.c93 struct regmap *map; member
134 axg_pdm_enable(priv->map); in axg_pdm_trigger()
140 axg_pdm_disable(priv->map); in axg_pdm_trigger()
212 regmap_update_bits(priv->map, PDM_CTRL, in axg_pdm_set_channel_mask()
216 regmap_update_bits(priv->map, PDM_CTRL, in axg_pdm_set_channel_mask()
283 axg_pdm_filters_enable(priv->map, true); in axg_pdm_startup()
326 regmap_update_bits(priv->map, offset, in axg_pdm_set_lpf_ctrl()
402 axg_pdm_disable(priv->map); in axg_pdm_dai_probe()
608 if (IS_ERR(priv->map)) { in axg_pdm_probe()
610 PTR_ERR(priv->map)); in axg_pdm_probe()
[all …]
A Daxg-spdifin.c54 struct regmap *map; member
80 regmap_read(priv->map, SPDIFIN_STAT0, &stat); in axg_spdifin_get_rate()
101 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare()
107 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare()
109 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare()
178 regmap_update_bits(priv->map, SPDIFIN_CTRL1, in axg_spdifin_sample_mode_config()
183 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_sample_mode_config()
199 axg_spdifin_write_timer(priv->map, i, t); in axg_spdifin_sample_mode_config()
460 if (IS_ERR(priv->map)) { in axg_spdifin_probe()
462 PTR_ERR(priv->map)); in axg_spdifin_probe()
[all …]
A Daxg-fifo.c105 regmap_read(fifo->map, FIFO_STATUS2, &addr); in axg_fifo_pcm_pointer()
148 regmap_update_bits(fifo->map, FIFO_CTRL0, in axg_fifo_pcm_hw_params()
181 regmap_update_bits(fifo->map, FIFO_CTRL0, in axg_fifo_pcm_hw_free()
190 regmap_update_bits(fifo->map, FIFO_CTRL1, in axg_fifo_ack_irq()
195 regmap_update_bits(fifo->map, FIFO_CTRL1, in axg_fifo_ack_irq()
206 regmap_read(fifo->map, FIFO_STATUS1, &status); in axg_fifo_pcm_irq_block()
260 regmap_update_bits(fifo->map, FIFO_CTRL1, in axg_fifo_pcm_open()
268 regmap_update_bits(fifo->map, FIFO_CTRL0, in axg_fifo_pcm_open()
351 if (IS_ERR(fifo->map)) { in axg_fifo_probe()
353 PTR_ERR(fifo->map)); in axg_fifo_probe()
[all …]
A Daxg-tdmin.c89 static void axg_tdmin_enable(struct regmap *map) in axg_tdmin_enable() argument
92 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable()
96 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable()
98 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable()
102 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable()
106 static void axg_tdmin_disable(struct regmap *map) in axg_tdmin_disable() argument
108 regmap_update_bits(map, TDMIN_CTRL, TDMIN_CTRL_ENABLE, 0); in axg_tdmin_disable()
111 static int axg_tdmin_prepare(struct regmap *map, in axg_tdmin_prepare() argument
156 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_prepare()
162 regmap_write(map, TDMIN_SWAP, 0x76543210); in axg_tdmin_prepare()
[all …]
A Daxg-tdmout.c87 static void axg_tdmout_enable(struct regmap *map) in axg_tdmout_enable() argument
90 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable()
94 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable()
96 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable()
100 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable()
104 static void axg_tdmout_disable(struct regmap *map) in axg_tdmout_disable() argument
106 regmap_update_bits(map, TDMOUT_CTRL0, TDMOUT_CTRL0_ENABLE, 0); in axg_tdmout_disable()
109 static int axg_tdmout_prepare(struct regmap *map, in axg_tdmout_prepare() argument
140 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_prepare()
172 regmap_update_bits(map, TDMOUT_CTRL1, in axg_tdmout_prepare()
[all …]
A Daxg-tdm-formatter.c26 struct regmap *map; member
29 int axg_tdm_formatter_set_channel_masks(struct regmap *map, in axg_tdm_formatter_set_channel_masks() argument
72 regmap_write(map, offset, val[i]); in axg_tdm_formatter_set_channel_masks()
73 offset += regmap_get_reg_stride(map); in axg_tdm_formatter_set_channel_masks()
119 ret = formatter->drv->ops->prepare(formatter->map, in axg_tdm_formatter_enable()
137 formatter->drv->ops->enable(formatter->map); in axg_tdm_formatter_enable()
149 formatter->drv->ops->disable(formatter->map); in axg_tdm_formatter_disable()
285 formatter->map = devm_regmap_init_mmio(dev, regs, drv->regmap_cfg); in axg_tdm_formatter_probe()
286 if (IS_ERR(formatter->map)) { in axg_tdm_formatter_probe()
288 PTR_ERR(formatter->map)); in axg_tdm_formatter_probe()
[all …]
A Daxg-tdm-formatter.h23 void (*enable)(struct regmap *map);
24 void (*disable)(struct regmap *map);
25 int (*prepare)(struct regmap *map,
37 int axg_tdm_formatter_set_channel_masks(struct regmap *map,
/sound/soc/codecs/
A Drt-sdw-common.c31 int rt_sdca_index_write(struct regmap *map, unsigned int nid, in rt_sdca_index_write() argument
37 ret = regmap_write(map, addr, value); in rt_sdca_index_write()
57 int rt_sdca_index_read(struct regmap *map, unsigned int nid, in rt_sdca_index_read() argument
63 ret = regmap_read(map, addr, value); in rt_sdca_index_read()
85 int rt_sdca_index_update_bits(struct regmap *map, in rt_sdca_index_update_bits() argument
91 ret = rt_sdca_index_read(map, nid, reg, &tmp); in rt_sdca_index_update_bits()
96 return rt_sdca_index_write(map, nid, reg, tmp); in rt_sdca_index_update_bits()
199 ret = regmap_read(map, SDW_SDCA_CTL(SDCA_NUM_HID, entity_id, in rt_sdca_button_detect()
209 ret = regmap_read(map, SDW_SDCA_CTL(SDCA_NUM_HID, entity_id, in rt_sdca_button_detect()
215 ret = regmap_read(map, hid_buf_addr + offset + idx, &val); in rt_sdca_button_detect()
[all …]
A Dmax98504.c126 struct regmap *map = max98504->regmap; in max98504_component_probe() local
133 regmap_write(map, MAX98504_SOFTWARE_RESET, 0x1); in max98504_component_probe()
141 regmap_write(map, MAX98504_PVDD_BROWNOUT_CONFIG_1, in max98504_component_probe()
145 regmap_write(map, MAX98504_PVDD_BROWNOUT_CONFIG_2, in max98504_component_probe()
148 regmap_write(map, MAX98504_PVDD_BROWNOUT_CONFIG_3, in max98504_component_probe()
151 regmap_write(map, MAX98504_PVDD_BROWNOUT_CONFIG_4, in max98504_component_probe()
204 struct regmap *map = max98504->regmap; in max98504_set_tdm_slot() local
209 regmap_write(map, MAX98504_PCM_TX_ENABLE, tx_mask); in max98504_set_tdm_slot()
214 regmap_write(map, MAX98504_PDM_TX_ENABLE, tx_mask); in max98504_set_tdm_slot()
229 struct regmap *map = max98504->regmap; in max98504_set_channel_map() local
[all …]
A Dadau7118-i2c.c53 struct regmap *map; in adau7118_probe_i2c() local
55 map = devm_regmap_init_i2c(i2c, &adau7118_regmap_config); in adau7118_probe_i2c()
56 if (IS_ERR(map)) { in adau7118_probe_i2c()
57 dev_err(&i2c->dev, "Failed to init regmap %ld\n", PTR_ERR(map)); in adau7118_probe_i2c()
58 return PTR_ERR(map); in adau7118_probe_i2c()
61 return adau7118_probe(&i2c->dev, map, false); in adau7118_probe_i2c()
A Dhdmi-codec.c61 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
68 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
70 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_LFE,
73 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_NA,
79 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_NA,
85 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_NA,
91 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_NA,
97 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR, SNDRV_CHMAP_NA,
384 unsigned const char *map; in hdmi_codec_chmap_ctl_get() local
390 map = info->chmap[hcp->chmap_idx].map; in hdmi_codec_chmap_ctl_get()
[all …]
A Dtas2781-comlib.c28 struct regmap *map = tas_priv->regmap; in tasdevice_dev_read() local
35 ret = regmap_read(map, TASDEVICE_PGRG(reg), val); in tasdevice_dev_read()
56 struct regmap *map = tas_priv->regmap; in tasdevice_dev_bulk_read() local
63 ret = regmap_bulk_read(map, TASDEVICE_PGRG(reg), data, len); in tasdevice_dev_bulk_read()
81 struct regmap *map = tas_priv->regmap; in tasdevice_dev_write() local
88 ret = regmap_write(map, TASDEVICE_PGRG(reg), in tasdevice_dev_write()
111 struct regmap *map = tas_priv->regmap; in tasdevice_dev_bulk_write() local
118 ret = regmap_bulk_write(map, TASDEVICE_PGRG(reg), in tasdevice_dev_bulk_write()
A Drt-sdw-common.h55 int rt_sdca_index_write(struct regmap *map, unsigned int nid,
57 int rt_sdca_index_read(struct regmap *map, unsigned int nid,
59 int rt_sdca_index_update_bits(struct regmap *map,
62 int rt_sdca_headset_detect(struct regmap *map, unsigned int entity_id);
63 int rt_sdca_button_detect(struct regmap *map, unsigned int entity_id,
A Djz4725b.c268 struct regmap *map = icdc->regmap; in jz4725b_out_stage_enable() local
273 return regmap_clear_bits(map, JZ4725B_CODEC_REG_IFR, in jz4725b_out_stage_enable()
280 return regmap_clear_bits(map, JZ4725B_CODEC_REG_IFR, in jz4725b_out_stage_enable()
377 struct regmap *map = icdc->regmap; in jz4725b_codec_set_bias_level() local
381 regmap_clear_bits(map, JZ4725B_CODEC_REG_PMR2, in jz4725b_codec_set_bias_level()
386 regmap_clear_bits(map, JZ4725B_CODEC_REG_PMR2, in jz4725b_codec_set_bias_level()
391 regmap_set_bits(map, JZ4725B_CODEC_REG_PMR2, in jz4725b_codec_set_bias_level()
395 regmap_set_bits(map, JZ4725B_CODEC_REG_PMR2, in jz4725b_codec_set_bias_level()
406 struct regmap *map = icdc->regmap; in jz4725b_codec_dev_probe() local
413 regmap_write(map, JZ4725B_CODEC_REG_AICR, in jz4725b_codec_dev_probe()
[all …]
A Dadau7118.c36 struct regmap *map; member
365 regcache_cache_only(st->map, false); in adau7118_set_bias_level()
384 regcache_mark_dirty(st->map); in adau7118_set_bias_level()
385 regcache_cache_only(st->map, true); in adau7118_set_bias_level()
409 snd_soc_component_init_regmap(component, st->map); in adau7118_component_probe()
472 regcache_mark_dirty(st->map); in adau7118_regulator_setup()
473 regcache_cache_only(st->map, true); in adau7118_regulator_setup()
507 ret = regmap_update_bits(st->map, in adau7118_parset_dt()
523 ret = regmap_update_bits(st->map, in adau7118_parset_dt()
547 st->map = map; in adau7118_probe()
[all …]
/sound/soc/qcom/
A Dlpass-platform.c101 struct regmap *map) in lpass_platform_alloc_rxtx_dmactl_fields() argument
129 struct regmap *map) in lpass_platform_alloc_va_dmactl_fields() argument
202 struct regmap *map; in lpass_platform_pcmops_open() local
412 return map; in __lpass_get_regmap_handle()
580 struct regmap *map; in lpass_platform_pcmops_hw_free() local
607 struct regmap *map; in lpass_platform_pcmops_prepare() local
670 struct regmap *map; in lpass_platform_pcmops_trigger() local
870 struct regmap *map; in lpass_platform_pcmops_pointer() local
935 struct regmap *map; in lpass_dma_interrupt_handler() local
1191 struct regmap *map; in lpass_platform_pcmops_suspend() local
[all …]
/sound/soc/atmel/
A Dmchp-pdmc.c239 for (map = ch_info->chmap; map->channels; map++) { in mchp_pdmc_chmap_get()
267 if (!map) in mchp_pdmc_chmap_ctl_get()
271 int map_idx = map->channels == 1 ? map->map[i] - SNDRV_CHMAP_MONO : in mchp_pdmc_chmap_ctl_get()
272 map->map[i] - SNDRV_CHMAP_FL; in mchp_pdmc_chmap_ctl_get()
280 ucontrol->value.integer.value[i] = map->map[i]; in mchp_pdmc_chmap_ctl_get()
309 if (!map) in mchp_pdmc_chmap_ctl_put()
315 map->map[i] = ucontrol->value.integer.value[i]; in mchp_pdmc_chmap_ctl_put()
316 map_idx = map->channels == 1 ? map->map[i] - SNDRV_CHMAP_MONO : in mchp_pdmc_chmap_ctl_put()
317 map->map[i] - SNDRV_CHMAP_FL; in mchp_pdmc_chmap_ctl_put()
355 for (map = info->chmap; map->channels; map++) { in mchp_pdmc_chmap_ctl_tlv()
[all …]
/sound/sparc/
A Damd7930.c322 struct amd7930_map map; member
384 struct amd7930_map *map = &amd->map; in __amd7930_write_map() local
478 struct amd7930_map *map = &amd->map; in __amd7930_update_map() local
486 map->gr = gx_coeff[255]; in __amd7930_update_map()
488 map->ger = ger_coeff[0]; in __amd7930_update_map()
489 map->gr = gx_coeff[level]; in __amd7930_update_map()
598 new_mmr1 = amd->map.mmr1; in snd_amd7930_playback_prepare()
604 amd->map.mmr1 = new_mmr1; in snd_amd7930_playback_prepare()
630 new_mmr1 = amd->map.mmr1; in snd_amd7930_capture_prepare()
636 amd->map.mmr1 = new_mmr1; in snd_amd7930_capture_prepare()
[all …]
/sound/pci/ctxfi/
A Dctpcm.c390 .map = { SNDRV_CHMAP_MONO } },
392 .map = { SNDRV_CHMAP_RL, SNDRV_CHMAP_RR } },
398 .map = { SNDRV_CHMAP_MONO } },
406 .map = { SNDRV_CHMAP_MONO } },
408 .map = { SNDRV_CHMAP_SL, SNDRV_CHMAP_SR } },
418 const struct snd_pcm_chmap_elem *map; in ct_alsa_pcm_create() local
451 map = snd_pcm_std_chmaps; in ct_alsa_pcm_create()
454 map = surround_map; in ct_alsa_pcm_create()
457 map = clfe_map; in ct_alsa_pcm_create()
460 map = side_map; in ct_alsa_pcm_create()
[all …]

Completed in 839 milliseconds

1234