/Linux-v5.15/sound/pci/ice1712/ |
D | ice1724.c | 87 static inline int stdclock_is_spdif_master(struct snd_ice1712 *ice) in stdclock_is_spdif_master() 95 static inline int is_pro_rate_locked(struct snd_ice1712 *ice) in is_pro_rate_locked() 104 static unsigned char snd_vt1724_ac97_ready(struct snd_ice1712 *ice) 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() 134 struct snd_ice1712 *ice = ac97->private_data; in snd_vt1724_ac97_write() local 148 struct snd_ice1712 *ice = ac97->private_data; in snd_vt1724_ac97_read() local 167 static void snd_vt1724_set_gpio_dir(struct snd_ice1712 *ice, unsigned int data) in snd_vt1724_set_gpio_dir() 174 static unsigned int snd_vt1724_get_gpio_dir(struct snd_ice1712 *ice) in snd_vt1724_get_gpio_dir() 180 static void snd_vt1724_set_gpio_mask(struct snd_ice1712 *ice, unsigned int data) in snd_vt1724_set_gpio_mask() 188 static unsigned int snd_vt1724_get_gpio_mask(struct snd_ice1712 *ice) in snd_vt1724_get_gpio_mask() [all …]
|
D | ice1712.c | 107 static inline int is_spdif_master(struct snd_ice1712 *ice) in is_spdif_master() 112 static inline int is_pro_rate_locked(struct snd_ice1712 *ice) 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() 123 static inline u32 snd_ice1712_ds_read(struct snd_ice1712 *ice, u8 channel, u8 addr) in snd_ice1712_ds_read() 133 struct snd_ice1712 *ice = ac97->private_data; in snd_ice1712_ac97_write() local 157 struct snd_ice1712 *ice = ac97->private_data; in snd_ice1712_ac97_read() local 187 struct snd_ice1712 *ice = ac97->private_data; in snd_ice1712_pro_ac97_write() local 212 struct snd_ice1712 *ice = ac97->private_data; in snd_ice1712_pro_ac97_read() local 241 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_digmix_route_ac97_get() local 249 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_digmix_route_ac97_put() local [all …]
|
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() 50 static unsigned char ap_cs8427_read_byte(struct snd_ice1712 *ice, unsigned char tmp) in ap_cs8427_read_byte() 69 static unsigned char ap_cs8427_codec_select(struct snd_ice1712 *ice) in ap_cs8427_codec_select() 100 static void ap_cs8427_codec_deassert(struct snd_ice1712 *ice, unsigned char tmp) in ap_cs8427_codec_deassert() 125 struct snd_ice1712 *ice = device->bus->private_data; in ap_cs8427_sendbytes() local 142 struct snd_ice1712 *ice = device->bus->private_data; in ap_cs8427_readbytes() local 172 static void snd_ice1712_delta_cs8403_spdif_write(struct snd_ice1712 *ice, unsigned char bits) in snd_ice1712_delta_cs8403_spdif_write() 197 static void delta_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_default_get() 202 static int delta_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_default_put() 220 static void delta_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_stream_get() [all …]
|
D | pontis.c | 67 static unsigned short wm_get(struct snd_ice1712 *ice, int reg) in wm_get() 77 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() 84 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get() local 127 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() local 166 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_get() local 182 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put() local 208 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_mux_get() local 219 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_mux_put() local 245 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_bypass_get() local [all …]
|
D | ews.c | 44 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_setlines() local 56 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getclock() local 62 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getdata() local 79 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_start() local 98 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_stop() local 104 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_direction() local 132 static int snd_ice1712_ews88mt_chip_select(struct snd_ice1712 *ice, int chip_mask) in snd_ice1712_ews88mt_chip_select() 160 struct snd_ice1712 *ice = ak->private_data[0]; in ews88mt_ak4524_lock() local 177 struct snd_ice1712 *ice = ak->private_data[0]; in ews88mt_ak4524_unlock() local 186 struct snd_ice1712 *ice = ak->private_data[0]; in ewx2496_ak4524_lock() local [all …]
|
D | prodigy192.c | 61 static inline void stac9460_put(struct snd_ice1712 *ice, int reg, unsigned char val) in stac9460_put() 66 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) in stac9460_get() 78 static int stac9460_dac_mute(struct snd_ice1712 *ice, int idx, in stac9460_dac_mute() 96 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() local 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() local 144 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_get() local 160 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_put() local 191 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_mute_get() local 205 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_mute_put() local 236 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_vol_get() local [all …]
|
D | aureon.c | 97 static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg, in aureon_pca9554_write() 200 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_get() local 209 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_put() local 229 static void aureon_ac97_write(struct snd_ice1712 *ice, unsigned short reg, in aureon_ac97_write() 283 static unsigned short aureon_ac97_read(struct snd_ice1712 *ice, unsigned short reg) in aureon_ac97_read() 292 static int aureon_ac97_init(struct snd_ice1712 *ice) in aureon_ac97_init() 358 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_get() local 374 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_put() local 402 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_mute_get() local 415 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_mute_put() local [all …]
|
D | hoontech.c | 28 static void snd_ice1712_stdsp24_gpio_write(struct snd_ice1712 *ice, unsigned char 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() 50 static void snd_ice1712_stdsp24_mute(struct snd_ice1712 *ice, int activate) in snd_ice1712_stdsp24_mute() 59 static void snd_ice1712_stdsp24_insel(struct snd_ice1712 *ice, int activate) in snd_ice1712_stdsp24_insel() 68 static void snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) in snd_ice1712_stdsp24_box_channel() 118 static void snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int box, int master) in snd_ice1712_stdsp24_box_midi() 146 static void snd_ice1712_stdsp24_midi2(struct snd_ice1712 *ice, int activate) in snd_ice1712_stdsp24_midi2() 155 static int hoontech_init(struct snd_ice1712 *ice, bool staudio) in hoontech_init() 247 static int snd_ice1712_hoontech_init(struct snd_ice1712 *ice) in snd_ice1712_hoontech_init() 252 static int snd_ice1712_staudio_init(struct snd_ice1712 *ice) in snd_ice1712_staudio_init() [all …]
|
D | se.c | 102 static void se200pci_WM8740_init(struct snd_ice1712 *ice) in se200pci_WM8740_init() 108 static void se200pci_WM8740_set_pro_rate(struct snd_ice1712 *ice, in se200pci_WM8740_set_pro_rate() 119 static void se200pci_WM8766_write(struct snd_ice1712 *ice, in se200pci_WM8766_write() 165 static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch, in se200pci_WM8766_set_volume() 184 static void se200pci_WM8766_init(struct snd_ice1712 *ice) in se200pci_WM8766_init() 203 static void se200pci_WM8766_set_pro_rate(struct snd_ice1712 *ice, in se200pci_WM8766_set_pro_rate() 217 static void se200pci_WM8776_write(struct snd_ice1712 *ice, in se200pci_WM8776_write() 227 static void se200pci_WM8776_set_output_volume(struct snd_ice1712 *ice, in se200pci_WM8776_set_output_volume() 234 static void se200pci_WM8776_set_input_volume(struct snd_ice1712 *ice, in se200pci_WM8776_set_input_volume() 245 static void se200pci_WM8776_set_input_selector(struct snd_ice1712 *ice, in se200pci_WM8776_set_input_selector() [all …]
|
D | prodigy_hifi.c | 113 static unsigned short wm_get(struct snd_ice1712 *ice, int reg) in wm_get() 123 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() 130 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() 142 static void set_gpio_bit(struct snd_ice1712 *ice, unsigned int bit, int val) in set_gpio_bit() 156 static void wm8766_spi_send_word(struct snd_ice1712 *ice, unsigned int data) in wm8766_spi_send_word() 170 static void wm8766_spi_write(struct snd_ice1712 *ice, unsigned int reg, in wm8766_spi_write() 196 static void ak4396_send_word(struct snd_ice1712 *ice, unsigned int data) in ak4396_send_word() 210 static void ak4396_write(struct snd_ice1712 *ice, unsigned int reg, in ak4396_write() 254 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_get() local 266 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_put() local [all …]
|
D | revo.c | 27 static void revo_i2s_mclk_changed(struct snd_ice1712 *ice) in revo_i2s_mclk_changed() 83 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_start() local 89 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_stop() local 95 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_direction() local 112 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_setlines() local 127 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_getdata() local 144 static int revo51_i2c_init(struct snd_ice1712 *ice, in revo51_i2c_init() 311 struct snd_ice1712 *ice = ak->private_data[0]; in ap192_set_rate_val() local 364 static void write_data(struct snd_ice1712 *ice, unsigned int gpio, in write_data() 386 static unsigned char read_data(struct snd_ice1712 *ice, unsigned int gpio, in read_data() [all …]
|
D | phase.c | 109 static int phase22_init(struct snd_ice1712 *ice) in phase22_init() 146 static int phase22_add_controls(struct snd_ice1712 *ice) in phase22_add_controls() 197 static void phase28_spi_write(struct snd_ice1712 *ice, unsigned int cs, in phase28_spi_write() 239 static unsigned short wm_get(struct snd_ice1712 *ice, int reg) in wm_get() 249 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() 257 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() 265 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, in wm_set_vol() 288 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_get() local 300 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put() local 331 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get() local [all …]
|
D | wtm.c | 35 static inline void stac9460_put(struct snd_ice1712 *ice, int reg, in stac9460_put() 41 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) in stac9460_get() 49 static inline void stac9460_2_put(struct snd_ice1712 *ice, int reg, in stac9460_2_put() 55 static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg) in stac9460_2_get() 64 static void stac9460_dac_mute_all(struct snd_ice1712 *ice, unsigned char mute, in stac9460_dac_mute_all() 116 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() local 143 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() local 194 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_get() local 216 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_put() local 261 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_mute_get() local [all …]
|
D | psc724.c | 25 struct snd_ice1712 *ice; member 107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write() local 155 static void psc724_set_master_switch(struct snd_ice1712 *ice, bool on) in psc724_set_master_switch() 168 static bool psc724_get_master_switch(struct snd_ice1712 *ice) in psc724_get_master_switch() 177 static void psc724_set_jack_state(struct snd_ice1712 *ice, bool hp_connected) in psc724_set_jack_state() 207 struct snd_ice1712 *ice = spec->ice; in psc724_update_hp_jack_state() local 216 static void psc724_set_jack_detection(struct snd_ice1712 *ice, bool on) in psc724_set_jack_detection() 233 static bool psc724_get_jack_detection(struct snd_ice1712 *ice) in psc724_get_jack_detection() 264 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_get() local 275 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_put() local [all …]
|
D | quartet.c | 263 struct snd_ice1712 *ice = ak->private_data[0]; in qtet_akm_write() local 394 static void reg_write(struct snd_ice1712 *ice, unsigned int reg, in reg_write() 435 static unsigned int get_scr(struct snd_ice1712 *ice) in get_scr() 441 static unsigned int get_mcr(struct snd_ice1712 *ice) in get_mcr() 447 static unsigned int get_cpld(struct snd_ice1712 *ice) in get_cpld() 453 static void set_scr(struct snd_ice1712 *ice, unsigned int val) in set_scr() 460 static void set_mcr(struct snd_ice1712 *ice, unsigned int val) in set_mcr() 467 static void set_cpld(struct snd_ice1712 *ice, unsigned int val) in set_cpld() 477 struct snd_ice1712 *ice = entry->private_data; in proc_regs_read() local 488 static void proc_init(struct snd_ice1712 *ice) in proc_init() [all …]
|
D | juli.c | 166 static void juli_spdif_in_open(struct snd_ice1712 *ice, in juli_spdif_in_open() 198 struct snd_ice1712 *ice = ak->private_data[0]; in juli_akm_write() local 212 struct snd_ice1712 *ice = ak->private_data[0]; in juli_akm_set_rate_val() local 292 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in juli_mute_get() local 307 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in juli_mute_put() local 435 static int juli_add_controls(struct snd_ice1712 *ice) in juli_add_controls() 472 static int juli_resume(struct snd_ice1712 *ice) in juli_resume() 483 static int juli_suspend(struct snd_ice1712 *ice) in juli_suspend() 498 static inline int juli_is_spdif_master(struct snd_ice1712 *ice) in juli_is_spdif_master() 503 static unsigned int juli_get_rate(struct snd_ice1712 *ice) in juli_get_rate() [all …]
|
D | ak4xxx.c | 26 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_lock() local 33 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_unlock() local 48 struct snd_ice1712 *ice = ak->private_data[0]; in snd_ice1712_akm4xxx_write() local 113 const struct snd_ak4xxx_private *_priv, struct snd_ice1712 *ice) in snd_ice1712_akm4xxx_init() 139 void snd_ice1712_akm4xxx_free(struct snd_ice1712 *ice) in snd_ice1712_akm4xxx_free() 154 int snd_ice1712_akm4xxx_build_controls(struct snd_ice1712 *ice) in snd_ice1712_akm4xxx_build_controls()
|
D | amp.c | 19 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() 26 static int snd_vt1724_amp_init(struct snd_ice1712 *ice) in snd_vt1724_amp_init() 54 static int snd_vt1724_amp_add_controls(struct snd_ice1712 *ice) in snd_vt1724_amp_add_controls()
|
D | vt1720_mobo.c | 20 static int k8x800_init(struct snd_ice1712 *ice) in k8x800_init() 34 static int k8x800_add_controls(struct snd_ice1712 *ice) in k8x800_add_controls()
|
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() 92 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() 283 static int maya_set_gpio_bits(struct snd_ice1712 *ice, unsigned int mask, in maya_set_gpio_bits() 517 static int maya44_add_controls(struct snd_ice1712 *ice) in maya44_add_controls() 534 static void wm8776_init(struct snd_ice1712 *ice, in wm8776_init() 587 static void set_rate(struct snd_ice1712 *ice, unsigned int rate) in set_rate() 672 static int maya44_init(struct snd_ice1712 *ice) in maya44_init()
|
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 395 static inline void snd_ice1712_gpio_set_dir(struct snd_ice1712 *ice, unsigned int bits) in snd_ice1712_gpio_set_dir() 400 static inline unsigned int snd_ice1712_gpio_get_dir(struct snd_ice1712 *ice) in snd_ice1712_gpio_get_dir() 405 static inline void snd_ice1712_gpio_set_mask(struct snd_ice1712 *ice, unsigned int bits) in snd_ice1712_gpio_set_mask() 410 static inline void snd_ice1712_gpio_write(struct snd_ice1712 *ice, unsigned int val) in snd_ice1712_gpio_write() 415 static inline unsigned int snd_ice1712_gpio_read(struct snd_ice1712 *ice) in snd_ice1712_gpio_read() 425 static inline void snd_ice1712_save_gpio_status(struct snd_ice1712 *ice) in snd_ice1712_save_gpio_status() [all …]
|
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
|