• Home
  • Raw
  • Download

Lines Matching refs:ice

42 static inline void stac9460_put(struct snd_ice1712 *ice, int reg,  in stac9460_put()  argument
45 snd_vt1724_write_i2c(ice, STAC9460_I2C_ADDR, reg, val); in stac9460_put()
48 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) in stac9460_get() argument
50 return snd_vt1724_read_i2c(ice, STAC9460_I2C_ADDR, reg); in stac9460_get()
56 static inline void stac9460_2_put(struct snd_ice1712 *ice, int reg, in stac9460_2_put() argument
59 snd_vt1724_write_i2c(ice, STAC9460_2_I2C_ADDR, reg, val); in stac9460_2_put()
62 static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg) in stac9460_2_get() argument
64 return snd_vt1724_read_i2c(ice, STAC9460_2_I2C_ADDR, reg); in stac9460_2_get()
76 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() local
88 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
90 val = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_get()
98 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() local
105 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
110 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
111 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_put()
117 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
119 old = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_put()
125 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
127 stac9460_2_put(ice, idx - 6, new); in stac9460_dac_mute_put()
149 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_get() local
161 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get()
163 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get()
171 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_vol_put() local
179 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
183 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
184 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
191 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
193 tmp = stac9460_2_get(ice, idx - 6); in stac9460_dac_vol_put()
198 stac9460_put(ice, idx, (0x7f - nvol) | in stac9460_dac_vol_put()
201 stac9460_2_put(ice, idx-6, (0x7f - nvol) | in stac9460_dac_vol_put()
216 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_mute_get() local
223 val = stac9460_get(ice, STAC946X_MIC_L_VOLUME + i); in stac9460_adc_mute_get()
228 val = stac9460_2_get(ice, STAC946X_MIC_L_VOLUME + i); in stac9460_adc_mute_get()
238 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_mute_put() local
247 old = stac9460_get(ice, reg); in stac9460_adc_mute_put()
252 stac9460_put(ice, reg, new); in stac9460_adc_mute_put()
257 old = stac9460_2_get(ice, reg); in stac9460_adc_mute_put()
262 stac9460_2_put(ice, reg, new); in stac9460_adc_mute_put()
284 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_vol_get() local
292 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get()
298 vol = stac9460_2_get(ice, reg) & 0x0f; in stac9460_adc_vol_get()
308 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_adc_vol_put() local
318 ovol = 0x0f - stac9460_get(ice, reg); in stac9460_adc_vol_put()
321 stac9460_put(ice, reg, (0x0f - nvol) | in stac9460_adc_vol_put()
328 ovol = 0x0f - stac9460_2_get(ice, reg); in stac9460_adc_vol_put()
331 stac9460_2_put(ice, reg, (0x0f - nvol) | in stac9460_adc_vol_put()
347 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_mic_sw_get() local
353 val = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_get()
355 val = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_get()
363 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_mic_sw_put() local
369 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_put()
371 old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE); in stac9460_mic_sw_put()
376 stac9460_put(ice, STAC946X_GENERAL_PURPOSE, new); in stac9460_mic_sw_put()
378 stac9460_2_put(ice, STAC946X_GENERAL_PURPOSE, new); in stac9460_mic_sw_put()
450 static int wtm_add_controls(struct snd_ice1712 *ice) in wtm_add_controls() argument
456 err = snd_ctl_add(ice->card, in wtm_add_controls()
457 snd_ctl_new1(&stac9640_controls[i], ice)); in wtm_add_controls()
464 static int wtm_init(struct snd_ice1712 *ice) in wtm_init() argument
473 ice->num_total_dacs = 8; in wtm_init()
474 ice->num_total_adcs = 4; in wtm_init()
475 ice->force_rdma1 = 1; in wtm_init()
480 stac9460_put(ice, p[0], p[1]); in wtm_init()
481 stac9460_2_put(ice, p[0], p[1]); in wtm_init()