| /linux/sound/soc/tegra/ |
| H A D | tegra20_ac97.c | 36 static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_reset() argument 62 static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_warm_reset() argument 141 static inline void tegra20_ac97_start_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_start_playback() argument 143 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_start_playback() 147 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_start_playback() 154 static inline void tegra20_ac97_stop_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_stop_playback() argument 156 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_stop_playback() 159 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_stop_playback() 163 static inline void tegra20_ac97_start_capture(struct tegra20_ac97 *ac97) in tegra20_ac97_start_capture() argument 165 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_start_capture() [all …]
|
| /linux/include/sound/ |
| H A D | ac97_codec.h | 178 int (*build_3d) (struct snd_ac97 *ac97); 179 int (*build_specific) (struct snd_ac97 *ac97); 180 int (*build_spdif) (struct snd_ac97 *ac97); 181 int (*build_post_spdif) (struct snd_ac97 *ac97); 183 void (*suspend) (struct snd_ac97 *ac97); 184 void (*resume) (struct snd_ac97 *ac97); 186 void (*update_jacks) (struct snd_ac97 *ac97); /* for jack-sharing */ 190 void (*reset) (struct snd_ac97 *ac97); 191 void (*warm_reset)(struct snd_ac97 *ac97); 192 void (*write) (struct snd_ac97 *ac97, unsigned short reg, unsigned short val); [all …]
|
| /linux/sound/ac97/ |
| H A D | snd_ac97_compat.c | 20 static void compat_ac97_reset(struct snd_ac97 *ac97) in compat_ac97_reset() argument 22 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_reset() 29 static void compat_ac97_warm_reset(struct snd_ac97 *ac97) in compat_ac97_warm_reset() argument 31 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_warm_reset() 38 static void compat_ac97_write(struct snd_ac97 *ac97, unsigned short reg, in compat_ac97_write() argument 41 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_write() 44 actrl->ops->write(actrl, ac97->num, reg, val); in compat_ac97_write() 47 static unsigned short compat_ac97_read(struct snd_ac97 *ac97, in compat_ac97_read() argument 50 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_read() 53 return actrl->ops->read(actrl, ac97->num, reg); in compat_ac97_read() [all …]
|
| H A D | Makefile | 6 obj-$(CONFIG_AC97_BUS_NEW) += ac97.o 8 ac97-y += bus.o codec.o 9 ac97-$(CONFIG_AC97_BUS_COMPAT) += snd_ac97_compat.o
|
| /linux/sound/ |
| H A D | ac97_bus.c | 18 * @ac97: The AC97 device to check 26 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 in snd_ac97_check_id() 55 snd_ac97_reset(struct snd_ac97 * ac97,bool try_warm,unsigned int id,unsigned int id_mask) snd_ac97_reset() argument [all...] |
| /linux/sound/soc/loongson/ |
| H A D | loongson1_ac97.c | 106 static void ls1x_ac97_reset(struct snd_ac97 *ac97) in ls1x_ac97_reset() argument 115 static void ls1x_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val) in ls1x_ac97_write() argument 129 static unsigned short ls1x_ac97_read(struct snd_ac97 *ac97, unsigned short reg) in ls1x_ac97_read() argument 148 static void ls1x_ac97_init(struct snd_ac97 *ac97) in ls1x_ac97_init() argument 169 if (ac97->ext_id & AC97_EI_VRA) { in ls1x_ac97_init() 186 struct ls1x_ac97 *ac97 = dev_get_drvdata(cpu_dai->dev); in ls1x_ac97_hw_params() local 205 regmap_update_bits(ac97->regmap, AC97_OCC0, in ls1x_ac97_hw_params() 209 regmap_update_bits(ac97->regmap, AC97_ICC, in ls1x_ac97_hw_params() 218 regmap_update_bits(ac97->regmap, AC97_OCC0, in ls1x_ac97_hw_params() 222 regmap_update_bits(ac97->regmap, AC97_ICC, in ls1x_ac97_hw_params() [all …]
|
| /linux/sound/soc/ |
| H A D | soc-ac97.c | 132 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument 141 ac97->gpio_priv = gpio_priv; in snd_soc_ac97_init_gpio() 154 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument 156 gpiochip_remove(&ac97->gpio_priv->gpio_chip); in snd_soc_ac97_free_gpio() 159 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument 165 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument 182 struct snd_ac97 *ac97; in snd_soc_alloc_ac97_component() local 184 ac97 = kzalloc(sizeof(struct snd_ac97), GFP_KERNEL); in snd_soc_alloc_ac97_component() 185 if (ac97 == NULL) in snd_soc_alloc_ac97_component() 188 ac97->bus = &soc_ac97_bus; in snd_soc_alloc_ac97_component() [all …]
|
| /linux/sound/pci/cs5535audio/ |
| H A D | cs5535audio.h | 87 struct snd_ac97 *ac97; member 102 struct snd_ac97_template *ac97); 103 int olpc_quirks(struct snd_card *card, struct snd_ac97 *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() [all …]
|
| H A D | cs5535audio_olpc.c | 24 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() 58 dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err); in olpc_mic_bias() 81 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put() 98 struct snd_ac97 *ac97 = cs5535au->ac97; in olpc_mic_get() local 101 i = (snd_ac97_read(ac97, AC97_AD_MISC) >> AC97_AD_VREFD_SHIFT) & 0x1; in olpc_mic_get() 110 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put() [all …]
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-ac97.c | 47 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 D | soc-ac97link.txt | 8 "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 D | ac97-bus.txt | 3 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";
|
| H A D | marvell,pxa2xx-ac97.txt | 7 "marvell,pxa250-ac97" 8 "marvell,pxa270-ac97" 9 "marvell,pxa300-ac97" 19 ac97: sound@40500000 { 20 compatible = "marvell,pxa250-ac97";
|
| /linux/sound/soc/codecs/ |
| H A D | ac97.c | 37 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_prepare() local 41 return snd_ac97_set_rate(ac97, reg, substream->runtime->rate); in ac97_prepare() 67 struct snd_ac97 *ac97; in ac97_soc_probe() local 79 ret = snd_ac97_mixer(ac97_bus, &ac97_template, &ac97); in ac97_soc_probe() 83 snd_soc_component_set_drvdata(component, ac97); in ac97_soc_probe() 91 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_soc_suspend() local 93 snd_ac97_suspend(ac97); in ac97_soc_suspend() 101 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ac97_soc_resume() local 103 snd_ac97_resume(ac97); in ac97_soc_resume()
|
| H A D | ad1980.c | 206 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 D | stac9766.c | 218 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 D | wm9705.c | 27 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/ac97/ |
| H A D | ac97_local.h | 10 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 D | ac97_patch.h | 55 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);
|
| H A D | Makefile | 7 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o 8 snd-ac97-codec-$(CONFIG_SND_PROC_FS) += ac97_proc.o 11 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
|
| /linux/sound/pci/au88x0/ |
| H A D | au88x0_mixer.c | 26 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 D | wm97xx-core.c | 30 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/arm/ |
| H A D | Makefile | 11 snd-pxa2xx-lib-$(CONFIG_SND_PXA2XX_LIB_AC97) += pxa2xx-ac97-lib.o 13 obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o 14 snd-pxa2xx-ac97-y := pxa2xx-ac97.o
|
| /linux/sound/soc/au1x/ |
| H A D | ac97c.c | 83 static unsigned short au1xac97c_ac97_read(struct snd_ac97 *ac97, in au1xac97c_ac97_read() argument 86 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_read() 125 static void au1xac97c_ac97_write(struct snd_ac97 *ac97, unsigned short r, in au1xac97c_ac97_write() argument 128 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_write() 155 static void au1xac97c_ac97_warm_reset(struct snd_ac97 *ac97) in au1xac97c_ac97_warm_reset() argument 157 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_warm_reset() 165 static void au1xac97c_ac97_cold_reset(struct snd_ac97 *ac97) in au1xac97c_ac97_cold_reset() argument 167 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_cold_reset()
|
| /linux/sound/pci/ice1712/ |
| H A D | amp.c | 56 if (ice->ac97) in snd_vt1724_amp_add_controls() 59 snd_ac97_write_cache(ice->ac97, 0x5a, in snd_vt1724_amp_add_controls() 60 snd_ac97_read(ice->ac97, 0x5a) & ~0x8000); in snd_vt1724_amp_add_controls()
|