tea6330t.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __SOUND_TEA6330T_H
  2. #define __SOUND_TEA6330T_H
  3. /*
  4. * Routines for control of TEA6330T circuit.
  5. * Sound fader control circuit for car radios.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. *
  22. */
  23. #include "control.h"
  24. #include "i2c.h" /* generic i2c support */
  25. typedef struct {
  26. snd_i2c_device_t *device;
  27. snd_i2c_bus_t *bus;
  28. int equalizer;
  29. int fader;
  30. unsigned char regs[8];
  31. unsigned char mleft, mright;
  32. unsigned char bass, treble;
  33. unsigned char max_bass, max_treble;
  34. } tea6330t_t;
  35. extern int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer);
  36. extern int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader);
  37. #endif /* __SOUND_TEA6330T_H */