Home
last modified time | relevance | path

Searched refs:ac97 (Results 1 – 25 of 139) sorted by relevance

123456

/linux/sound/pci/ac97/
H A Dac97_codec.c300 return ac97->bus->ops->read(ac97, reg); in snd_ac97_read()
307 ac97->regs[reg] = ac97->bus->ops->read(ac97, reg); in snd_ac97_read_cache()
1011 ac97->private_free(ac97); in snd_ac97_free()
1632 ac97->build_ops->build_3d(ac97); in snd_ac97_mixer_build()
2092 bus->codec[ac97->num] = ac97; in snd_ac97_mixer()
2148 ac97->num, ac97->id); in snd_ac97_mixer()
2298 snd_ac97_get_name(ac97, ac97->id, name, !ac97_is_audio(ac97)); in snd_ac97_mixer()
2534 ac97->build_ops->suspend(ac97); in snd_ac97_suspend()
2598 ac97->bus->ops->reset(ac97); in snd_ac97_resume()
2638 ac97->bus->ops->init(ac97); in snd_ac97_resume()
[all …]
H A Dac97_patch.c92 ac97->build_ops->update_jacks(ac97); in ac97_surround_jack_mode_put()
124 ac97->build_ops->update_jacks(ac97); in ac97_channel_mode_put()
182 return !ac97->indep_surround && is_surround_on(ac97); in is_shared_surrout()
188 return !ac97->indep_surround && is_clfe_on(ac97); in is_shared_clfeout()
200 return !ac97->indep_surround && !is_clfe_on(ac97); in is_shared_micin()
1396 snd_ac97_write(ac97, reg, ac97->regs[reg]); in ad18xx_resume()
1412 ac97->bus->ops->write(ac97, AC97_AD_CODEC_CFG, ac97->spec.ad18xx.codec_cfg[codec]); in ad18xx_resume()
1431 ac97->bus->ops->write(ac97, AC97_PCM, ac97->spec.ad18xx.pcmreg[codec]); in ad18xx_resume()
1441 snd_ac97_write(ac97, i, ac97->regs[i]); in ad18xx_resume()
1598 ac97->id |= ac97->spec.ad18xx.id[0]; in patch_ad1881()
[all …]
H A Dac97_proc.c102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main()
130 val = ac97->caps; in snd_ac97_proc_read_main()
339 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_read()
403 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_regs_read()
423 sprintf(name, "%s#%d-%d", prefix, ac97->addr, ac97->num); in snd_ac97_proc_init()
425 ac97->bus->proc); in snd_ac97_proc_init()
428 ac97->proc = entry; in snd_ac97_proc_init()
429 sprintf(name, "%s#%d-%d+regs", prefix, ac97->addr, ac97->num); in snd_ac97_proc_init()
431 ac97->bus->proc); in snd_ac97_proc_init()
445 ac97->proc_regs = NULL; in snd_ac97_proc_done()
[all …]
H A Dac97_pcm.c195 mutex_lock(&ac97->reg_mutex); in set_spdif_rate()
201 sbits = ac97->spdif_status; in set_spdif_rate()
217 ac97->spdif_status = sbits; in set_spdif_rate()
220 mutex_unlock(&ac97->reg_mutex); in set_spdif_rate()
292 snd_ac97_read(ac97, reg); in snd_ac97_set_rate()
309 if (!ac97_is_audio(ac97)) in get_pslots()
311 if (ac97_is_rev22(ac97) || ac97_can_amap(ac97)) { in get_pslots()
313 if (ac97_is_rev22(ac97)) { in get_pslots()
317 switch (ac97->addr) { in get_pslots()
324 switch (ac97->addr) { in get_pslots()
[all …]
H A Dac97_local.h10 void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name,
12 int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg,
17 void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97);
18 void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97);
19 void snd_ac97_proc_init(struct snd_ac97 * ac97);
20 void snd_ac97_proc_done(struct snd_ac97 * ac97);
H A Dac97_patch.h55 struct snd_ac97 * ac97);
62 static int snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit);
63 static int snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name,
65 static int snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src,
67 static int snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1,
69 static void snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src,
72 static void snd_ac97_restore_status(struct snd_ac97 *ac97);
73 static void snd_ac97_restore_iec958(struct snd_ac97 *ac97);
/linux/sound/soc/tegra/
H A Dtegra20_ac97.c210 &ac97->capture_dma_data); in tegra20_ac97_probe()
303 struct tegra20_ac97 *ac97; in tegra20_ac97_platform_probe() local
310 if (!ac97) { in tegra20_ac97_platform_probe()
317 if (IS_ERR(ac97->reset)) { in tegra20_ac97_platform_probe()
319 ret = PTR_ERR(ac97->reset); in tegra20_ac97_platform_probe()
324 if (IS_ERR(ac97->clk_ac97)) { in tegra20_ac97_platform_probe()
326 ret = PTR_ERR(ac97->clk_ac97); in tegra20_ac97_platform_probe()
338 if (IS_ERR(ac97->regmap)) { in tegra20_ac97_platform_probe()
340 ret = PTR_ERR(ac97->regmap); in tegra20_ac97_platform_probe()
358 if (IS_ERR(ac97->sync_gpio)) { in tegra20_ac97_platform_probe()
[all …]
/linux/sound/ac97/
H A Dsnd_ac97_compat.c69 struct snd_ac97 *ac97; in snd_ac97_compat_alloc() local
73 if (ac97 == NULL) in snd_ac97_compat_alloc()
76 ac97->private_data = adev; in snd_ac97_compat_alloc()
77 ac97->bus = &compat_soc_ac97_bus; in snd_ac97_compat_alloc()
79 ac97->dev.parent = &adev->dev; in snd_ac97_compat_alloc()
84 put_device(&ac97->dev); in snd_ac97_compat_alloc()
88 return ac97; in snd_ac97_compat_alloc()
94 device_unregister(&ac97->dev); in snd_ac97_compat_release()
106 compat_ac97_warm_reset(ac97); in snd_ac97_reset()
112 compat_ac97_reset(ac97); in snd_ac97_reset()
[all …]
/linux/include/sound/
H A Dac97_codec.h178 int (*build_3d) (struct snd_ac97 *ac97);
183 void (*suspend) (struct snd_ac97 *ac97);
184 void (*resume) (struct snd_ac97 *ac97);
190 void (*reset) (struct snd_ac97 *ac97);
191 void (*warm_reset)(struct snd_ac97 *ac97);
194 void (*wait) (struct snd_ac97 *ac97);
195 void (*init) (struct snd_ac97 *ac97);
292 return (ac97->scaps & AC97_SCAP_AUDIO); in ac97_is_audio()
296 return (ac97->scaps & AC97_SCAP_MODEM); in ac97_is_modem()
304 return (ac97->ext_id & AC97_EI_AMAP) != 0; in ac97_can_amap()
[all …]
/linux/sound/
H A Dac97_bus.c26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id()
32 if (ac97->id == 0x0 || ac97->id == 0xffffffff) in snd_ac97_check_id()
35 if (id != 0 && id != (ac97->id & id_mask)) in snd_ac97_check_id()
58 const struct snd_ac97_bus_ops *ops = ac97->bus->ops; in snd_ac97_reset()
61 ops->warm_reset(ac97); in snd_ac97_reset()
62 if (snd_ac97_check_id(ac97, id, id_mask)) in snd_ac97_reset()
67 ops->reset(ac97); in snd_ac97_reset()
69 ops->warm_reset(ac97); in snd_ac97_reset()
[all …]
/linux/sound/soc/
H A Dsoc-ac97.c175 struct snd_ac97 *ac97; in snd_soc_alloc_ac97_component() local
178 if (ac97 == NULL) in snd_soc_alloc_ac97_component()
182 ac97->num = 0; in snd_soc_alloc_ac97_component()
194 return ac97; in snd_soc_alloc_ac97_component()
215 struct snd_ac97 *ac97; in snd_soc_new_ac97_component() local
219 if (IS_ERR(ac97)) in snd_soc_new_ac97_component()
220 return ac97; in snd_soc_new_ac97_component()
239 return ac97; in snd_soc_new_ac97_component()
242 put_device(&ac97->dev); in snd_soc_new_ac97_component()
256 device_del(&ac97->dev); in snd_soc_free_ac97_component()
[all …]
/linux/sound/pci/cs5535audio/
H A Dcs5535audio.h87 struct snd_ac97 *ac97; member
102 struct snd_ac97_template *ac97);
105 void olpc_analog_input(struct snd_ac97 *ac97, int on);
106 void olpc_mic_bias(struct snd_ac97 *ac97, int on);
108 static inline void olpc_capture_open(struct snd_ac97 *ac97) in olpc_capture_open() argument
111 olpc_analog_input(ac97, 0); in olpc_capture_open()
113 olpc_mic_bias(ac97, 1); in olpc_capture_open()
116 static inline void olpc_capture_close(struct snd_ac97 *ac97) in olpc_capture_close() argument
119 olpc_analog_input(ac97, 0); in olpc_capture_close()
121 olpc_mic_bias(ac97, 0); in olpc_capture_close()
[all …]
H A Dcs5535audio_olpc.c24 void olpc_analog_input(struct snd_ac97 *ac97, int on) in olpc_analog_input() argument
32 err = snd_ac97_update_bits(ac97, AC97_AD_TEST2, in olpc_analog_input()
35 dev_err(ac97->bus->card->dev, in olpc_analog_input()
47 void olpc_mic_bias(struct snd_ac97 *ac97, int on) in olpc_mic_bias() argument
55 err = snd_ac97_update_bits(ac97, AC97_AD_MISC, in olpc_mic_bias()
98 struct snd_ac97 *ac97 = cs5535au->ac97; in olpc_mic_get() local
110 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put()
134 struct snd_ac97_template *ac97) in olpc_prequirks() argument
141 ac97->scaps |= AC97_SCAP_INV_EAPD; in olpc_prequirks()
173 ac97->private_data)); in olpc_quirks()
[all …]
H A Dcs5535audio.c124 struct cs5535audio *cs5535au = ac97->private_data; in snd_cs5535audio_ac97_codec_write()
131 struct cs5535audio *cs5535au = ac97->private_data; in snd_cs5535audio_ac97_codec_read()
139 struct snd_ac97_template ac97; in snd_cs5535audio_mixer() local
150 memset(&ac97, 0, sizeof(ac97)); in snd_cs5535audio_mixer()
151 ac97.scaps = AC97_SCAP_AUDIO | AC97_SCAP_SKIP_MODEM in snd_cs5535audio_mixer()
153 ac97.private_data = cs5535au; in snd_cs5535audio_mixer()
154 ac97.pci = cs5535au->pci; in snd_cs5535audio_mixer()
157 olpc_prequirks(card, &ac97); in snd_cs5535audio_mixer()
159 err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97); in snd_cs5535audio_mixer()
165 snd_ac97_tune_hardware(cs5535au->ac97, ac97_quirks, ac97_quirk); in snd_cs5535audio_mixer()
[all …]
/linux/drivers/base/regmap/
H A Dregmap-ac97.c47 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_read() local
49 *val = ac97->bus->ops->read(ac97, reg); in regmap_ac97_reg_read()
57 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_write() local
59 ac97->bus->ops->write(ac97, reg, val); in regmap_ac97_reg_write()
69 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97, in __regmap_init_ac97() argument
74 return __regmap_init(&ac97->dev, &ac97_regmap_bus, ac97, config, in __regmap_init_ac97()
79 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97, in __devm_regmap_init_ac97() argument
84 return __devm_regmap_init(&ac97->dev, &ac97_regmap_bus, ac97, config, in __devm_regmap_init_ac97()
/linux/Documentation/devicetree/bindings/sound/
H A Dsoc-ac97link.txt8 "ac97-running": AC97-link is active
9 "ac97-reset": AC97-link reset state
10 "ac97-warm-reset": AC97-link warm reset state
11 - ac97-gpios: List of gpio phandles with args in the order ac97-sync,
12 ac97-sdata, ac97-reset
20 pinctrl-names = "default", "ac97-running", "ac97-reset", "ac97-warm-reset";
25 ac97-gpios = <&gpio3 20 0 &gpio3 22 0 &gpio3 28 0>;
H A Dac97-bus.txt3 This documents describes the devicetree bindings for an ac97 controller child
4 node describing ac97 codecs.
7 -compatible : Must be "ac97,vendor_id1,vendor_id2
10 -reg : Must be the ac97 codec number, between 0 and 3
13 ac97: sound@40500000 {
14 compatible = "marvell,pxa270-ac97";
28 compatible = "ac97,574d,4c13";
/linux/sound/soc/codecs/
H A Dac97.c36 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_prepare() local
40 return snd_ac97_set_rate(ac97, reg, substream->runtime->rate); in ac97_prepare()
66 struct snd_ac97 *ac97; in ac97_soc_probe() local
78 ret = snd_ac97_mixer(ac97_bus, &ac97_template, &ac97); in ac97_soc_probe()
82 snd_soc_component_set_drvdata(component, ac97); in ac97_soc_probe()
90 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_soc_suspend() local
92 snd_ac97_suspend(ac97); in ac97_soc_suspend()
100 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_soc_resume() local
102 snd_ac97_resume(ac97); in ac97_soc_resume()
H A Dad1980.c206 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ad1980_reset() local
211 ret = snd_ac97_reset(ac97, true, AD1980_VENDOR_ID, in ad1980_reset()
233 struct snd_ac97 *ac97; in ad1980_soc_probe() local
239 ac97 = snd_soc_new_ac97_component(component, 0, 0); in ad1980_soc_probe()
240 if (IS_ERR(ac97)) { in ad1980_soc_probe()
241 ret = PTR_ERR(ac97); in ad1980_soc_probe()
246 regmap = regmap_init_ac97(ac97, &ad1980_regmap_config); in ad1980_soc_probe()
253 snd_soc_component_set_drvdata(component, ac97); in ad1980_soc_probe()
281 snd_soc_free_ac97_component(ac97); in ad1980_soc_probe()
287 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ad1980_soc_remove() local
[all …]
H A Dstac9766.c218 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in stac9766_component_resume() local
220 return snd_ac97_reset(ac97, true, STAC9766_VENDOR_ID, in stac9766_component_resume()
273 struct snd_ac97 *ac97; in stac9766_component_probe() local
277 ac97 = snd_soc_new_ac97_component(component, STAC9766_VENDOR_ID, in stac9766_component_probe()
279 if (IS_ERR(ac97)) in stac9766_component_probe()
280 return PTR_ERR(ac97); in stac9766_component_probe()
282 regmap = regmap_init_ac97(ac97, &stac9766_regmap_config); in stac9766_component_probe()
289 snd_soc_component_set_drvdata(component, ac97); in stac9766_component_probe()
293 snd_soc_free_ac97_component(ac97); in stac9766_component_probe()
299 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in stac9766_component_remove() local
[all …]
H A Dwm9705.c27 struct snd_ac97 *ac97; member
302 ret = snd_ac97_reset(wm9705->ac97, true, WM9705_VENDOR_ID, in wm9705_soc_resume()
322 wm9705->ac97 = wm9705->mfd_pdata->ac97; in wm9705_soc_probe()
325 wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID, in wm9705_soc_probe()
327 if (IS_ERR(wm9705->ac97)) { in wm9705_soc_probe()
329 return PTR_ERR(wm9705->ac97); in wm9705_soc_probe()
332 regmap = regmap_init_ac97(wm9705->ac97, &wm9705_regmap_config); in wm9705_soc_probe()
334 snd_soc_free_ac97_component(wm9705->ac97); in wm9705_soc_probe()
341 snd_soc_component_set_drvdata(component, wm9705->ac97); in wm9705_soc_probe()
353 snd_soc_free_ac97_component(wm9705->ac97); in wm9705_soc_remove()
/linux/sound/pci/au88x0/
H A Dau88x0_mixer.c26 struct snd_ac97_template ac97; in snd_vortex_mixer() local
36 memset(&ac97, 0, sizeof(ac97)); in snd_vortex_mixer()
38 ac97.private_data = vortex; in snd_vortex_mixer()
39 ac97.scaps = AC97_SCAP_NO_SPDIF; in snd_vortex_mixer()
40 err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); in snd_vortex_mixer()
/linux/drivers/mfd/
H A Dwm97xx-core.c30 struct snd_ac97 *ac97; member
266 wm97xx->ac97 = snd_ac97_compat_alloc(adev); in wm97xx_ac97_probe()
267 if (IS_ERR(wm97xx->ac97)) in wm97xx_ac97_probe()
268 return PTR_ERR(wm97xx->ac97); in wm97xx_ac97_probe()
276 codec_pdata->ac97 = wm97xx->ac97; in wm97xx_ac97_probe()
304 codec_pdata->regmap = devm_regmap_init_ac97(wm97xx->ac97, config); in wm97xx_ac97_probe()
318 snd_ac97_compat_release(wm97xx->ac97); in wm97xx_ac97_probe()
326 snd_ac97_compat_release(wm97xx->ac97); in wm97xx_ac97_remove()
/linux/sound/pci/
H A Dintel8x0m.c160 struct snd_ac97 *ac97; member
181 struct snd_ac97 *ac97; member
325 ac97->num, reg); in snd_intel8x0m_codec_write()
341 ac97->num, reg); in snd_intel8x0m_codec_read()
353 ac97->num, reg); in snd_intel8x0m_codec_read()
779 chip->ac97 = NULL; in snd_intel8x0m_mixer_free_ac97()
797 memset(&ac97, 0, sizeof(ac97)); in snd_intel8x0m_mixer()
812 ac97.pci = chip->pci; in snd_intel8x0m_mixer()
818 if (ac97.num == 0) in snd_intel8x0m_mixer()
822 chip->ac97 = x97; in snd_intel8x0m_mixer()
[all …]
H A Dvia82xx_modem.c240 struct snd_ac97 *ac97; member
422 snd_via82xx_codec_ready(chip, ac97->num); in snd_via82xx_codec_write()
870 chip->ac97 = NULL; in snd_via82xx_mixer_free_ac97()
876 struct snd_ac97_template ac97; in snd_via82xx_mixer_new() local
890 memset(&ac97, 0, sizeof(ac97)); in snd_via82xx_mixer_new()
891 ac97.private_data = chip; in snd_via82xx_mixer_new()
893 ac97.pci = chip->pci; in snd_via82xx_mixer_new()
895 ac97.num = chip->ac97_secondary; in snd_via82xx_mixer_new()
897 err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97); in snd_via82xx_mixer_new()
1023 snd_ac97_suspend(chip->ac97); in snd_via82xx_suspend()
[all …]

123456