• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/ice1712/

Lines Matching defs:ice

41 static void revo_i2s_mclk_changed(struct snd_ice1712 *ice)
44 outb(inb(ICEMT1724(ice, AC97_CMD)) | 0x80, ICEMT1724(ice, AC97_CMD));
47 outb(inb(ICEMT1724(ice, AC97_CMD)) & ~0x80, ICEMT1724(ice, AC97_CMD));
97 struct snd_ice1712 *ice = bus->private_data;
98 snd_ice1712_save_gpio_status(ice);
103 struct snd_ice1712 *ice = bus->private_data;
104 snd_ice1712_restore_gpio_status(ice);
109 struct snd_ice1712 *ice = bus->private_data;
118 ice->gpio.direction &= ~mask;
119 ice->gpio.direction |= val;
120 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction);
121 snd_ice1712_gpio_set_mask(ice, ~mask);
126 struct snd_ice1712 *ice = bus->private_data;
133 snd_ice1712_gpio_write_bits(ice,
141 struct snd_ice1712 *ice = bus->private_data;
146 bit = snd_ice1712_gpio_read_bits(ice, VT1724_REVO_I2C_DATA) ? 1 : 0;
158 static int revo51_i2c_init(struct snd_ice1712 *ice,
167 ice->spec = spec;
170 err = snd_i2c_bus_create(ice->card, "ICE1724 GPIO6", NULL, &ice->i2c);
174 ice->i2c->private_data = ice;
175 ice->i2c->hw_ops.bit = &revo51_bit_ops;
178 err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev);
182 pt->card = ice->card;
183 pt->i2c_bus = ice->i2c;
325 struct snd_ice1712 *ice = ak->private_data[0];
331 snd_ice1712_gpio_write_bits(ice, 1 << 8, rate > 96000 ? 1 << 8 : 0);
339 snd_ice1712_gpio_write_bits(ice, 3 << 9, dfs << 9);
341 snd_ice1712_gpio_write_bits(ice, 1 << 11, 0);
342 snd_ice1712_gpio_write_bits(ice, 1 << 11, 1 << 11);
378 static void write_data(struct snd_ice1712 *ice, unsigned int gpio,
384 snd_ice1712_gpio_write(ice, gpio);
391 snd_ice1712_gpio_write(ice, gpio);
395 snd_ice1712_gpio_write(ice, gpio);
400 static unsigned char read_data(struct snd_ice1712 *ice, unsigned int gpio,
408 snd_ice1712_gpio_write(ice, gpio);
411 if (snd_ice1712_gpio_read(ice) & VT1724_REVO_CDIN)
416 snd_ice1712_gpio_write(ice, gpio);
422 static unsigned int ap192_4wire_start(struct snd_ice1712 *ice)
426 snd_ice1712_save_gpio_status(ice);
427 tmp = snd_ice1712_gpio_read(ice);
431 snd_ice1712_gpio_write(ice, tmp);
436 static void ap192_4wire_finish(struct snd_ice1712 *ice, unsigned int tmp)
440 snd_ice1712_gpio_write(ice, tmp);
442 snd_ice1712_restore_gpio_status(ice);
448 struct snd_ice1712 *ice = private_data;
451 tmp = ap192_4wire_start(ice);
454 write_data(ice, tmp, addrdata, 15);
455 ap192_4wire_finish(ice, tmp);
460 struct snd_ice1712 *ice = private_data;
464 tmp = ap192_4wire_start(ice);
465 write_data(ice, tmp, (AK4114_ADDR << 6) | (addr & 0x1f), 7);
466 data = read_data(ice, tmp, 7);
467 ap192_4wire_finish(ice, tmp);
471 static int __devinit ap192_ak4114_init(struct snd_ice1712 *ice)
487 err = snd_ak4114_create(ice->card,
491 ice, &ak);
499 static int __devinit revo_init(struct snd_ice1712 *ice)
505 switch (ice->eeprom.subvendor) {
507 ice->num_total_dacs = 8;
508 ice->num_total_adcs = 2;
509 ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
512 ice->num_total_dacs = 8;
513 ice->num_total_adcs = 2;
516 ice->num_total_dacs = 2;
517 ice->num_total_adcs = 2;
525 ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL);
528 switch (ice->eeprom.subvendor) {
530 ice->akm_codecs = 2;
532 &akm_revo_front_priv, ice);
536 &akm_revo_surround_priv, ice);
540 snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE,
544 ice->akm_codecs = 2;
546 &akm_revo51_priv, ice);
550 &akm_revo51_adc_priv, ice);
553 err = revo51_i2c_init(ice, &ptc_revo51_volume);
557 snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE,
561 ice->akm_codecs = 1;
563 ice);
568 snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE,
577 static int __devinit revo_add_controls(struct snd_ice1712 *ice)
582 switch (ice->eeprom.subvendor) {
584 err = snd_ice1712_akm4xxx_build_controls(ice);
589 err = snd_ice1712_akm4xxx_build_controls(ice);
592 spec = ice->spec;
598 err = snd_ice1712_akm4xxx_build_controls(ice);
601 err = ap192_ak4114_init(ice);