mt6627_fm_cust_cfg.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __FM_CUST_CFG_H__
  2. #define __FM_CUST_CFG_H__
  3. /* scan sort algorithm */
  4. enum {
  5. FM_SCAN_SORT_NON = 0,
  6. FM_SCAN_SORT_UP,
  7. FM_SCAN_SORT_DOWN,
  8. FM_SCAN_SORT_MAX
  9. };
  10. /*typedef struct {
  11. fm_s32 short_ana_rssi_th;
  12. fm_s32 long_ana_rssi_th;
  13. fm_s32 desene_rssi_th;
  14. fm_s32 pamd_th;
  15. fm_s32 mr_th;
  16. fm_s32 atdc_th;
  17. fm_u32 prx_th;
  18. fm_u32 atdev_th;
  19. fm_u16 smg_th;
  20. fm_u16 deemphasis;
  21. fm_u16 osc_freq;
  22. }mt6628_fm_rx_cust_cfg;
  23. typedef struct{
  24. mt6628_fm_rx_cust_cfg rx_cfg;
  25. }mt6628_fm_cust_cfg;
  26. */
  27. /* ***************************************************************************************** */
  28. /* ***********************************FM config for customer: start****************************** */
  29. /* ***************************************************************************************** */
  30. /* RX */
  31. #define FM_RX_RSSI_TH_LONG_MT6627 -296 /* FM radio long antenna RSSI threshold(-4dBuV) */
  32. #define FM_RX_RSSI_TH_SHORT_MT6627 -296 /* FM radio short antenna RSSI threshold(-4dBuV) */
  33. #define FM_RX_DESENSE_RSSI_MT6627 -258
  34. #define FM_RX_PAMD_TH_MT6627 -12
  35. #define FM_RX_MR_TH_MT6627 -67
  36. #define FM_RX_ATDC_TH_MT6627 3496
  37. #define FM_RX_PRX_TH_MT6627 64
  38. #define FM_RX_SMG_TH_MT6627 16421 /* FM soft-mute gain threshold */
  39. #define FM_RX_DEEMPHASIS_MT6627 0 /* 0-50us, China Mainland; 1-75us China Taiwan */
  40. #define FM_RX_OSC_FREQ_MT6627 0 /* 0-26MHz; 1-19MHz; 2-24MHz; 3-38.4MHz; 4-40MHz; 5-52MHz */
  41. #define FM_AUTO_HILO_OFF_MT6627 0
  42. #define FM_AUTO_HILO_ON_MT6627 1
  43. /* seek threshold */
  44. #define FM_SEEKTH_LEVEL_DEFAULT_MT6627 4
  45. extern fm_cust_cfg mt6627_fm_config;
  46. #endif /* __FM_CUST_CFG_H__ */