Home
last modified time | relevance | path

Searched refs:ice (Results 1 – 25 of 61) sorted by relevance

123

/linux/sound/pci/ice1712/
H A Dice1724.c87 static inline int stdclock_is_spdif_master(struct snd_ice1712 *ice) in stdclock_is_spdif_master() argument
89 return (inb(ICEMT1724(ice, RATE)) & VT1724_SPDIF_MASTER) ? 1 : 0; in stdclock_is_spdif_master()
95 static inline int is_pro_rate_locked(struct snd_ice1712 *ice) in is_pro_rate_locked() argument
97 return (!ice->is_spdif_master(ice)) && PRO_RATE_LOCKED; in is_pro_rate_locked()
104 static unsigned char snd_vt1724_ac97_ready(struct snd_ice1712 *ice) in snd_vt1724_ac97_ready() argument
109 old_cmd = inb(ICEMT1724(ice, AC97_CMD)); in snd_vt1724_ac97_ready()
116 dev_dbg(ice->card->dev, "snd_vt1724_ac97_ready: timeout\n"); in snd_vt1724_ac97_ready()
120 static int snd_vt1724_ac97_wait_bit(struct snd_ice1712 *ice, unsigned char bit) in snd_vt1724_ac97_wait_bit() argument
124 if ((inb(ICEMT1724(ice, AC97_CM in snd_vt1724_ac97_wait_bit()
134 struct snd_ice1712 *ice = ac97->private_data; snd_vt1724_ac97_write() local
148 struct snd_ice1712 *ice = ac97->private_data; snd_vt1724_ac97_read() local
167 snd_vt1724_set_gpio_dir(struct snd_ice1712 * ice,unsigned int data) snd_vt1724_set_gpio_dir() argument
174 snd_vt1724_get_gpio_dir(struct snd_ice1712 * ice) snd_vt1724_get_gpio_dir() argument
180 snd_vt1724_set_gpio_mask(struct snd_ice1712 * ice,unsigned int data) snd_vt1724_set_gpio_mask() argument
188 snd_vt1724_get_gpio_mask(struct snd_ice1712 * ice) snd_vt1724_get_gpio_mask() argument
199 snd_vt1724_set_gpio_data(struct snd_ice1712 * ice,unsigned int data) snd_vt1724_set_gpio_data() argument
207 snd_vt1724_get_gpio_data(struct snd_ice1712 * ice) snd_vt1724_get_gpio_data() argument
222 vt1724_midi_clear_rx(struct snd_ice1712 * ice) vt1724_midi_clear_rx() argument
231 get_rawmidi_substream(struct snd_ice1712 * ice,unsigned int stream) get_rawmidi_substream() argument
239 vt1724_midi_write(struct snd_ice1712 * ice) vt1724_midi_write() argument
259 vt1724_midi_read(struct snd_ice1712 * ice) vt1724_midi_read() argument
276 enable_midi_irq(struct snd_ice1712 * ice,u8 flag,int enable) enable_midi_irq() argument
289 struct snd_ice1712 *ice = substream->rmidi->private_data; vt1724_enable_midi_irq() local
307 struct snd_ice1712 *ice = s->rmidi->private_data; vt1724_midi_output_trigger() local
321 struct snd_ice1712 *ice = s->rmidi->private_data; vt1724_midi_output_drain() local
356 struct snd_ice1712 *ice = s->rmidi->private_data; vt1724_midi_input_trigger() local
380 struct snd_ice1712 *ice = dev_id; snd_vt1724_interrupt() local
519 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_pcm_trigger() local
583 stdclock_get_rate(struct snd_ice1712 * ice) stdclock_get_rate() argument
588 stdclock_set_rate(struct snd_ice1712 * ice,unsigned int rate) stdclock_set_rate() argument
599 stdclock_set_mclk(struct snd_ice1712 * ice,unsigned int rate) stdclock_set_mclk() argument
620 snd_vt1724_set_pro_rate(struct snd_ice1712 * ice,unsigned int rate,int force) snd_vt1724_set_pro_rate() argument
681 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); __snd_vt1724_pcm_hw_params() local
718 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_pcm_hw_params() local
732 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_pcm_hw_free() local
745 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_pro_prepare() local
777 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_pro_pointer() local
814 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_pcm_prepare() local
828 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_pcm_pointer() local
948 set_std_hw_rates(struct snd_ice1712 * ice) set_std_hw_rates() argument
963 set_rate_constraints(struct snd_ice1712 * ice,struct snd_pcm_substream * substream) set_rate_constraints() argument
981 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); constrain_rate_if_locked() local
1003 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_pro_open() local
1036 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_capture_pro_open() local
1057 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_pro_close() local
1068 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_capture_pro_close() local
1096 snd_vt1724_pcm_profi(struct snd_ice1712 * ice,int device) snd_vt1724_pcm_profi() argument
1133 update_spdif_bits(struct snd_ice1712 * ice,unsigned int val) update_spdif_bits() argument
1148 update_spdif_rate(struct snd_ice1712 * ice,unsigned int rate) update_spdif_rate() argument
1170 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_spdif_prepare() local
1178 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_spdif_open() local
1202 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_spdif_close() local
1215 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_capture_spdif_open() local
1239 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_capture_spdif_close() local
1271 snd_vt1724_pcm_spdif(struct snd_ice1712 * ice,int device) snd_vt1724_pcm_spdif() argument
1348 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_indep_prepare() local
1361 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_indep_open() local
1380 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); snd_vt1724_playback_indep_close() local
1401 snd_vt1724_pcm_indep(struct snd_ice1712 * ice,int device) snd_vt1724_pcm_indep() argument
1435 snd_vt1724_ac97_mixer(struct snd_ice1712 * ice) snd_vt1724_ac97_mixer() argument
1473 eeprom_triple(struct snd_ice1712 * ice,int idx) eeprom_triple() argument
1483 struct snd_ice1712 *ice = entry->private_data; snd_vt1724_proc_read() local
1522 snd_vt1724_proc_init(struct snd_ice1712 * ice) snd_vt1724_proc_init() argument
1542 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_eeprom_get() local
1639 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_spdif_default_get() local
1649 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_spdif_default_put() local
1715 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_spdif_sw_get() local
1724 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_spdif_sw_put() local
1797 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_internal_clock_info() local
1826 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_internal_clock_get() local
1846 stdclock_get_spdif_master_type(struct snd_ice1712 * ice) stdclock_get_spdif_master_type() argument
1853 stdclock_set_spdif_clock(struct snd_ice1712 * ice,int type) stdclock_set_spdif_clock() argument
1869 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_internal_clock_put() local
1933 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_rate_locking_put() local
1963 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_rate_reset_put() local
2007 snd_ice1724_get_route_val(struct snd_ice1712 * ice,int shift) snd_ice1724_get_route_val() argument
2026 snd_ice1724_put_route_val(struct snd_ice1712 * ice,unsigned int val,int shift) snd_ice1724_put_route_val() argument
2052 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_route_analog_get() local
2062 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_route_analog_put() local
2072 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_route_spdif_get() local
2082 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_route_spdif_put() local
2121 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); snd_vt1724_pro_peak_get() local
2197 wait_i2c_busy(struct snd_ice1712 * ice) wait_i2c_busy() argument
2206 snd_vt1724_read_i2c(struct snd_ice1712 * ice,unsigned char dev,unsigned char addr) snd_vt1724_read_i2c() argument
2223 snd_vt1724_write_i2c(struct snd_ice1712 * ice,unsigned char dev,unsigned char addr,unsigned char data) snd_vt1724_write_i2c() argument
2237 snd_vt1724_read_eeprom(struct snd_ice1712 * ice,const char * modelname) snd_vt1724_read_eeprom() argument
2326 snd_vt1724_chip_reset(struct snd_ice1712 * ice) snd_vt1724_chip_reset() argument
2336 snd_vt1724_chip_init(struct snd_ice1712 * ice) snd_vt1724_chip_init() argument
2362 snd_vt1724_spdif_build_controls(struct snd_ice1712 * ice) snd_vt1724_spdif_build_controls() argument
2408 snd_vt1724_build_controls(struct snd_ice1712 * ice) snd_vt1724_build_controls() argument
2442 struct snd_ice1712 *ice = card->private_data; snd_vt1724_free() local
2455 struct snd_ice1712 *ice = card->private_data; snd_vt1724_create() local
2517 struct snd_ice1712 *ice; __snd_vt1724_probe() local
2665 struct snd_ice1712 *ice = card->private_data; snd_vt1724_suspend() local
2689 struct snd_ice1712 *ice = card->private_data; snd_vt1724_resume() local
[all...]
H A Dice1712.c95 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, u8 channel, u8 addr) in snd_ice1712_ds_read() argument
[all …]
H A Dpontis.c67 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 Ddelta.c33 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 Dews.c44 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 Dse.c102 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 Dhoontech.c28 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 Dquartet.c33 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 Dice1712.h27 #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 Drevo.c27 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 Daureon.c97 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, tmp); in aureon_pca9554_write()
[all …]
H A Dprodigy_hifi.c113 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 Djuli.c166 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 Dprodigy192.c61 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 Dphase.c109 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 Dpsc724.c25 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 Dwtm.c35 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 Dak4xxx.c26 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 Dmaya44.c69 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 Damp.c19 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 Denvy24ht.h39 #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 …
H A Dvt1720_mobo.c20 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
/linux/drivers/soc/qcom/
H A Dice.c116 static bool qcom_ice_check_supported(struct qcom_ice *ice) in qcom_ice_check_supported() argument
118 u32 regval = qcom_ice_readl(ice, QCOM_ICE_REG_VERSION); in qcom_ice_check_supported()
119 struct device *dev = ice->dev; in qcom_ice_check_supported()
136 ice->hwkm_version = QCOM_ICE_HWKM_V2; in qcom_ice_check_supported()
138 ice->hwkm_version = QCOM_ICE_HWKM_V1; in qcom_ice_check_supported()
140 ice->hwkm_version = 0; in qcom_ice_check_supported()
145 if (ice->hwkm_version) in qcom_ice_check_supported()
147 ice->hwkm_version); in qcom_ice_check_supported()
150 regval = qcom_ice_readl(ice, QCOM_ICE_REG_FUSE_SETTING); in qcom_ice_check_supported()
174 if (ice->hwkm_version && qcom_scm_has_wrapped_key_support()) { in qcom_ice_check_supported()
[all …]
/linux/include/soc/qcom/
H A Dice.h14 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/drivers/net/ethernet/intel/ice/
H A DMakefile9 obj-$(CONFIG_ICE) += ice.o
11 ice-y := ice_main.o \
47 ice-$(CONFIG_PCI_IOV) += \
57 ice-$(CONFIG_PTP_1588_CLOCK) += ice_ptp.o ice_ptp_hw.o ice_dpll.o ice_tspll.o
58 ice-$(CONFIG_DCB) += ice_dcb.o ice_dcb_nl.o ice_dcb_lib.o
59 ice-$(CONFIG_RFS_ACCEL) += ice_arfs.o
60 ice-$(CONFIG_XDP_SOCKETS) += ice_xsk.o
61 ice-$(CONFIG_ICE_SWITCHDEV) += ice_eswitch.o ice_eswitch_br.o
62 ice-$(CONFIG_GNSS) += ice_gnss.o
63 ice-$(CONFIG_ICE_HWMON) += ice_hwmon.o

123