max9850.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * max9850.h -- codec driver for max9850
  3. *
  4. * Copyright (C) 2011 taskit GmbH
  5. * Author: Christian Glindkamp <christian.glindkamp@taskit.de>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. */
  13. #ifndef _MAX9850_H
  14. #define _MAX9850_H
  15. #define MAX9850_STATUSA 0x00
  16. #define MAX9850_STATUSB 0x01
  17. #define MAX9850_VOLUME 0x02
  18. #define MAX9850_GENERAL_PURPOSE 0x03
  19. #define MAX9850_INTERRUPT 0x04
  20. #define MAX9850_ENABLE 0x05
  21. #define MAX9850_CLOCK 0x06
  22. #define MAX9850_CHARGE_PUMP 0x07
  23. #define MAX9850_LRCLK_MSB 0x08
  24. #define MAX9850_LRCLK_LSB 0x09
  25. #define MAX9850_DIGITAL_AUDIO 0x0a
  26. #define MAX9850_CACHEREGNUM 11
  27. /* MAX9850_DIGITAL_AUDIO */
  28. #define MAX9850_MASTER (1<<7)
  29. #define MAX9850_INV (1<<6)
  30. #define MAX9850_BCINV (1<<5)
  31. #define MAX9850_DLY (1<<3)
  32. #define MAX9850_RTJ (1<<2)
  33. #endif