Lines Matching refs:idx
68 int id, idx, change; in stac9460_dac_mute_all() local
74 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
76 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
81 stac9460_put(ice, idx, new); in stac9460_dac_mute_all()
93 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_all()
95 idx = STAC946X_LF_VOLUME - 1 + id; in stac9460_dac_mute_all()
96 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
100 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all()
119 int idx, id; in stac9460_dac_mute_get() local
124 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
128 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
131 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
133 val = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_get()
145 int id, idx; in stac9460_dac_mute_put() local
149 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
150 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
155 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
156 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_put()
160 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
162 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
164 old = stac9460_2_get(ice, idx - 6); in stac9460_dac_mute_put()
170 stac9460_put(ice, idx, new); in stac9460_dac_mute_put()
172 stac9460_2_put(ice, idx - 6, new); in stac9460_dac_mute_put()
195 int idx, id; in stac9460_dac_vol_get() local
199 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_vol_get()
203 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_vol_get()
206 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get()
208 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get()
217 int idx, id; in stac9460_dac_vol_put() local
222 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_vol_put()
224 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
228 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
229 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
233 idx = id + STAC946X_LF_VOLUME; in stac9460_dac_vol_put()
236 tmp = stac9460_get(ice, idx); in stac9460_dac_vol_put()
238 tmp = stac9460_2_get(ice, idx - 6); in stac9460_dac_vol_put()
243 stac9460_put(ice, idx, (0x7f - nvol) | in stac9460_dac_vol_put()
246 stac9460_2_put(ice, idx-6, (0x7f - nvol) | in stac9460_dac_vol_put()