Lines Matching defs:ice
43 static inline void stac9460_put(struct snd_ice1712 *ice, int reg,
46 snd_vt1724_write_i2c(ice, STAC9460_I2C_ADDR, reg, val);
49 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg)
51 return snd_vt1724_read_i2c(ice, STAC9460_I2C_ADDR, reg);
57 static inline void stac9460_2_put(struct snd_ice1712 *ice, int reg,
60 snd_vt1724_write_i2c(ice, STAC9460_2_I2C_ADDR, reg, val);
63 static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg)
65 return snd_vt1724_read_i2c(ice, STAC9460_2_I2C_ADDR, reg);
77 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
89 val = stac9460_get(ice, idx);
91 val = stac9460_2_get(ice, idx - 6);
99 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
106 old = stac9460_get(ice, idx);
111 stac9460_put(ice, idx, new);
112 stac9460_2_put(ice, idx, new);
118 old = stac9460_get(ice, idx);
120 old = stac9460_2_get(ice, idx - 6);
126 stac9460_put(ice, idx, new);
128 stac9460_2_put(ice, idx - 6, new);
150 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
162 vol = stac9460_get(ice, idx) & 0x7f;
164 vol = stac9460_2_get(ice, idx - 6) & 0x7f;
172 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
180 tmp = stac9460_get(ice, idx);
184 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
185 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
192 tmp = stac9460_get(ice, idx);
194 tmp = stac9460_2_get(ice, idx - 6);
199 stac9460_put(ice, idx, (0x7f - nvol) |
202 stac9460_2_put(ice, idx-6, (0x7f - nvol) |
217 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
224 val = stac9460_get(ice, STAC946X_MIC_L_VOLUME + i);
229 val = stac9460_2_get(ice, STAC946X_MIC_L_VOLUME + i);
239 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
248 old = stac9460_get(ice, reg);
253 stac9460_put(ice, reg, new);
258 old = stac9460_2_get(ice, reg);
263 stac9460_2_put(ice, reg, new);
285 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
293 vol = stac9460_get(ice, reg) & 0x0f;
299 vol = stac9460_2_get(ice, reg) & 0x0f;
309 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
319 ovol = 0x0f - stac9460_get(ice, reg);
322 stac9460_put(ice, reg, (0x0f - nvol) |
329 ovol = 0x0f - stac9460_2_get(ice, reg);
332 stac9460_2_put(ice, reg, (0x0f - nvol) |
348 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
354 val = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
356 val = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
364 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
370 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
372 old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
377 stac9460_put(ice, STAC946X_GENERAL_PURPOSE, new);
379 stac9460_2_put(ice, STAC946X_GENERAL_PURPOSE, new);
451 static int __devinit wtm_add_controls(struct snd_ice1712 *ice)
457 err = snd_ctl_add(ice->card,
458 snd_ctl_new1(&stac9640_controls[i], ice));
465 static int __devinit wtm_init(struct snd_ice1712 *ice)
474 ice->num_total_dacs = 8;
475 ice->num_total_adcs = 4;
476 ice->force_rdma1 = 1;
481 stac9460_put(ice, p[0], p[1]);
482 stac9460_2_put(ice, p[0], p[1]);