Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 41) sorted by relevance

12

/sound/soc/kirkwood/
Dkirkwood-i2s.c40 struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(cpu_dai); in kirkwood_i2s_set_fmt() local
62 value = readl(priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
65 writel(value, priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
67 value = readl(priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
70 writel(value, priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
103 struct kirkwood_dma_data *priv, unsigned long rate) in kirkwood_set_rate() argument
111 kirkwood_set_dco(priv->io, rate); in kirkwood_set_rate()
114 } else if (!IS_ERR(priv->extclk)) { in kirkwood_set_rate()
118 clk_set_rate(priv->extclk, 256 * rate); in kirkwood_set_rate()
122 writel(clks_ctrl, priv->io + KIRKWOOD_CLOCKS_CTRL); in kirkwood_set_rate()
[all …]
Dkirkwood-dma.c67 struct kirkwood_dma_data *priv = prdata->data; in kirkwood_dma_irq() local
70 mask = readl(priv->io + KIRKWOOD_INT_MASK); in kirkwood_dma_irq()
71 status = readl(priv->io + KIRKWOOD_INT_CAUSE) & mask; in kirkwood_dma_irq()
73 cause = readl(priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
77 writel(cause, priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
89 writel(status, priv->io + KIRKWOOD_INT_CAUSE); in kirkwood_dma_irq()
132 struct kirkwood_dma_data *priv; in kirkwood_dma_open() local
137 priv = snd_soc_dai_get_dma_data(cpu_dai, substream); in kirkwood_dma_open()
143 priv->burst * 2, in kirkwood_dma_open()
150 priv->burst); in kirkwood_dma_open()
[all …]
/sound/soc/codecs/
Dtas5086.c158 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_deemph() local
161 if (priv->deemph) in tas5086_set_deemph()
163 if (tas5086_deemph[i] == priv->rate) in tas5086_set_deemph()
166 return regmap_update_bits(priv->regmap, TAS5086_SYS_CONTROL_1, in tas5086_set_deemph()
174 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_get_deemph() local
176 ucontrol->value.enumerated.item[0] = priv->deemph; in tas5086_get_deemph()
185 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_put_deemph() local
187 priv->deemph = ucontrol->value.enumerated.item[0]; in tas5086_put_deemph()
197 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_dai_sysclk() local
201 priv->mclk = freq; in tas5086_set_dai_sysclk()
[all …]
Dak5386.c47 struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); in ak5386_hw_params() local
59 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
60 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
69 struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); in ak5386_hw_free() local
71 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
72 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
109 struct ak5386_priv *priv; in ak5386_probe() local
111 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in ak5386_probe()
112 if (!priv) in ak5386_probe()
115 priv->reset_gpio = -EINVAL; in ak5386_probe()
[all …]
Dtwl6040.c338 struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); in twl6040_ep_drv_event() local
343 priv->hs_power_mode_locked = 1; in twl6040_ep_drv_event()
346 priv->hs_power_mode_locked = 0; in twl6040_ep_drv_event()
347 ret = headset_power_mode(codec, priv->hs_power_mode); in twl6040_ep_drv_event()
358 struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); in twl6040_hs_jack_report() local
361 mutex_lock(&priv->mutex); in twl6040_hs_jack_report()
370 mutex_unlock(&priv->mutex); in twl6040_hs_jack_report()
376 struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); in twl6040_hs_jack_detect() local
377 struct twl6040_jack_data *hs_jack = &priv->hs_jack; in twl6040_hs_jack_detect()
388 struct twl6040_data *priv = container_of(work, in twl6040_accessory_work() local
[all …]
Dmc13783.c107 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_read() local
110 mc13xxx_lock(priv->mc13xxx); in mc13783_read()
112 mc13xxx_reg_read(priv->mc13xxx, reg, &value); in mc13783_read()
114 mc13xxx_unlock(priv->mc13xxx); in mc13783_read()
122 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_write() local
125 mc13xxx_lock(priv->mc13xxx); in mc13783_write()
127 ret = mc13xxx_reg_write(priv->mc13xxx, reg, value); in mc13783_write()
129 mc13xxx_unlock(priv->mc13xxx); in mc13783_write()
586 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_probe() local
588 mc13xxx_lock(priv->mc13xxx); in mc13783_probe()
[all …]
Dwm8350.c1032 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_set_fll() local
1033 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll()
1038 if (freq_in == priv->fll_freq_in && freq_out == priv->fll_freq_out) in wm8350_set_fll()
1075 priv->fll_freq_out = freq_out; in wm8350_set_fll()
1076 priv->fll_freq_in = freq_in; in wm8350_set_fll()
1084 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_set_bias_level() local
1085 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level()
1109 ret = regulator_bulk_enable(ARRAY_SIZE(priv->supplies), in wm8350_set_bias_level()
1110 priv->supplies); in wm8350_set_bias_level()
1237 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), in wm8350_set_bias_level()
[all …]
Dml26124.c342 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_hw_params() local
343 int i = get_coeff(priv->mclk, params_rate(hw_params)); in ml26124_hw_params()
345 priv->substream = substream; in ml26124_hw_params()
346 priv->rate = params_rate(hw_params); in ml26124_hw_params()
348 if (priv->clk_in) { in ml26124_hw_params()
349 switch (priv->mclk / params_rate(hw_params)) { in ml26124_hw_params()
425 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_mute() local
427 switch (priv->substream->stream) { in ml26124_mute()
488 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_dai_sysclk() local
492 priv->clk_in = ML26124_USE_PLLOUT; in ml26124_set_dai_sysclk()
[all …]
Darizona.c75 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_spk_ev() local
94 if (!priv->spk_ena && manual_ena) { in arizona_spk_ev()
96 priv->spk_ena_pending = true; in arizona_spk_ev()
110 if (priv->spk_ena_pending) { in arizona_spk_ev()
113 priv->spk_ena_pending = false; in arizona_spk_ev()
114 priv->spk_ena++; in arizona_spk_ev()
119 priv->spk_ena--; in arizona_spk_ev()
120 if (!priv->spk_ena) in arizona_spk_ev()
129 if (!priv->spk_ena) in arizona_spk_ev()
194 struct arizona_priv *priv = snd_soc_codec_get_drvdata(codec); in arizona_init_spk() local
[all …]
Dcs42l73.c596 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_spklo_spk_amp_event() local
600 priv->shutdwn_delay = 150; in cs42l73_spklo_spk_amp_event()
612 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_ear_amp_event() local
616 if (priv->shutdwn_delay < 50) in cs42l73_ear_amp_event()
617 priv->shutdwn_delay = 50; in cs42l73_ear_amp_event()
630 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_hp_amp_event() local
634 if (priv->shutdwn_delay < 30) in cs42l73_hp_amp_event()
635 priv->shutdwn_delay = 30; in cs42l73_hp_amp_event()
990 struct cs42l73_private *priv = snd_soc_codec_get_drvdata(codec); in cs42l73_set_mclk() local
1005 priv->mclksel + 1, cs42l73_mclkx_coeffs[mclkx_coeff].mclkx, in cs42l73_set_mclk()
[all …]
/sound/pci/ice1712/
Dak4xxx.c61 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in snd_ice1712_akm4xxx_write() local
68 tmp |= priv->add_flags; in snd_ice1712_akm4xxx_write()
69 tmp &= ~priv->mask_flags; in snd_ice1712_akm4xxx_write()
70 if (priv->cs_mask == priv->cs_addr) { in snd_ice1712_akm4xxx_write()
71 if (priv->cif) { in snd_ice1712_akm4xxx_write()
72 tmp |= priv->cs_mask; /* start without chip select */ in snd_ice1712_akm4xxx_write()
74 tmp &= ~priv->cs_mask; /* chip select low */ in snd_ice1712_akm4xxx_write()
80 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
81 tmp |= priv->cs_addr; in snd_ice1712_akm4xxx_write()
87 addrdata = (priv->caddr << 6) | 0x20 | (addr & 0x1f); in snd_ice1712_akm4xxx_write()
[all …]
Ddelta.c263 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in delta_ak4524_lock() local
267 priv->cs_mask = in delta_ak4524_lock()
268 priv->cs_addr = chip == 0 ? ICE1712_DELTA_CODEC_CHIP_A : in delta_ak4524_lock()
277 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in delta1010lt_ak4524_lock() local
281 priv->cs_mask = ICE1712_DELTA_1010LT_CS; in delta1010lt_ak4524_lock()
282 priv->cs_addr = chip << 4; in delta1010lt_ak4524_lock()
290 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in delta66e_ak4524_lock() local
294 priv->cs_mask = in delta66e_ak4524_lock()
295 priv->cs_addr = chip == 0 ? ICE1712_DELTA_66E_CS_CHIP_A : in delta66e_ak4524_lock()
304 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in vx442_ak4524_lock() local
[all …]
/sound/isa/gus/
Dgus_mem_proc.c39 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_dump() local
40 struct snd_gus_card *gus = priv->gus; in snd_gf1_mem_proc_dump()
43 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump()
51 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_free() local
52 kfree(priv); in snd_gf1_mem_proc_free()
63 struct gus_proc_private *priv; in snd_gf1_mem_proc_init() local
68 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_gf1_mem_proc_init()
69 if (priv == NULL) in snd_gf1_mem_proc_init()
71 priv->gus = gus; in snd_gf1_mem_proc_init()
75 entry->private_data = priv; in snd_gf1_mem_proc_init()
[all …]
/sound/soc/pxa/
Dmmp-sspa.c103 struct sspa_priv *priv = snd_soc_dai_get_drvdata(dai); in mmp_sspa_startup() local
105 clk_enable(priv->sysclk); in mmp_sspa_startup()
106 clk_enable(priv->sspa->clk); in mmp_sspa_startup()
114 struct sspa_priv *priv = snd_soc_dai_get_drvdata(dai); in mmp_sspa_shutdown() local
116 clk_disable(priv->sspa->clk); in mmp_sspa_shutdown()
117 clk_disable(priv->sysclk); in mmp_sspa_shutdown()
128 struct sspa_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in mmp_sspa_set_dai_sysclk() local
133 ret = clk_set_rate(priv->audio_clk, freq); in mmp_sspa_set_dai_sysclk()
152 struct sspa_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in mmp_sspa_set_dai_pll() local
157 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll()
[all …]
Dpxa-ssp.c108 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_startup() local
109 struct ssp_device *ssp = priv->ssp; in pxa_ssp_startup()
129 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_shutdown() local
130 struct ssp_device *ssp = priv->ssp; in pxa_ssp_shutdown()
145 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_suspend() local
146 struct ssp_device *ssp = priv->ssp; in pxa_ssp_suspend()
151 priv->cr0 = __raw_readl(ssp->mmio_base + SSCR0); in pxa_ssp_suspend()
152 priv->cr1 = __raw_readl(ssp->mmio_base + SSCR1); in pxa_ssp_suspend()
153 priv->to = __raw_readl(ssp->mmio_base + SSTO); in pxa_ssp_suspend()
154 priv->psp = __raw_readl(ssp->mmio_base + SSPSP); in pxa_ssp_suspend()
[all …]
/sound/soc/omap/
Domap-hdmi.c54 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); in omap_hdmi_dai_startup() local
67 if (!priv->dssdev->driver->audio_supported(priv->dssdev)) { in omap_hdmi_dai_startup()
72 snd_soc_dai_set_dma_data(dai, substream, &priv->dma_data); in omap_hdmi_dai_startup()
80 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); in omap_hdmi_dai_prepare() local
82 return priv->dssdev->driver->audio_enable(priv->dssdev); in omap_hdmi_dai_prepare()
89 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai); in omap_hdmi_dai_hw_params() local
90 struct snd_aes_iec958 *iec = &priv->iec; in omap_hdmi_dai_hw_params()
91 struct snd_cea_861_aud_if *cea = &priv->cea; in omap_hdmi_dai_hw_params()
96 priv->dma_data.maxburst = 16; in omap_hdmi_dai_hw_params()
99 priv->dma_data.maxburst = 32; in omap_hdmi_dai_hw_params()
[all …]
Domap-abe-twl6040.c53 struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); in omap_abe_hw_params() local
59 freq = priv->mclk_freq; in omap_abe_hw_params()
182 struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); in omap_abe_twl6040_init() local
195 if (priv->jack_detection) { in omap_abe_twl6040_init()
280 struct abe_twl6040 *priv; in omap_abe_probe() local
286 priv = devm_kzalloc(&pdev->dev, sizeof(struct abe_twl6040), GFP_KERNEL); in omap_abe_probe()
287 if (priv == NULL) in omap_abe_probe()
290 priv->dmic_codec_dev = ERR_PTR(-EINVAL); in omap_abe_probe()
322 priv->dmic_codec_dev = platform_device_register_simple( in omap_abe_probe()
324 if (IS_ERR(priv->dmic_codec_dev)) { in omap_abe_probe()
[all …]
Domap-twl4030.c185 struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card); in omap_twl4030_init() local
189 if (priv->jack_detect > 0) { in omap_twl4030_init()
190 hs_jack_gpios[0].gpio = priv->jack_detect; in omap_twl4030_init()
193 &priv->hs_jack); in omap_twl4030_init()
197 ret = snd_soc_jack_add_pins(&priv->hs_jack, in omap_twl4030_init()
203 ret = snd_soc_jack_add_gpios(&priv->hs_jack, in omap_twl4030_init()
276 struct omap_twl4030 *priv; in omap_twl4030_probe() local
281 priv = devm_kzalloc(&pdev->dev, sizeof(struct omap_twl4030), GFP_KERNEL); in omap_twl4030_probe()
282 if (priv == NULL) in omap_twl4030_probe()
310 priv->jack_detect = of_get_named_gpio(node, in omap_twl4030_probe()
[all …]
/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c140 link->priv = pdacf; in snd_pdacf_probe()
198 struct snd_pdacf *chip = link->priv; in snd_pdacf_detach()
215 struct snd_pdacf *pdacf = link->priv; in pdacf_config()
249 struct snd_pdacf *chip = link->priv; in pdacf_suspend()
262 struct snd_pdacf *chip = link->priv; in pdacf_resume()
/sound/usb/usx2y/
DusX2Yhwdep.c201 struct usX2Ydev *priv = hw->private_data; in snd_usX2Y_hwdep_dsp_load() local
206 struct usb_device* dev = priv->dev; in snd_usX2Y_hwdep_dsp_load()
224 err = usX2Y_AsyncSeq04_init(priv); in snd_usX2Y_hwdep_dsp_load()
229 err = usX2Y_In04_init(priv); in snd_usX2Y_hwdep_dsp_load()
240 priv->chip_status |= USX2Y_STAT_CHIP_INIT; in snd_usX2Y_hwdep_dsp_load()
/sound/pcmcia/vx/
Dvxpocket.c160 link->priv = chip; in snd_vxpocket_new()
212 struct vx_core *chip = link->priv; in vxpocket_config()
258 struct vx_core *chip = link->priv; in vxp_suspend()
271 struct vx_core *chip = link->priv; in vxp_resume()
339 vxp = link->priv; in vxpocket_detach()
/sound/core/
Dtimer.c970 struct snd_timer_system_private *priv = timer->private_data; in snd_timer_s_function() local
972 if (time_after(jiff, priv->last_expires)) in snd_timer_s_function()
973 priv->correction += (long)jiff - (long)priv->last_expires; in snd_timer_s_function()
974 snd_timer_interrupt(timer, (long)jiff - (long)priv->last_jiffies); in snd_timer_s_function()
979 struct snd_timer_system_private *priv; in snd_timer_s_start() local
982 priv = (struct snd_timer_system_private *) timer->private_data; in snd_timer_s_start()
983 njiff = (priv->last_jiffies = jiffies); in snd_timer_s_start()
984 if (priv->correction > timer->sticks - 1) { in snd_timer_s_start()
985 priv->correction -= timer->sticks - 1; in snd_timer_s_start()
988 njiff += timer->sticks - priv->correction; in snd_timer_s_start()
[all …]
/sound/arm/
Dpxa2xx-ac97.c79 return platform_ops->startup(substream, platform_ops->priv); in pxa2xx_ac97_pcm_startup()
90 platform_ops->shutdown(substream, platform_ops->priv); in pxa2xx_ac97_pcm_shutdown()
119 platform_ops->suspend(platform_ops->priv); in pxa2xx_ac97_do_suspend()
134 platform_ops->resume(platform_ops->priv); in pxa2xx_ac97_do_resume()
/sound/pci/asihpi/
Dhpi6000.c234 struct hpi_hw_obj *phw = pao->priv; in control_message()
420 ao.priv = kzalloc(sizeof(struct hpi_hw_obj), GFP_KERNEL); in subsys_create_adapter()
421 if (!ao.priv) { in subsys_create_adapter()
453 struct hpi_hw_obj *phw = pao->priv; in subsys_create_adapter()
478 struct hpi_hw_obj *phw = pao->priv; in create_adapter_obj()
597 struct hpi_hw_obj *phw = pao->priv; in delete_adapter_obj()
640 struct hpi_hw_obj *phw = pao->priv; in hpi6000_adapter_boot_load_dsp()
1221 struct hpi_hw_obj *phw = pao->priv; in hpi6000_dsp_block_write32()
1259 struct hpi_hw_obj *phw = pao->priv; in hpi6000_dsp_block_read32()
1299 struct hpi_hw_obj *phw = pao->priv; in hpi6000_message_response_sequence()
[all …]
/sound/i2c/other/
Dtea575x-tuner.c234 static int vidioc_querycap(struct file *file, void *priv, in vidioc_querycap() argument
250 static int vidioc_enum_freq_bands(struct file *file, void *priv, in vidioc_enum_freq_bands() argument
283 static int vidioc_g_tuner(struct file *file, void *priv, in vidioc_g_tuner() argument
293 vidioc_enum_freq_bands(file, priv, &band_fm); in vidioc_g_tuner()
308 static int vidioc_s_tuner(struct file *file, void *priv, in vidioc_s_tuner() argument
326 static int vidioc_g_frequency(struct file *file, void *priv, in vidioc_g_frequency() argument
338 static int vidioc_s_frequency(struct file *file, void *priv, in vidioc_s_frequency() argument

12