• Home
  • Raw
  • Download

Lines Matching refs:ice

25 	struct snd_ice1712 *ice;  member
107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write() local
111 snd_ice1712_save_gpio_status(ice); in psc724_wm8766_write()
114 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction | PSC724_SPI_MASK); in psc724_wm8766_write()
115 snd_ice1712_gpio_set_mask(ice, ice->gpio.write_mask & ~PSC724_SPI_MASK); in psc724_wm8766_write()
116 bits = snd_ice1712_gpio_read(ice) & ~PSC724_SPI_MASK; in psc724_wm8766_write()
117 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
128 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
132 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
137 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
141 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
143 snd_ice1712_restore_gpio_status(ice); in psc724_wm8766_write()
150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
155 static void psc724_set_master_switch(struct snd_ice1712 *ice, bool on) in psc724_set_master_switch() argument
157 unsigned int bits = snd_ice1712_gpio_read(ice); in psc724_set_master_switch()
158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch()
165 snd_ice1712_gpio_write(ice, bits); in psc724_set_master_switch()
168 static bool psc724_get_master_switch(struct snd_ice1712 *ice) in psc724_get_master_switch() argument
170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch()
177 static void psc724_set_jack_state(struct snd_ice1712 *ice, bool hp_connected) in psc724_set_jack_state() argument
179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state()
184 psc724_set_master_switch(ice, !hp_connected); in psc724_set_jack_state()
194 kctl = snd_ctl_find_id(ice->card, &elem_id); in psc724_set_jack_state()
195 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
199 kctl = snd_ctl_find_id(ice->card, &elem_id); in psc724_set_jack_state()
200 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
207 struct snd_ice1712 *ice = spec->ice; in psc724_update_hp_jack_state() local
208 bool hp_connected = snd_ice1712_gpio_read(ice) & GPIO_HP_JACK; in psc724_update_hp_jack_state()
213 psc724_set_jack_state(ice, hp_connected); in psc724_update_hp_jack_state()
216 static void psc724_set_jack_detection(struct snd_ice1712 *ice, bool on) in psc724_set_jack_detection() argument
218 struct psc724_spec *spec = ice->spec; in psc724_set_jack_detection()
225 bool hp_connected = snd_ice1712_gpio_read(ice) & GPIO_HP_JACK; in psc724_set_jack_detection()
226 psc724_set_jack_state(ice, hp_connected); in psc724_set_jack_detection()
233 static bool psc724_get_jack_detection(struct snd_ice1712 *ice) in psc724_get_jack_detection() argument
235 struct psc724_spec *spec = ice->spec; in psc724_get_jack_detection()
244 void (*set)(struct snd_ice1712 *ice, bool on);
245 bool (*get)(struct snd_ice1712 *ice);
264 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_get() local
267 ucontrol->value.integer.value[0] = psc724_cont[n].get(ice); in psc724_ctl_get()
275 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_put() local
278 psc724_cont[n].set(ice, ucontrol->value.integer.value[0]); in psc724_ctl_put()
305 static int psc724_add_controls(struct snd_ice1712 *ice) in psc724_add_controls() argument
310 struct psc724_spec *spec = ice->spec; in psc724_add_controls()
350 ctl = snd_ctl_new1(&cont, ice); in psc724_add_controls()
353 err = snd_ctl_add(ice->card, ctl); in psc724_add_controls()
361 static void psc724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate) in psc724_set_pro_rate() argument
363 struct psc724_spec *spec = ice->spec; in psc724_set_pro_rate()
372 static int psc724_resume(struct snd_ice1712 *ice) in psc724_resume() argument
374 struct psc724_spec *spec = ice->spec; in psc724_resume()
385 static int psc724_init(struct snd_ice1712 *ice) in psc724_init() argument
392 ice->spec = spec; in psc724_init()
393 spec->ice = ice; in psc724_init()
395 ice->num_total_dacs = 6; in psc724_init()
396 ice->num_total_adcs = 2; in psc724_init()
398 spec->wm8776.card = ice->card; in psc724_init()
401 spec->wm8766.card = ice->card; in psc724_init()
403 ice->pm_resume = psc724_resume; in psc724_init()
404 ice->pm_suspend_enabled = 1; in psc724_init()
409 ice->gpio.set_pro_rate = psc724_set_pro_rate; in psc724_init()
411 psc724_set_jack_detection(ice, true); in psc724_init()
415 static void psc724_exit(struct snd_ice1712 *ice) in psc724_exit() argument
417 struct psc724_spec *spec = ice->spec; in psc724_exit()