| /linux/sound/pci/ice1712/ |
| H A D | ice1712.c | 95 static int snd_ice1712_build_pro_mixer(struct snd_ice1712 *ice); 96 static int snd_ice1712_build_controls(struct snd_ice1712 *ice); 107 static inline int is_spdif_master(struct snd_ice1712 *ice) in is_spdif_master() argument 109 return (inb(ICEMT(ice, RATE)) & ICE1712_SPDIF_MASTER) ? 1 : 0; in is_spdif_master() 112 static inline int is_pro_rate_locked(struct snd_ice1712 *ice) in is_pro_rate_locked() argument 114 return is_spdif_master(ice) || PRO_RATE_LOCKED; in is_pro_rate_locked() 117 static inline void snd_ice1712_ds_write(struct snd_ice1712 *ice, u8 channel, u8 addr, u32 data) in snd_ice1712_ds_write() argument 119 outb((channel << 4) | addr, ICEDS(ice, INDEX)); in snd_ice1712_ds_write() 120 outl(data, ICEDS(ice, DATA)); in snd_ice1712_ds_write() 123 static inline u32 snd_ice1712_ds_read(struct snd_ice1712 *ice, u argument 133 struct snd_ice1712 *ice = ac97->private_data; snd_ice1712_ac97_write() local 157 struct snd_ice1712 *ice = ac97->private_data; snd_ice1712_ac97_read() local 187 struct snd_ice1712 *ice = ac97->private_data; snd_ice1712_pro_ac97_write() local 212 struct snd_ice1712 *ice = ac97->private_data; snd_ice1712_pro_ac97_read() local 241 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_digmix_route_ac97_get() local 249 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_digmix_route_ac97_put() local 273 snd_ice1712_set_gpio_dir(struct snd_ice1712 * ice,unsigned int data) snd_ice1712_set_gpio_dir() argument 279 snd_ice1712_get_gpio_dir(struct snd_ice1712 * ice) snd_ice1712_get_gpio_dir() argument 284 snd_ice1712_get_gpio_mask(struct snd_ice1712 * ice) snd_ice1712_get_gpio_mask() argument 289 snd_ice1712_set_gpio_mask(struct snd_ice1712 * ice,unsigned int data) snd_ice1712_set_gpio_mask() argument 295 snd_ice1712_get_gpio_data(struct snd_ice1712 * ice) snd_ice1712_get_gpio_data() argument 300 snd_ice1712_set_gpio_data(struct snd_ice1712 * ice,unsigned int val) snd_ice1712_set_gpio_data() argument 316 snd_ice1712_cs8427_set_input_clock(struct snd_ice1712 * ice,int spdif_clock) snd_ice1712_cs8427_set_input_clock() argument 351 open_cs8427(struct snd_ice1712 * ice,struct snd_pcm_substream * substream) open_cs8427() argument 356 close_cs8427(struct snd_ice1712 * ice,struct snd_pcm_substream * substream) close_cs8427() argument 361 setup_cs8427(struct snd_ice1712 * ice,int rate) setup_cs8427() argument 369 snd_ice1712_init_cs8427(struct snd_ice1712 * ice,int addr) snd_ice1712_init_cs8427() argument 385 snd_ice1712_set_input_clock_source(struct snd_ice1712 * ice,int spdif_is_master) snd_ice1712_set_input_clock_source() argument 406 struct snd_ice1712 *ice = dev_id; snd_ice1712_interrupt() local 482 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_trigger() local 506 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_ds_trigger() local 530 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_trigger() local 549 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_prepare() local 581 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_ds_prepare() local 614 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_prepare() local 639 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pointer() local 654 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_ds_pointer() local 674 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pointer() local 745 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_open() local 755 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_ds_open() local 769 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_open() local 781 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_close() local 789 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_ds_close() local 801 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_close() local 831 snd_ice1712_pcm(struct snd_ice1712 * ice,int device) snd_ice1712_pcm() argument 857 snd_ice1712_pcm_ds(struct snd_ice1712 * ice,int device) snd_ice1712_pcm_ds() argument 895 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_pro_trigger() local 948 snd_ice1712_set_pro_rate(struct snd_ice1712 * ice,unsigned int rate,int force) snd_ice1712_set_pro_rate() argument 1002 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pro_prepare() local 1016 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pro_hw_params() local 1024 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pro_prepare() local 1037 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pro_hw_params() local 1045 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pro_pointer() local 1059 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pro_pointer() local 1112 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pro_open() local 1132 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pro_open() local 1150 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_playback_pro_close() local 1163 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_ice1712_capture_pro_close() local 1189 snd_ice1712_pcm_profi(struct snd_ice1712 * ice,int device) snd_ice1712_pcm_profi() argument 1226 snd_ice1712_update_volume(struct snd_ice1712 * ice,int index) snd_ice1712_update_volume() argument 1241 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_mixer_switch_get() local 1255 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_mixer_switch_put() local 1281 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_mixer_volume_get() local 1295 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_mixer_volume_put() local 1377 snd_ice1712_build_pro_mixer(struct snd_ice1712 * ice) snd_ice1712_build_pro_mixer() argument 1432 struct snd_ice1712 *ice = ac97->private_data; snd_ice1712_mixer_free_ac97() local 1436 snd_ice1712_ac97_mixer(struct snd_ice1712 * ice) snd_ice1712_ac97_mixer() argument 1491 eeprom_double(struct snd_ice1712 * ice,int idx) eeprom_double() argument 1499 struct snd_ice1712 *ice = entry->private_data; snd_ice1712_proc_read() local 1536 snd_ice1712_proc_init(struct snd_ice1712 * ice) snd_ice1712_proc_init() argument 1556 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_eeprom_get() local 1583 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_default_get() local 1592 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_default_put() local 1610 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_maskc_get() local 1632 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_maskp_get() local 1670 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_stream_get() local 1679 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_spdif_stream_put() local 1699 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_gpio_get() local 1713 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_gpio_put() local 1758 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_internal_clock_get() local 1781 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_internal_clock_put() local 1894 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_rate_locking_put() local 1924 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_rate_reset_put() local 1962 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_route_analog_get() local 1988 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_route_analog_put() local 2038 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_route_spdif_get() local 2058 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_route_spdif_put() local 2124 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_volume_rate_get() local 2133 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_volume_rate_put() local 2163 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_ice1712_pro_peak_get() local 2196 snd_ice1712_read_i2c(struct snd_ice1712 * ice,unsigned char dev,unsigned char addr) snd_ice1712_read_i2c() argument 2208 snd_ice1712_read_eeprom(struct snd_ice1712 * ice,const char * modelname) snd_ice1712_read_eeprom() argument 2286 snd_ice1712_chip_init(struct snd_ice1712 * ice) snd_ice1712_chip_init() argument 2341 snd_ice1712_spdif_build_controls(struct snd_ice1712 * ice) snd_ice1712_spdif_build_controls() argument 2381 snd_ice1712_build_controls(struct snd_ice1712 * ice) snd_ice1712_build_controls() argument 2423 struct snd_ice1712 *ice = card->private_data; snd_ice1712_free() local 2442 struct snd_ice1712 *ice = card->private_data; snd_ice1712_create() local 2527 struct snd_ice1712 *ice; snd_ice1712_probe() local 2652 struct snd_ice1712 *ice = card->private_data; snd_ice1712_suspend() local 2675 struct snd_ice1712 *ice = card->private_data; snd_ice1712_resume() local [all...] |
| H A D | pontis.c | 67 static unsigned short wm_get(struct snd_ice1712 *ice, int reg) in wm_get() argument 70 return ((unsigned short)ice->akm[0].images[reg] << 8) | in wm_get() 71 ice->akm[0].images[reg + 1]; in wm_get() 77 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() argument 81 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put_nocache() 84 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() argument 86 wm_put_nocache(ice, reg, val); in wm_put() 88 ice->akm[0].images[reg] = val >> 8; in wm_put() 89 ice->akm[0].images[reg + 1] = val; in wm_put() 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get() local [all …]
|
| H A D | delta.c | 33 static void ap_cs8427_write_byte(struct snd_ice1712 *ice, unsigned char data, unsigned char tmp) in ap_cs8427_write_byte() argument 41 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte() 44 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_write_byte() 50 static unsigned char ap_cs8427_read_byte(struct snd_ice1712 *ice, unsigned char tmp) in ap_cs8427_read_byte() argument 57 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_read_byte() 59 if (snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & ICE1712_DELTA_AP_DIN) in ap_cs8427_read_byte() 62 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ap_cs8427_read_byte() 69 static unsigned char ap_cs8427_codec_select(struct snd_ice1712 *ice) in ap_cs8427_codec_select() argument 72 tmp = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA); in ap_cs8427_codec_select() 73 switch (ice->eeprom.subvendor) { in ap_cs8427_codec_select() [all …]
|
| H A D | ews.c | 44 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_setlines() local 50 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, tmp); in ewx_i2c_setlines() 56 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getclock() local 57 return snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & ICE1712_EWX2496_SERIAL_CLOCK ? 1 : 0; in ewx_i2c_getclock() 62 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getdata() local 65 snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK, ~ICE1712_EWX2496_RW); in ewx_i2c_getdata() 66 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, 0); in ewx_i2c_getdata() 69 bit = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & ICE1712_EWX2496_SERIAL_DATA ? 1 : 0; in ewx_i2c_getdata() 71 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, ICE1712_EWX2496_RW); in ewx_i2c_getdata() 73 snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK, ~ICE1712_EWX2496_SERIAL_CLOCK); in ewx_i2c_getdata() [all …]
|
| H A D | se.c | 102 static void se200pci_WM8740_init(struct snd_ice1712 *ice) in se200pci_WM8740_init() argument 108 static void se200pci_WM8740_set_pro_rate(struct snd_ice1712 *ice, in se200pci_WM8740_set_pro_rate() argument 119 static void se200pci_WM8766_write(struct snd_ice1712 *ice, in se200pci_WM8766_write() argument 130 snd_ice1712_save_gpio_status(ice); in se200pci_WM8766_write() 133 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction | ALL_MASK); in se200pci_WM8766_write() 134 snd_ice1712_gpio_set_mask(ice, ice->gpio.write_mask & ~ALL_MASK); in se200pci_WM8766_write() 135 bits = snd_ice1712_gpio_read(ice) & ~ALL_MASK; in se200pci_WM8766_write() 137 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write() 147 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write() 151 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write() [all …]
|
| H A D | hoontech.c | 28 static void snd_ice1712_stdsp24_gpio_write(struct snd_ice1712 *ice, unsigned char byte) in snd_ice1712_stdsp24_gpio_write() argument 32 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, byte); in snd_ice1712_stdsp24_gpio_write() 35 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, byte); in snd_ice1712_stdsp24_gpio_write() 38 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, byte); in snd_ice1712_stdsp24_gpio_write() 41 static void snd_ice1712_stdsp24_darear(struct snd_ice1712 *ice, int activate) in snd_ice1712_stdsp24_darear() argument 43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() 45 guard(mutex)(&ice->gpio_mutex); in snd_ice1712_stdsp24_darear() 47 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear() 50 static void snd_ice1712_stdsp24_mute(struct snd_ice1712 *ice, int activate) in snd_ice1712_stdsp24_mute() argument 52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() [all …]
|
| H A D | quartet.c | 33 void (*set_register)(struct snd_ice1712 *ice, unsigned int val); 34 unsigned int (*get_register)(struct snd_ice1712 *ice); 263 struct snd_ice1712 *ice = ak->private_data[0]; in qtet_akm_write() local 269 orig_dir = ice->gpio.get_dir(ice); in qtet_akm_write() 270 ice->gpio.set_dir(ice, orig_dir | GPIO_SPI_ALL); in qtet_akm_write() 272 ice->gpio.set_mask(ice, ~GPIO_SPI_ALL); in qtet_akm_write() 274 tmp = ice->gpio.get_data(ice); in qtet_akm_write() 277 ice->gpio.set_data(ice, tmp); in qtet_akm_write() 285 ice->gpio.set_data(ice, tmp); in qtet_akm_write() 294 ice->gpio.set_data(ice, tmp); in qtet_akm_write() [all …]
|
| H A D | ice1712.h | 27 #define ICEREG(ice, x) ((ice)->port + ICE1712_REG_##x) argument 104 #define ICEDS(ice, x) ((ice)->dmapath_port + ICE1712_DS_##x) argument 135 #define ICEMT(ice, x) ((ice)->profi_port + ICE1712_MT_##x) argument 248 #define ice_has_con_ac97(ice) (!((ice)->eeprom.data[ICE_EEP1_CODEC] & ICE1712_CFG_NO_CON_AC97)) argument 354 void (*set_mask)(struct snd_ice1712 *ice, unsigned int data); 355 unsigned int (*get_mask)(struct snd_ice1712 *ice); 356 void (*set_dir)(struct snd_ice1712 *ice, unsigned int data); 357 unsigned int (*get_dir)(struct snd_ice1712 *ice); 358 void (*set_data)(struct snd_ice1712 *ice, unsigned int data); 359 unsigned int (*get_data)(struct snd_ice1712 *ice); [all …]
|
| H A D | revo.c | 27 static void revo_i2s_mclk_changed(struct snd_ice1712 *ice) in revo_i2s_mclk_changed() argument 30 outb(inb(ICEMT1724(ice, AC97_CMD)) | 0x80, ICEMT1724(ice, AC97_CMD)); in revo_i2s_mclk_changed() 33 outb(inb(ICEMT1724(ice, AC97_CMD)) & ~0x80, ICEMT1724(ice, AC97_CMD)); in revo_i2s_mclk_changed() 83 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_start() local 84 snd_ice1712_save_gpio_status(ice); in revo_i2c_start() 89 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_stop() local 90 snd_ice1712_restore_gpio_status(ice); in revo_i2c_stop() 95 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_direction() local 104 ice->gpio.direction &= ~mask; in revo_i2c_direction() 105 ice->gpio.direction |= val; in revo_i2c_direction() [all …]
|
| H A D | aureon.c | 97 static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg, in aureon_pca9554_write() argument 105 tmp = snd_ice1712_gpio_read(ice); in aureon_pca9554_write() 107 snd_ice1712_gpio_set_mask(ice, ~(AUREON_SPI_MOSI|AUREON_SPI_CLK| in aureon_pca9554_write() 115 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 123 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 126 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 129 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 132 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 152 snd_ice1712_gpio_write(ice, tmp); in aureon_pca9554_write() 158 snd_ice1712_gpio_write(ice, tm in aureon_pca9554_write() 200 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_universe_inmux_get() local 209 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_universe_inmux_put() local 229 aureon_ac97_write(struct snd_ice1712 * ice,unsigned short reg,unsigned short val) aureon_ac97_write() argument 283 aureon_ac97_read(struct snd_ice1712 * ice,unsigned short reg) aureon_ac97_read() argument 292 aureon_ac97_init(struct snd_ice1712 * ice) aureon_ac97_init() argument 358 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_vol_get() local 373 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_vol_put() local 401 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_mute_get() local 413 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_mute_put() local 438 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_micboost_get() local 449 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_micboost_put() local 470 aureon_spi_write(struct snd_ice1712 * ice,unsigned int cs,unsigned int data,int bits) aureon_spi_write() argument 523 aureon_spi_read(struct snd_ice1712 * ice,unsigned int cs,unsigned int data,int bits,unsigned char * buffer,int size) aureon_spi_read() argument 575 aureon_cs8415_get(struct snd_ice1712 * ice,int reg) aureon_cs8415_get() argument 583 aureon_cs8415_read(struct snd_ice1712 * ice,int reg,unsigned char * buffer,int size) aureon_cs8415_read() argument 590 aureon_cs8415_put(struct snd_ice1712 * ice,int reg,unsigned char val) aureon_cs8415_put() argument 599 wm_get(struct snd_ice1712 * ice,int reg) wm_get() argument 609 wm_put_nocache(struct snd_ice1712 * ice,int reg,unsigned short val) wm_put_nocache() argument 621 wm_put(struct snd_ice1712 * ice,int reg,unsigned short val) wm_put() argument 640 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_mmute_get() local 651 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_ac97_mmute_put() local 678 wm_set_vol(struct snd_ice1712 * ice,unsigned int index,unsigned short vol,unsigned short master) wm_set_vol() argument 701 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_pcm_mute_get() local 710 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_pcm_mute_put() local 739 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_master_vol_get() local 750 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_master_vol_put() local 789 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_vol_get() local 803 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_vol_put() local 842 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_mute_get() local 857 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_mute_put() local 888 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_master_mute_get() local 900 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_master_mute_put() local 939 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_pcm_vol_get() local 951 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_pcm_vol_put() local 977 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_mute_get() local 991 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_mute_put() local 1023 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_vol_get() local 1038 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_vol_put() local 1079 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_mux_info() local 1089 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_mux_get() local 1101 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); wm_adc_mux_put() local 1122 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_mux_info() local 1139 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_mux_get() local 1151 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_mux_put() local 1179 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_rate_get() local 1193 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_mute_get() local 1202 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_mute_put() local 1230 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_qsub_get() local 1254 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_cs8415_spdif_get() local 1265 aureon_set_headphone_amp(struct snd_ice1712 * ice,int enable) aureon_set_headphone_amp() argument 1289 aureon_get_headphone_amp(struct snd_ice1712 * ice) aureon_get_headphone_amp() argument 1300 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_hpamp_get() local 1309 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_hpamp_put() local 1322 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_deemp_get() local 1329 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_deemp_put() local 1355 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_oversampling_get() local 1363 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); aureon_oversampling_put() local 1846 aureon_add_controls(struct snd_ice1712 * ice) aureon_add_controls() argument 1909 aureon_reset(struct snd_ice1712 * ice) aureon_reset() argument 2054 aureon_resume(struct snd_ice1712 * ice) aureon_resume() argument 2074 aureon_init(struct snd_ice1712 * ice) aureon_init() argument [all...] |
| H A D | prodigy_hifi.c | 113 static unsigned short wm_get(struct snd_ice1712 *ice, int reg) in wm_get() argument 116 return ((unsigned short)ice->akm[0].images[reg] << 8) | in wm_get() 117 ice->akm[0].images[reg + 1]; in wm_get() 123 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() argument 127 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put_nocache() 130 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() argument 132 wm_put_nocache(ice, reg, val); in wm_put() 134 ice->akm[0].images[reg] = val >> 8; in wm_put() 135 ice->akm[0].images[reg + 1] = val; in wm_put() 142 static void set_gpio_bit(struct snd_ice1712 *ice, unsigned int bit, int val) in set_gpio_bit() argument [all …]
|
| H A D | juli.c | 166 static void juli_spdif_in_open(struct snd_ice1712 *ice, in juli_spdif_in_open() argument 169 struct juli_spec *spec = ice->spec; in juli_spdif_in_open() 174 !ice->is_spdif_master(ice)) in juli_spdif_in_open() 198 struct snd_ice1712 *ice = ak->private_data[0]; in juli_akm_write() local 202 snd_vt1724_write_i2c(ice, AK4358_ADDR, addr, data); in juli_akm_write() 212 struct snd_ice1712 *ice = ak->private_data[0]; in juli_akm_set_rate_val() local 213 struct juli_spec *spec = ice->spec; in juli_akm_set_rate_val() 231 old_gpio = ice->gpio.get_data(ice); in juli_akm_set_rate_val() 235 ice->gpio.set_data(ice, new_gpio); in juli_akm_set_rate_val() 238 old = inb(ICEMT1724(ice, AC97_CMD)); in juli_akm_set_rate_val() [all …]
|
| H A D | prodigy192.c | 61 static inline void stac9460_put(struct snd_ice1712 *ice, int reg, unsigned char val) in stac9460_put() argument 63 snd_vt1724_write_i2c(ice, PRODIGY192_STAC9460_ADDR, reg, val); in stac9460_put() 66 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) in stac9460_get() argument 68 return snd_vt1724_read_i2c(ice, PRODIGY192_STAC9460_ADDR, reg); in stac9460_get() 78 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() argument 83 old = stac9460_get(ice, idx); in stac9460_dac_mute() 88 stac9460_put(ice, idx, new); in stac9460_dac_mute() 96 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() local 104 val = stac9460_get(ice, idx); in stac9460_dac_mute_get() 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() local [all …]
|
| H A D | phase.c | 109 static int phase22_init(struct snd_ice1712 *ice) in phase22_init() argument 115 switch (ice->eeprom.subvendor) { in phase22_init() 118 ice->num_total_dacs = 2; in phase22_init() 119 ice->num_total_adcs = 2; in phase22_init() 120 ice->vt1720 = 1; /* Envy24HT-S have 16 bit wide GPIO */ in phase22_init() 128 ice->akm = kzalloc_obj(struct snd_akm4xxx); in phase22_init() 129 ak = ice->akm; in phase22_init() 132 ice->akm_codecs = 1; in phase22_init() 133 switch (ice->eeprom.subvendor) { in phase22_init() 137 &akm_phase22_priv, ice); in phase22_init() [all …]
|
| H A D | psc724.c | 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() [all …]
|
| H A D | wtm.c | 35 static inline void stac9460_put(struct snd_ice1712 *ice, int reg, in stac9460_put() argument 38 snd_vt1724_write_i2c(ice, STAC9460_I2C_ADDR, reg, val); in stac9460_put() 41 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) in stac9460_get() argument 43 return snd_vt1724_read_i2c(ice, STAC9460_I2C_ADDR, reg); in stac9460_get() 49 static inline void stac9460_2_put(struct snd_ice1712 *ice, int reg, in stac9460_2_put() argument 52 snd_vt1724_write_i2c(ice, STAC9460_2_I2C_ADDR, reg, val); in stac9460_2_put() 55 static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg) in stac9460_2_get() argument 57 return snd_vt1724_read_i2c(ice, STAC9460_2_I2C_ADDR, reg); in stac9460_2_get() 64 static void stac9460_dac_mute_all(struct snd_ice1712 *ice, unsigned char mute, in stac9460_dac_mute_all() argument 77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all() [all …]
|
| H A D | ak4xxx.c | 26 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_lock() local 28 snd_ice1712_save_gpio_status(ice); in snd_ice1712_akm4xxx_lock() 33 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_unlock() local 35 snd_ice1712_restore_gpio_status(ice); in snd_ice1712_akm4xxx_unlock() 48 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_write() local 53 tmp = snd_ice1712_gpio_read(ice); in snd_ice1712_akm4xxx_write() 61 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write() 68 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write() 78 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write() 85 snd_ice1712_gpio_write(ice, tmp); in snd_ice1712_akm4xxx_write() [all …]
|
| H A D | amp.c | 19 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() argument 23 snd_vt1724_write_i2c(ice, WM_DEV, cval >> 8, cval & 0xff); in wm_put() 26 static int snd_vt1724_amp_init(struct snd_ice1712 *ice) in snd_vt1724_amp_init() argument 40 ice->num_total_dacs = 6; in snd_vt1724_amp_init() 41 ice->num_total_adcs = 2; in snd_vt1724_amp_init() 46 if (ice->eeprom.subvendor == VT1724_SUBDEVICE_AV710) { in snd_vt1724_amp_init() 48 wm_put(ice, wm_inits[i], wm_inits[i+1]); in snd_vt1724_amp_init() 54 static int snd_vt1724_amp_add_controls(struct snd_ice1712 *ice) in snd_vt1724_amp_add_controls() argument 56 if (ice->ac97) in snd_vt1724_amp_add_controls() 59 snd_ac97_write_cache(ice->ac97, 0x5a, in snd_vt1724_amp_add_controls() [all …]
|
| H A D | maya44.c | 69 struct snd_ice1712 *ice; member 76 static void wm8776_write(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write() argument 83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write() 92 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() argument 98 wm8776_write(ice, wm, reg, val); in wm8776_write_bits() 207 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 210 wm8776_write_bits(chip->ice, wm, WM8776_REG_ADC_MUX, in maya_vol_put() 258 changed = wm8776_write_bits(chip->ice, wm, in maya_sw_put() 280 static int maya_set_gpio_bits(struct snd_ice1712 *ice, unsigned int mask, in maya_set_gpio_bits() argument 284 data = snd_ice1712_gpio_read(ice); in maya_set_gpio_bits() [all …]
|
| H A D | vt1720_mobo.c | 20 static int k8x800_init(struct snd_ice1712 *ice) in k8x800_init() argument 22 ice->vt1720 = 1; in k8x800_init() 25 ice->num_total_dacs = 6; in k8x800_init() 26 ice->num_total_adcs = 2; in k8x800_init() 34 static int k8x800_add_controls(struct snd_ice1712 *ice) in k8x800_add_controls() argument
|
| H A D | envy24ht.h | 39 #define ICEREG1724(ice, x) ((ice)->port + VT1724_REG_##x) argument 117 #define ICEMT1724(ice, x) ((ice)->profi_port + VT1724_MT_##x) argument 203 unsigned char snd_vt1724_read_i2c(struct snd_ice1712 *ice, unsigned char dev, unsigned char addr); 204 void snd_vt1724_write_i2c(struct snd_ice1712 *ice, unsigned char dev, unsigned char addr, unsigned …
|
| /linux/include/soc/qcom/ |
| H A D | ice.h | 14 int qcom_ice_enable(struct qcom_ice *ice); 15 int qcom_ice_resume(struct qcom_ice *ice); 16 int qcom_ice_suspend(struct qcom_ice *ice); 17 int qcom_ice_program_key(struct qcom_ice *ice, unsigned int slot, 19 int qcom_ice_evict_key(struct qcom_ice *ice, int slot); 20 enum blk_crypto_key_type qcom_ice_get_supported_key_type(struct qcom_ice *ice); 21 int qcom_ice_derive_sw_secret(struct qcom_ice *ice, 24 int qcom_ice_generate_key(struct qcom_ice *ice, 26 int qcom_ice_prepare_key(struct qcom_ice *ice, 29 int qcom_ice_import_key(struct qcom_ice *ice,
|
| /linux/Documentation/networking/devlink/ |
| H A D | ice.rst | 4 ice devlink support 7 This document describes the devlink features implemented by the ``ice`` 27 - The ice hardware uses hierarchical scheduling for Tx with a fixed 111 The ``ice`` driver reports the following versions 203 The ``ice`` driver implements support for flash update using the 226 The ice hardware does not support overwriting only identifiers while 234 The ``ice`` driver supports activating new firmware after a flash update 252 The ``ice`` driver supports port splitting only for port 0, as the FW has 268 ice 0000:16:00.0: Available port split options and max port speeds (Gbps): 269 ice 0000:16:00.0: Status Split Quad 0 Quad 1 [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | ice.rst | 7 Intel ice Linux driver. 156 ``intel/ice/ddp/ice.pkg`` in your firmware root (typically ``/lib/firmware/`` 161 ice.pkg is missing, you can find it in the linux-firmware repository or from 177 - The ice.pkg file is a symbolic link to the default DDP package file. 190 2. Rename the file ice-xxxxxxxxxxxxxxxx.pkg, where 'xxxxxxxxxxxxxxxx' is the 195 ice-b887a3ffffca0568.pkg. 210 ``/lib/firmware/updates/intel/ice/ddp/``. If the directory does not yet 218 of the default DDP package file (ice.pkg). 342 The ice driver does not support matching on a subportion of a field, thus 520 The maximum number of VFs for the ice driver is 256 total (all ports). To check [all …]
|
| /linux/drivers/ufs/host/ |
| H A D | ufs-qcom.c | 163 qcom_ice_enable(host->ice); in ufs_qcom_ice_enable() 173 struct qcom_ice *ice; in ufs_qcom_ice_init() local 179 ice = devm_of_qcom_ice_get(dev); in ufs_qcom_ice_init() 180 if (IS_ERR(ice)) { in ufs_qcom_ice_init() 181 if (ice != ERR_PTR(-EOPNOTSUPP)) in ufs_qcom_ice_init() 182 return PTR_ERR(ice); in ufs_qcom_ice_init() 188 host->ice = ice; in ufs_qcom_ice_init() 201 profile->key_types_supported = qcom_ice_get_supported_key_type(ice); in ufs_qcom_ice_init() 228 return qcom_ice_resume(host->ice); in ufs_qcom_ice_resume() 236 return qcom_ice_suspend(host->ice); in ufs_qcom_ice_suspend() [all …]
|