Lines Matching refs:vortex
39 static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) in vortex_EqHw_SetTimeConsts() argument
41 hwwrite(vortex->mmio, 0x2b3c4, gain); in vortex_EqHw_SetTimeConsts()
42 hwwrite(vortex->mmio, 0x2b3c8, level); in vortex_EqHw_SetTimeConsts()
54 static void vortex_EqHw_SetLeftCoefs(vortex_t *vortex, const u16 coefs[]) in vortex_EqHw_SetLeftCoefs() argument
56 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetLeftCoefs()
60 hwwrite(vortex->mmio, 0x2b000 + n * 0x30, coefs[i + 0]); in vortex_EqHw_SetLeftCoefs()
61 hwwrite(vortex->mmio, 0x2b004 + n * 0x30, coefs[i + 1]); in vortex_EqHw_SetLeftCoefs()
64 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, coefs[i + 2]); in vortex_EqHw_SetLeftCoefs()
65 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, coefs[i + 3]); in vortex_EqHw_SetLeftCoefs()
66 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, coefs[i + 4]); in vortex_EqHw_SetLeftCoefs()
68 hwwrite(vortex->mmio, 0x2b008 + n * 0x30, sign_invert(coefs[2 + i])); in vortex_EqHw_SetLeftCoefs()
69 hwwrite(vortex->mmio, 0x2b00c + n * 0x30, sign_invert(coefs[3 + i])); in vortex_EqHw_SetLeftCoefs()
70 hwwrite(vortex->mmio, 0x2b010 + n * 0x30, sign_invert(coefs[4 + i])); in vortex_EqHw_SetLeftCoefs()
76 static void vortex_EqHw_SetRightCoefs(vortex_t *vortex, const u16 coefs[]) in vortex_EqHw_SetRightCoefs() argument
78 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetRightCoefs()
82 hwwrite(vortex->mmio, 0x2b1e0 + n * 0x30, coefs[0 + i]); in vortex_EqHw_SetRightCoefs()
83 hwwrite(vortex->mmio, 0x2b1e4 + n * 0x30, coefs[1 + i]); in vortex_EqHw_SetRightCoefs()
86 hwwrite(vortex->mmio, 0x2b1e8 + n * 0x30, coefs[2 + i]); in vortex_EqHw_SetRightCoefs()
87 hwwrite(vortex->mmio, 0x2b1ec + n * 0x30, coefs[3 + i]); in vortex_EqHw_SetRightCoefs()
88 hwwrite(vortex->mmio, 0x2b1f0 + n * 0x30, coefs[4 + i]); in vortex_EqHw_SetRightCoefs()
90 hwwrite(vortex->mmio, 0x2b1e8 + n * 0x30, sign_invert(coefs[2 + i])); in vortex_EqHw_SetRightCoefs()
91 hwwrite(vortex->mmio, 0x2b1ec + n * 0x30, sign_invert(coefs[3 + i])); in vortex_EqHw_SetRightCoefs()
92 hwwrite(vortex->mmio, 0x2b1f0 + n * 0x30, sign_invert(coefs[4 + i])); in vortex_EqHw_SetRightCoefs()
99 static void vortex_EqHw_SetLeftStates(vortex_t *vortex, const u16 a[], const u16 b[]) in vortex_EqHw_SetLeftStates() argument
101 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetLeftStates()
104 hwwrite(vortex->mmio, 0x2b3fc, a[0]); in vortex_EqHw_SetLeftStates()
105 hwwrite(vortex->mmio, 0x2b400, a[1]); in vortex_EqHw_SetLeftStates()
108 hwwrite(vortex->mmio, 0x2b014 + (i * 0xc), b[i]); in vortex_EqHw_SetLeftStates()
109 hwwrite(vortex->mmio, 0x2b018 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetLeftStates()
110 hwwrite(vortex->mmio, 0x2b01c + (i * 0xc), b[2 + i]); in vortex_EqHw_SetLeftStates()
111 hwwrite(vortex->mmio, 0x2b020 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetLeftStates()
116 static void vortex_EqHw_SetRightStates(vortex_t *vortex, const u16 a[], const u16 b[]) in vortex_EqHw_SetRightStates() argument
118 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetRightStates()
121 hwwrite(vortex->mmio, 0x2b404, a[0]); in vortex_EqHw_SetRightStates()
122 hwwrite(vortex->mmio, 0x2b408, a[1]); in vortex_EqHw_SetRightStates()
125 hwwrite(vortex->mmio, 0x2b1f4 + (i * 0xc), b[i]); in vortex_EqHw_SetRightStates()
126 hwwrite(vortex->mmio, 0x2b1f8 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetRightStates()
127 hwwrite(vortex->mmio, 0x2b1fc + (i * 0xc), b[2 + i]); in vortex_EqHw_SetRightStates()
128 hwwrite(vortex->mmio, 0x2b200 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetRightStates()
134 static void vortex_EqHw_GetTimeConsts(vortex_t * vortex, u16 * a, u16 * b)
136 *a = hwread(vortex->mmio, 0x2b3c4);
137 *b = hwread(vortex->mmio, 0x2b3c8);
140 static void vortex_EqHw_GetLeftCoefs(vortex_t * vortex, u16 a[])
145 static void vortex_EqHw_GetRightCoefs(vortex_t * vortex, u16 a[])
150 static void vortex_EqHw_GetLeftStates(vortex_t * vortex, u16 * a, u16 b[])
155 static void vortex_EqHw_GetRightStates(vortex_t * vortex, u16 * a, u16 b[])
162 static void vortex_EqHw_SetBypassGain(vortex_t * vortex, u16 a, u16 b) in vortex_EqHw_SetBypassGain() argument
164 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetBypassGain()
166 hwwrite(vortex->mmio, 0x2b3d4, a); in vortex_EqHw_SetBypassGain()
167 hwwrite(vortex->mmio, 0x2b3ec, b); in vortex_EqHw_SetBypassGain()
169 hwwrite(vortex->mmio, 0x2b3d4, sign_invert(a)); in vortex_EqHw_SetBypassGain()
170 hwwrite(vortex->mmio, 0x2b3ec, sign_invert(b)); in vortex_EqHw_SetBypassGain()
174 static void vortex_EqHw_SetA3DBypassGain(vortex_t * vortex, u16 a, u16 b) in vortex_EqHw_SetA3DBypassGain() argument
177 hwwrite(vortex->mmio, 0x2b3e0, a); in vortex_EqHw_SetA3DBypassGain()
178 hwwrite(vortex->mmio, 0x2b3f8, b); in vortex_EqHw_SetA3DBypassGain()
182 static void vortex_EqHw_SetCurrBypassGain(vortex_t * vortex, u16 a, u16 b)
185 hwwrite(vortex->mmio, 0x2b3d0, a);
186 hwwrite(vortex->mmio, 0x2b3e8, b);
189 static void vortex_EqHw_SetCurrA3DBypassGain(vortex_t * vortex, u16 a, u16 b)
192 hwwrite(vortex->mmio, 0x2b3dc, a);
193 hwwrite(vortex->mmio, 0x2b3f4, b);
198 vortex_EqHw_SetLeftGainsSingleTarget(vortex_t * vortex, u16 index, u16 b) in vortex_EqHw_SetLeftGainsSingleTarget() argument
200 hwwrite(vortex->mmio, 0x2b02c + (index * 0x30), b); in vortex_EqHw_SetLeftGainsSingleTarget()
204 vortex_EqHw_SetRightGainsSingleTarget(vortex_t * vortex, u16 index, u16 b) in vortex_EqHw_SetRightGainsSingleTarget() argument
206 hwwrite(vortex->mmio, 0x2b20c + (index * 0x30), b); in vortex_EqHw_SetRightGainsSingleTarget()
209 static void vortex_EqHw_SetLeftGainsTarget(vortex_t *vortex, const u16 a[]) in vortex_EqHw_SetLeftGainsTarget() argument
211 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetLeftGainsTarget()
215 hwwrite(vortex->mmio, 0x2b02c + ebx * 0x30, a[ebx]); in vortex_EqHw_SetLeftGainsTarget()
219 static void vortex_EqHw_SetRightGainsTarget(vortex_t *vortex, const u16 a[]) in vortex_EqHw_SetRightGainsTarget() argument
221 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetRightGainsTarget()
225 hwwrite(vortex->mmio, 0x2b20c + ebx * 0x30, a[ebx]); in vortex_EqHw_SetRightGainsTarget()
229 static void vortex_EqHw_SetLeftGainsCurrent(vortex_t *vortex, const u16 a[]) in vortex_EqHw_SetLeftGainsCurrent() argument
231 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetLeftGainsCurrent()
235 hwwrite(vortex->mmio, 0x2b028 + ebx * 0x30, a[ebx]); in vortex_EqHw_SetLeftGainsCurrent()
239 static void vortex_EqHw_SetRightGainsCurrent(vortex_t *vortex, const u16 a[]) in vortex_EqHw_SetRightGainsCurrent() argument
241 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetRightGainsCurrent()
245 hwwrite(vortex->mmio, 0x2b208 + ebx * 0x30, a[ebx]); in vortex_EqHw_SetRightGainsCurrent()
250 static void vortex_EqHw_GetLeftGainsTarget(vortex_t * vortex, u16 a[])
252 eqhw_t *eqhw = &(vortex->eq.this04);
259 a[ebx] = hwread(vortex->mmio, 0x2b02c + ebx * 0x30);
265 static void vortex_EqHw_GetRightGainsTarget(vortex_t * vortex, u16 a[])
267 eqhw_t *eqhw = &(vortex->eq.this04);
274 a[ebx] = hwread(vortex->mmio, 0x2b20c + ebx * 0x30);
280 static void vortex_EqHw_GetLeftGainsCurrent(vortex_t * vortex, u16 a[])
282 eqhw_t *eqhw = &(vortex->eq.this04);
289 a[ebx] = hwread(vortex->mmio, 0x2b028 + ebx * 0x30);
295 static void vortex_EqHw_GetRightGainsCurrent(vortex_t * vortex, u16 a[])
297 eqhw_t *eqhw = &(vortex->eq.this04);
304 a[ebx] = hwread(vortex->mmio, 0x2b208 + ebx * 0x30);
312 static void vortex_EqHw_SetLevels(vortex_t *vortex, const u16 peaks[]) in vortex_EqHw_SetLevels() argument
314 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_SetLevels()
319 hwwrite(vortex->mmio, 0x2b024 + i * VORTEX_BAND_COEFF_SIZE, peaks[i]); in vortex_EqHw_SetLevels()
322 hwwrite(vortex->mmio, 0x2b3cc, peaks[eqhw->this04]); in vortex_EqHw_SetLevels()
323 hwwrite(vortex->mmio, 0x2b3d8, peaks[eqhw->this04 + 1]); in vortex_EqHw_SetLevels()
327 hwwrite(vortex->mmio, 0x2b204 + i * VORTEX_BAND_COEFF_SIZE, in vortex_EqHw_SetLevels()
331 hwwrite(vortex->mmio, 0x2b3e4, peaks[2 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
332 hwwrite(vortex->mmio, 0x2b3f0, peaks[3 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
336 static void vortex_EqHw_GetLevels(vortex_t * vortex, u16 a[])
338 eqhw_t *eqhw = &(vortex->eq.this04);
346 a[ebx] = hwread(vortex->mmio, 0x2b024 + ebx * 0x30);
351 a[eqhw->this04] = hwread(vortex->mmio, 0x2b3cc);
352 a[eqhw->this04 + 1] = hwread(vortex->mmio, 0x2b3d8);
357 hwread(vortex->mmio, 0x2b204 + ebx * 0x30);
362 a[2 + (eqhw->this04 * 2)] = hwread(vortex->mmio, 0x2b3e4);
363 a[3 + (eqhw->this04 * 2)] = hwread(vortex->mmio, 0x2b3f0);
368 static void vortex_EqHw_SetControlReg(vortex_t * vortex, u32 reg) in vortex_EqHw_SetControlReg() argument
370 hwwrite(vortex->mmio, 0x2b440, reg); in vortex_EqHw_SetControlReg()
373 static void vortex_EqHw_SetSampleRate(vortex_t * vortex, u32 sr) in vortex_EqHw_SetSampleRate() argument
375 hwwrite(vortex->mmio, 0x2b440, ((sr & 0x1f) << 3) | 0xb800); in vortex_EqHw_SetSampleRate()
379 static void vortex_EqHw_GetControlReg(vortex_t * vortex, u32 *reg)
381 *reg = hwread(vortex->mmio, 0x2b440);
384 static void vortex_EqHw_GetSampleRate(vortex_t * vortex, u32 *sr)
386 *sr = (hwread(vortex->mmio, 0x2b440) >> 3) & 0x1f;
390 static void vortex_EqHw_Enable(vortex_t * vortex) in vortex_EqHw_Enable() argument
392 hwwrite(vortex->mmio, VORTEX_EQ_CTRL, 0xf001); in vortex_EqHw_Enable()
395 static void vortex_EqHw_Disable(vortex_t * vortex) in vortex_EqHw_Disable() argument
397 hwwrite(vortex->mmio, VORTEX_EQ_CTRL, 0xf000); in vortex_EqHw_Disable()
401 static void vortex_EqHw_ZeroIO(vortex_t * vortex) in vortex_EqHw_ZeroIO() argument
405 hwwrite(vortex->mmio, VORTEX_EQ_DEST + (i << 2), 0x0); in vortex_EqHw_ZeroIO()
407 hwwrite(vortex->mmio, VORTEX_EQ_SOURCE + (i << 2), 0x0); in vortex_EqHw_ZeroIO()
410 static void vortex_EqHw_ZeroA3DIO(vortex_t * vortex) in vortex_EqHw_ZeroA3DIO() argument
414 hwwrite(vortex->mmio, VORTEX_EQ_DEST + (i << 2), 0x0); in vortex_EqHw_ZeroA3DIO()
417 static void vortex_EqHw_ZeroState(vortex_t * vortex) in vortex_EqHw_ZeroState() argument
420 vortex_EqHw_SetControlReg(vortex, 0); in vortex_EqHw_ZeroState()
421 vortex_EqHw_ZeroIO(vortex); in vortex_EqHw_ZeroState()
422 hwwrite(vortex->mmio, 0x2b3c0, 0); in vortex_EqHw_ZeroState()
424 vortex_EqHw_SetTimeConsts(vortex, 0, 0); in vortex_EqHw_ZeroState()
426 vortex_EqHw_SetLeftCoefs(vortex, asEqCoefsZeros); in vortex_EqHw_ZeroState()
427 vortex_EqHw_SetRightCoefs(vortex, asEqCoefsZeros); in vortex_EqHw_ZeroState()
429 vortex_EqHw_SetLeftGainsCurrent(vortex, eq_gains_zero); in vortex_EqHw_ZeroState()
430 vortex_EqHw_SetRightGainsCurrent(vortex, eq_gains_zero); in vortex_EqHw_ZeroState()
431 vortex_EqHw_SetLeftGainsTarget(vortex, eq_gains_zero); in vortex_EqHw_ZeroState()
432 vortex_EqHw_SetRightGainsTarget(vortex, eq_gains_zero); in vortex_EqHw_ZeroState()
434 vortex_EqHw_SetBypassGain(vortex, 0, 0); in vortex_EqHw_ZeroState()
436 vortex_EqHw_SetA3DBypassGain(vortex, 0, 0); in vortex_EqHw_ZeroState()
438 vortex_EqHw_SetLeftStates(vortex, eq_states_zero, asEqOutStateZeros); in vortex_EqHw_ZeroState()
439 vortex_EqHw_SetRightStates(vortex, eq_states_zero, asEqOutStateZeros); in vortex_EqHw_ZeroState()
440 vortex_EqHw_SetLevels(vortex, (u16 *) eq_levels); in vortex_EqHw_ZeroState()
444 static void vortex_EqHw_ProgramPipe(vortex_t * vortex) in vortex_EqHw_ProgramPipe() argument
446 vortex_EqHw_SetTimeConsts(vortex, 0, 0); in vortex_EqHw_ProgramPipe()
448 vortex_EqHw_SetLeftCoefs(vortex, asEqCoefsPipes); in vortex_EqHw_ProgramPipe()
449 vortex_EqHw_SetRightCoefs(vortex, asEqCoefsPipes); in vortex_EqHw_ProgramPipe()
451 vortex_EqHw_SetLeftGainsCurrent(vortex, eq_gains_current); in vortex_EqHw_ProgramPipe()
452 vortex_EqHw_SetRightGainsCurrent(vortex, eq_gains_current); in vortex_EqHw_ProgramPipe()
453 vortex_EqHw_SetLeftGainsTarget(vortex, eq_gains_current); in vortex_EqHw_ProgramPipe()
454 vortex_EqHw_SetRightGainsTarget(vortex, eq_gains_current); in vortex_EqHw_ProgramPipe()
459 vortex_EqHw_Program10Band(vortex_t * vortex, auxxEqCoeffSet_t * coefset) in vortex_EqHw_Program10Band() argument
462 vortex_EqHw_SetTimeConsts(vortex, 0xc, 0x7fe0); in vortex_EqHw_Program10Band()
464 vortex_EqHw_SetLeftCoefs(vortex, coefset->LeftCoefs); in vortex_EqHw_Program10Band()
465 vortex_EqHw_SetRightCoefs(vortex, coefset->RightCoefs); in vortex_EqHw_Program10Band()
467 vortex_EqHw_SetLeftGainsCurrent(vortex, coefset->LeftGains); in vortex_EqHw_Program10Band()
469 vortex_EqHw_SetRightGainsTarget(vortex, coefset->RightGains); in vortex_EqHw_Program10Band()
470 vortex_EqHw_SetLeftGainsTarget(vortex, coefset->LeftGains); in vortex_EqHw_Program10Band()
472 vortex_EqHw_SetRightGainsCurrent(vortex, coefset->RightGains); in vortex_EqHw_Program10Band()
476 static void vortex_EqHw_GetTenBandLevels(vortex_t * vortex, u16 peaks[]) in vortex_EqHw_GetTenBandLevels() argument
478 eqhw_t *eqhw = &(vortex->eq.this04); in vortex_EqHw_GetTenBandLevels()
485 peaks[i] = hwread(vortex->mmio, 0x2B024 + i * 0x30); in vortex_EqHw_GetTenBandLevels()
488 hwread(vortex->mmio, 0x2B204 + i * 0x30); in vortex_EqHw_GetTenBandLevels()
493 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument
495 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_GetLeftGain()
504 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument
506 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetLeftGain()
515 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain()
518 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument
520 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_GetRightGain()
529 static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetRightGain() argument
531 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetRightGain()
540 vortex_EqHw_SetRightGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetRightGain()
545 vortex_Eqlzr_GetAllBands(vortex_t * vortex, u16 * gains, s32 *cnt)
547 eqlzr_t *eq = &(vortex->eq);
554 if (vortex_Eqlzr_GetLeftGain(vortex, si, &gains[si]))
557 (vortex, si, &gains[si + eq->this10]))
566 static int vortex_Eqlzr_SetAllBandsFromActiveCoeffSet(vortex_t * vortex) in vortex_Eqlzr_SetAllBandsFromActiveCoeffSet() argument
568 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetAllBandsFromActiveCoeffSet()
570 vortex_EqHw_SetLeftGainsTarget(vortex, eq->this130); in vortex_Eqlzr_SetAllBandsFromActiveCoeffSet()
571 vortex_EqHw_SetRightGainsTarget(vortex, &(eq->this130[eq->this10])); in vortex_Eqlzr_SetAllBandsFromActiveCoeffSet()
577 vortex_Eqlzr_SetAllBands(vortex_t *vortex, const u16 gains[], s32 count) in vortex_Eqlzr_SetAllBands() argument
579 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetAllBands()
591 return vortex_Eqlzr_SetAllBandsFromActiveCoeffSet(vortex); in vortex_Eqlzr_SetAllBands()
595 vortex_Eqlzr_SetA3dBypassGain(vortex_t * vortex, u32 a, u32 b) in vortex_Eqlzr_SetA3dBypassGain() argument
597 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetA3dBypassGain()
608 vortex_EqHw_SetA3DBypassGain(vortex, ebx, eax); in vortex_Eqlzr_SetA3dBypassGain()
611 static void vortex_Eqlzr_ProgramA3dBypassGain(vortex_t * vortex) in vortex_Eqlzr_ProgramA3dBypassGain() argument
613 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_ProgramA3dBypassGain()
622 vortex_EqHw_SetA3DBypassGain(vortex, ebx, eax); in vortex_Eqlzr_ProgramA3dBypassGain()
625 static void vortex_Eqlzr_ShutDownA3d(vortex_t * vortex) in vortex_Eqlzr_ShutDownA3d() argument
627 if (vortex != NULL) in vortex_Eqlzr_ShutDownA3d()
628 vortex_EqHw_ZeroA3DIO(vortex); in vortex_Eqlzr_ShutDownA3d()
631 static void vortex_Eqlzr_SetBypass(vortex_t * vortex, u32 bp) in vortex_Eqlzr_SetBypass() argument
633 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_SetBypass()
637 vortex_Eqlzr_SetAllBandsFromActiveCoeffSet(vortex); in vortex_Eqlzr_SetBypass()
638 vortex_EqHw_SetBypassGain(vortex, eq->this08, eq->this08); in vortex_Eqlzr_SetBypass()
641 vortex_EqHw_SetLeftGainsTarget(vortex, eq->this14_array); in vortex_Eqlzr_SetBypass()
642 vortex_EqHw_SetRightGainsTarget(vortex, eq->this14_array); in vortex_Eqlzr_SetBypass()
643 vortex_EqHw_SetBypassGain(vortex, eq->this0c, eq->this0c); in vortex_Eqlzr_SetBypass()
645 vortex_Eqlzr_ProgramA3dBypassGain(vortex); in vortex_Eqlzr_SetBypass()
648 static void vortex_Eqlzr_ReadAndSetActiveCoefSet(vortex_t * vortex) in vortex_Eqlzr_ReadAndSetActiveCoefSet() argument
650 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_ReadAndSetActiveCoefSet()
655 vortex_Eqlzr_SetAllBands(vortex, eq_gains_normal, eq->this10 * 2); in vortex_Eqlzr_ReadAndSetActiveCoefSet()
658 static int vortex_Eqlzr_GetAllPeaks(vortex_t * vortex, u16 * peaks, int *count) in vortex_Eqlzr_GetAllPeaks() argument
660 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_GetAllPeaks()
665 vortex_EqHw_GetTenBandLevels(vortex, peaks); in vortex_Eqlzr_GetAllPeaks()
670 static auxxEqCoeffSet_t *vortex_Eqlzr_GetActiveCoefSet(vortex_t * vortex)
672 eqlzr_t *eq = &(vortex->eq);
677 static void vortex_Eqlzr_init(vortex_t * vortex) in vortex_Eqlzr_init() argument
679 eqlzr_t *eq = &(vortex->eq); in vortex_Eqlzr_init()
699 vortex_EqHw_ZeroState(vortex); in vortex_Eqlzr_init()
700 vortex_EqHw_SetSampleRate(vortex, 0x11); in vortex_Eqlzr_init()
701 vortex_Eqlzr_ReadAndSetActiveCoefSet(vortex); in vortex_Eqlzr_init()
703 vortex_EqHw_Program10Band(vortex, &(eq->coefset)); in vortex_Eqlzr_init()
704 vortex_Eqlzr_SetBypass(vortex, eq->this54); in vortex_Eqlzr_init()
705 vortex_Eqlzr_SetA3dBypassGain(vortex, 0, 0); in vortex_Eqlzr_init()
706 vortex_EqHw_Enable(vortex); in vortex_Eqlzr_init()
709 static void vortex_Eqlzr_shutdown(vortex_t * vortex) in vortex_Eqlzr_shutdown() argument
711 vortex_Eqlzr_ShutDownA3d(vortex); in vortex_Eqlzr_shutdown()
712 vortex_EqHw_ProgramPipe(vortex); in vortex_Eqlzr_shutdown()
713 vortex_EqHw_Disable(vortex); in vortex_Eqlzr_shutdown()
725 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eqtoggle_get() local
726 eqlzr_t *eq = &(vortex->eq); in snd_vortex_eqtoggle_get()
738 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eqtoggle_put() local
739 eqlzr_t *eq = &(vortex->eq); in snd_vortex_eqtoggle_put()
743 vortex_Eqlzr_SetBypass(vortex, eq->this54); in snd_vortex_eqtoggle_put()
772 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eq_get() local
776 vortex_Eqlzr_GetLeftGain(vortex, i, &gainL); in snd_vortex_eq_get()
777 vortex_Eqlzr_GetRightGain(vortex, i, &gainR); in snd_vortex_eq_get()
786 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eq_put() local
790 vortex_Eqlzr_GetLeftGain(vortex, i, &gainL); in snd_vortex_eq_put()
791 vortex_Eqlzr_GetRightGain(vortex, i, &gainR); in snd_vortex_eq_put()
794 vortex_Eqlzr_SetLeftGain(vortex, i, in snd_vortex_eq_put()
799 vortex_Eqlzr_SetRightGain(vortex, i, in snd_vortex_eq_put()
830 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_peaks_get() local
834 vortex_Eqlzr_GetAllPeaks(vortex, peaks, &count); in snd_vortex_peaks_get()
836 dev_err(vortex->card->dev, in snd_vortex_peaks_get()
869 static int vortex_eq_init(vortex_t *vortex) in vortex_eq_init() argument
874 vortex_Eqlzr_init(vortex); in vortex_eq_init()
876 kcontrol = snd_ctl_new1(&vortex_eqtoggle_kcontrol, vortex); in vortex_eq_init()
880 err = snd_ctl_add(vortex->card, kcontrol); in vortex_eq_init()
886 kcontrol = snd_ctl_new1(&vortex_eq_kcontrol, vortex); in vortex_eq_init()
892 err = snd_ctl_add(vortex->card, kcontrol); in vortex_eq_init()
898 kcontrol = snd_ctl_new1(&vortex_levels_kcontrol, vortex); in vortex_eq_init()
901 err = snd_ctl_add(vortex->card, kcontrol); in vortex_eq_init()
908 static int vortex_eq_free(vortex_t * vortex) in vortex_eq_free() argument
918 vortex_Eqlzr_shutdown(vortex); in vortex_eq_free()