Home
last modified time | relevance | path

Searched refs:ak4117 (Results 1 – 6 of 6) sorted by relevance

/sound/i2c/other/
Dak4117.c40 static void reg_write(struct ak4117 *ak4117, unsigned char reg, unsigned char val) in reg_write() argument
42 ak4117->write(ak4117->private_data, reg, val); in reg_write()
43 if (reg < sizeof(ak4117->regmap)) in reg_write()
44 ak4117->regmap[reg] = val; in reg_write()
47 static inline unsigned char reg_read(struct ak4117 *ak4117, unsigned char reg) in reg_read() argument
49 return ak4117->read(ak4117->private_data, reg); in reg_read()
53 static void reg_dump(struct ak4117 *ak4117)
59 …(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4117, i), i < sizeof(ak4117->regmap) ? ak41…
63 static void snd_ak4117_free(struct ak4117 *chip) in snd_ak4117_free()
71 struct ak4117 *chip = device->device_data; in snd_ak4117_dev_free()
[all …]
DMakefile7 snd-ak4117-objs := ak4117.o
13 obj-$(CONFIG_SND_PDAUDIOCF) += snd-ak4117.o
/sound/pcmcia/pdaudiocf/
Dpdaudiocf_core.c132 snd_ak4117_reinit(chip->ak4117); in pdacf_reinit()
173 static void snd_pdacf_ak4117_change(struct ak4117 *ak4117, unsigned char c0, unsigned char c1) in snd_pdacf_ak4117_change() argument
175 struct snd_pdacf *chip = ak4117->change_callback_private; in snd_pdacf_ak4117_change()
182 if (ak4117->rcs0 & AK4117_UNLCK) in snd_pdacf_ak4117_change()
209 …r = snd_ak4117_create(chip->card, pdacf_ak4117_read, pdacf_ak4117_write, pgm, chip, &chip->ak4117); in snd_pdacf_ak4117_create()
237 chip->ak4117->change_callback_private = chip; in snd_pdacf_ak4117_create()
238 chip->ak4117->change_callback = snd_pdacf_ak4117_change; in snd_pdacf_ak4117_create()
241 snd_pdacf_ak4117_change(chip->ak4117, AK4117_UNLCK, 0); in snd_pdacf_ak4117_create()
280 return (chip->ak4117->rcs0 & AK4117_UNLCK) == 0; in check_signal()
290 (snd_ak4117_external_rate(chip->ak4117) <= 0 || !check_signal(chip))) in snd_pdacf_resume()
Dpdaudiocf_pcm.c67 rate = snd_ak4117_check_rate_and_errors(chip->ak4117, AK4117_CHECK_NO_STAT|AK4117_CHECK_NO_RATE); in pdacf_pcm_trigger()
84 if ((chip->ak4117->rcs0 & AK4117_UNLCK) || runtime->rate != rate) { in pdacf_pcm_trigger()
95 snd_ak4117_check_rate_and_errors(chip->ak4117, AK4117_CHECK_NO_RATE); in pdacf_pcm_trigger()
175 snd_ak4117_reg_write(chip->ak4117, AK4117_REG_IO, AK4117_DIF2|AK4117_DIF1|AK4117_DIF0, aval); in pdacf_pcm_prepare()
303 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in snd_pdacf_pcm_new()
Dpdaudiocf.h96 struct ak4117 *ak4117; member
Dpdaudiocf_irq.c50 snd_ak4117_check_rate_and_errors(chip->ak4117, 0); in pdacf_interrupt()