Lines Matching refs:idx

82 	int id, idx, change;  in stac9460_dac_mute_all()  local
88 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
90 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
91 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
95 stac9460_put(ice, idx, new); in stac9460_dac_mute_all()
107 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
109 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
110 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
114 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all()
133 int idx, id; in stac9460_dac_mute_get() local
138 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
142 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
145 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
147 val = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_get()
159 int id, idx; in stac9460_dac_mute_put() local
163 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
164 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
169 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
170 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_put()
174 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
176 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
178 old = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_put()
184 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
186 stac9460_2_put(ice, idx - 6, new); in stac9460_dac_mute_put()
209 int idx, id; in stac9460_dac_vol_get() local
213 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_vol_get()
217 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_vol_get()
220 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get()
222 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get()
231 int idx, id; in stac9460_dac_vol_put() local
236 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_vol_put()
238 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
242 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
243 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
247 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_vol_put()
250 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
252 tmp = stac9460_2_get(ice, idx - 6); in stac9460_dac_vol_put()
257 stac9460_put(ice, idx, (0x7f - nvol) | in stac9460_dac_vol_put()
260 stac9460_2_put(ice, idx-6, (0x7f - nvol) | in stac9460_dac_vol_put()