• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/ice1712/

Lines Matching refs:ice

40 #define ICEREG(ice, x) ((ice)->port + ICE1712_REG_##x)
114 #define ICEDS(ice, x) ((ice)->dmapath_port + ICE1712_DS_##x)
145 #define ICEMT(ice, x) ((ice)->profi_port + ICE1712_MT_##x)
257 #define ice_has_con_ac97(ice) (!((ice)->eeprom.data[ICE_EEP1_CODEC] & ICE1712_CFG_NO_CON_AC97))
358 void (*set_mask)(struct snd_ice1712 *ice, unsigned int data);
359 void (*set_dir)(struct snd_ice1712 *ice, unsigned int data);
360 void (*set_data)(struct snd_ice1712 *ice, unsigned int data);
361 unsigned int (*get_data)(struct snd_ice1712 *ice);
363 void (*set_pro_rate)(struct snd_ice1712 *ice, unsigned int rate);
364 void (*i2s_mclk_changed)(struct snd_ice1712 *ice);
411 static inline void snd_ice1712_gpio_set_dir(struct snd_ice1712 *ice, unsigned int bits)
413 ice->gpio.set_dir(ice, bits);
416 static inline void snd_ice1712_gpio_set_mask(struct snd_ice1712 *ice, unsigned int bits)
418 ice->gpio.set_mask(ice, bits);
421 static inline void snd_ice1712_gpio_write(struct snd_ice1712 *ice, unsigned int val)
423 ice->gpio.set_data(ice, val);
426 static inline unsigned int snd_ice1712_gpio_read(struct snd_ice1712 *ice)
428 return ice->gpio.get_data(ice);
436 static inline void snd_ice1712_save_gpio_status(struct snd_ice1712 *ice)
438 mutex_lock(&ice->gpio_mutex);
439 ice->gpio.saved[0] = ice->gpio.direction;
440 ice->gpio.saved[1] = ice->gpio.write_mask;
443 static inline void snd_ice1712_restore_gpio_status(struct snd_ice1712 *ice)
445 ice->gpio.set_dir(ice, ice->gpio.saved[0]);
446 ice->gpio.set_mask(ice, ice->gpio.saved[1]);
447 ice->gpio.direction = ice->gpio.saved[0];
448 ice->gpio.write_mask = ice->gpio.saved[1];
449 mutex_unlock(&ice->gpio_mutex);
465 static inline void snd_ice1712_gpio_write_bits(struct snd_ice1712 *ice,
468 ice->gpio.direction |= mask;
469 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction);
470 snd_ice1712_gpio_set_mask(ice, ~mask);
471 snd_ice1712_gpio_write(ice, mask & bits);
474 static inline int snd_ice1712_gpio_read_bits(struct snd_ice1712 *ice,
477 ice->gpio.direction &= ~mask;
478 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction);
479 return (snd_ice1712_gpio_read(ice) & mask);
482 int snd_ice1712_spdif_build_controls(struct snd_ice1712 *ice);
485 const struct snd_ak4xxx_private *priv, struct snd_ice1712 *ice);
486 void snd_ice1712_akm4xxx_free(struct snd_ice1712 *ice);
487 int snd_ice1712_akm4xxx_build_controls(struct snd_ice1712 *ice);
489 int snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr);
491 static inline void snd_ice1712_write(struct snd_ice1712 * ice, u8 addr, u8 data)
493 outb(addr, ICEREG(ice, INDEX));
494 outb(data, ICEREG(ice, DATA));
497 static inline u8 snd_ice1712_read(struct snd_ice1712 * ice, u8 addr)
499 outb(addr, ICEREG(ice, INDEX));
500 return inb(ICEREG(ice, DATA));