• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/ice1712/

Lines Matching refs:ice

45 static inline void stac9460_put(struct snd_ice1712 *ice, int reg, 
48 snd_vt1724_write_i2c(ice, STAC9460_I2C_ADDR, reg, val);
51 static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg)
53 return snd_vt1724_read_i2c(ice, STAC9460_I2C_ADDR, reg);
59 static inline void stac9460_2_put(struct snd_ice1712 *ice, int reg,
62 snd_vt1724_write_i2c(ice, STAC9460_2_I2C_ADDR, reg, val);
65 static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg)
67 return snd_vt1724_read_i2c(ice, STAC9460_2_I2C_ADDR, reg);
86 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
98 val = stac9460_get(ice, idx);
100 val = stac9460_2_get(ice,idx - 6);
108 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
115 old = stac9460_get(ice, idx);
120 stac9460_put(ice, idx, new);
121 stac9460_2_put(ice, idx, new);
127 old = stac9460_get(ice, idx);
129 old = stac9460_2_get(ice, idx - 6);
135 stac9460_put(ice, idx, new);
137 stac9460_2_put(ice, idx - 6, new);
159 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
171 vol = stac9460_get(ice, idx) & 0x7f;
173 vol = stac9460_2_get(ice, idx - 6) & 0x7f;
181 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
189 tmp = stac9460_get(ice, idx);
193 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
194 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
201 tmp = stac9460_get(ice, idx);
203 tmp = stac9460_2_get(ice, idx - 6);
208 stac9460_put(ice, idx, (0x7f - nvol) |
211 stac9460_2_put(ice, idx-6, (0x7f - nvol) |
234 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
241 val = stac9460_get(ice, STAC946X_MIC_L_VOLUME + i);
246 val = stac9460_2_get(ice, STAC946X_MIC_L_VOLUME + i);
256 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
265 old = stac9460_get(ice, reg);
270 stac9460_put(ice, reg, new);
275 old = stac9460_2_get(ice, reg);
280 stac9460_2_put(ice, reg, new);
302 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
310 vol = stac9460_get(ice, reg) & 0x0f;
316 vol = stac9460_2_get(ice, reg) & 0x0f;
326 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
336 ovol = 0x0f - stac9460_get(ice, reg);
339 stac9460_put(ice, reg, (0x0f - nvol) |
346 ovol = 0x0f - stac9460_2_get(ice, reg);
349 stac9460_2_put(ice, reg, (0x0f - nvol) |
373 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
379 val = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
381 val = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
389 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
395 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
397 old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
402 stac9460_put(ice, STAC946X_GENERAL_PURPOSE, new);
404 stac9460_2_put(ice, STAC946X_GENERAL_PURPOSE, new);
476 static int __devinit wtm_add_controls(struct snd_ice1712 *ice)
482 err = snd_ctl_add(ice->card,
483 snd_ctl_new1(&stac9640_controls[i], ice));
490 static int __devinit wtm_init(struct snd_ice1712 *ice)
499 ice->num_total_dacs = 8;
500 ice->num_total_adcs = 4;
501 ice->force_rdma1 = 1;
506 stac9460_put(ice, p[0], p[1]);
507 stac9460_2_put(ice, p[0], p[1]);