/***************************************************************************1* au88x0_cxtalk.h2*3* Wed Nov 19 19:07:17 20034* Copyright 2003 mjander5* [email protected]6****************************************************************************/78/*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License as published by11* the Free Software Foundation; either version 2 of the License, or12* (at your option) any later version.13*14* This program is distributed in the hope that it will be useful,15* but WITHOUT ANY WARRANTY; without even the implied warranty of16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17* GNU Library General Public License for more details.18*19* You should have received a copy of the GNU General Public License20* along with this program; if not, write to the Free Software21* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.22*/2324/* The crosstalk canceler supports 5 stereo input channels. The result is25available at one single output route pair (stereo). */2627#ifndef _AU88X0_CXTALK_H28#define _AU88X0_CXTALK_H2930#include "au88x0.h"3132#define XTDLINE_SZ 3233#define XTGAINS_SZ 1034#define XTINST_SZ 43536#define XT_HEADPHONE 137#define XT_SPEAKER0 238#define XT_SPEAKER1 339#define XT_DIAMOND 44041typedef u32 xtalk_dline_t[XTDLINE_SZ];42typedef u16 xtalk_gains_t[XTGAINS_SZ];43typedef u16 xtalk_instate_t[XTINST_SZ];44typedef u16 xtalk_coefs_t[5][5];45typedef u16 xtalk_state_t[5][4];4647static void vortex_XtalkHw_SetGains(vortex_t * vortex,48xtalk_gains_t const gains);49static void vortex_XtalkHw_SetGainsAllChan(vortex_t * vortex);50static void vortex_XtalkHw_SetSampleRate(vortex_t * vortex, u32 sr);51static void vortex_XtalkHw_ProgramPipe(vortex_t * vortex);52static void vortex_XtalkHw_ProgramPipe(vortex_t * vortex);53static void vortex_XtalkHw_ProgramXtalkWide(vortex_t * vortex);54static void vortex_XtalkHw_ProgramXtalkNarrow(vortex_t * vortex);55static void vortex_XtalkHw_ProgramDiamondXtalk(vortex_t * vortex);56static void vortex_XtalkHw_Enable(vortex_t * vortex);57static void vortex_XtalkHw_Disable(vortex_t * vortex);58static void vortex_XtalkHw_init(vortex_t * vortex);5960#endif /* _AU88X0_CXTALK_H */616263