Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.1 KiB

  1. //==========================================================================;
  2. //
  3. // TDA98501.H
  4. // WDM TVAudio MiniDriver.
  5. // AIW / AIWPro hardware platform.
  6. // Philips TDA9851 Stereo decoder Include Module.
  7. // Copyright (c) 1996 - 1998 ATI Technologies Inc. All Rights Reserved.
  8. //
  9. // $Date: 15 Apr 1998 14:05:54 $
  10. // $Revision: 1.1 $
  11. // $Author: KLEBANOV $
  12. //
  13. //==========================================================================;
  14. #ifndef _ATIAUDIO_TDA9851_H_
  15. #define _ATIAUDIO_TDA9851_H_
  16. // TDA9851 CONTROL SETTINGS:
  17. #define TDA9851_AU_MODE_MASK 0xFE // Mask for Audio Mode Selection (Bit0)
  18. #define TDA9851_STEREO 0x01 // Set Stereo
  19. #define TDA9851_MONO 0x00 // Set Mono
  20. #define TDA9851_STEREO_DETECTED 0x01 // Stereo is detected.
  21. #define TDA9851_MUTE_MASK 0xFD // Mask for Mute on TDA9851.(Bit1)
  22. #define TDA9851_MUTE 0x02 // Mute at OUTR and OUTL.
  23. #define TDA9851_UNMUTE 0x00 // Unmute at OUTR and OUTL.
  24. #define TDA9851_AVL_MASK 0xFB // Mask for AVL. (Bit2)
  25. #define TDA9851_AVL_ON 0x04 // Auto Volume Level Addjustment ON.
  26. #define TDA9851_AVL_OFF 0x00 // Auto Volume Level Addjustment OFF.
  27. #define TDA9851_CCD_MASK 0xF7 // Mask for CCD bit setting. (Bit3)
  28. #define TDA9851_NORMAL_CURRENT 0x00 // Load current for normal AVL decay.
  29. #define TDA9851_INCREASED_CURRENT 0x08 // Increased load current.
  30. #define TDA9851_AVL_ATTACK_MASK 0xCF // Mask for AVL ATTACK. (Bit4,5)
  31. #define TDA9851_AVL_ATTACK_420 0x00 // AVL Attack time 420 ohm.
  32. #define TDA9851_AVL_ATTACK_730 0x10 // AVL Attack time 730 ohm.
  33. #define TDA9851_AVL_ATTACK_1200 0x20 // AVL Attack time 1200 ohm.
  34. #define TDA9851_AVL_ATTACK_2100 0x30 // AVL Attack time 2100 ohm.
  35. #define AUDIO_TDA9851_DefaultValue ( TDA9851_AVL_ATTACK_730 | \
  36. TDA9851_STEREO)
  37. // Status register definitions
  38. #define AUDIO_TDA9851_Indicator_Stereo 0x01
  39. #define AUDIO_TDA9851_Control_Stereo TDA9851_STEREO
  40. #endif // _ATIAUDIO_TDA9851_H_