jznomoney

Untitled

Sep 20th, 2011
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #ifdef CONFIG_HTC_VOICE_DUALMIC
  2. static struct adie_codec_action_unit idual_mic_48KHz_osr256_actions[] =
  3. DUAL_MIC_STEREO_TX_48000_OSR_256;
  4.  
  5. static struct adie_codec_hwsetting_entry idual_mic_settings[] = {
  6. {
  7. .freq_plan = 48000,
  8. .osr = 256,
  9. .actions = idual_mic_48KHz_osr256_actions,
  10. .action_sz = ARRAY_SIZE(idual_mic_48KHz_osr256_actions),
  11. }
  12. };
  13.  
  14. static struct adie_codec_dev_profile idual_mic_profile = {
  15. .path_type = ADIE_CODEC_TX,
  16. .settings = idual_mic_settings,
  17. .setting_sz = ARRAY_SIZE(idual_mic_settings),
  18. };
  19.  
  20. static struct snddev_icodec_data snddev_idual_mic_endfire_real_stereo_data = {
  21. .capability = (SNDDEV_CAP_TX | SNDDEV_CAP_VOICE),
  22. .name = "dual_mic_stereo_tx",
  23. .copp_id = 0,
  24. .acdb_id = ACDB_ID_SPKR_PHONE_MIC,
  25. .profile = &idual_mic_profile,
  26. .channel_mode = REAL_STEREO_CHANNEL_MODE,
  27. .pmctl_id = NULL,
  28. .pmctl_id_sz = 0,
  29. .default_sample_rate = 48000,
  30. .pamp_on = int_mic_enable,
  31. };
  32.  
  33. static struct platform_device msm_real_stereo_tx_device = {
  34. .name = "snddev_icodec",
  35. .id = 27,
  36. .dev = { .platform_data = &snddev_idual_mic_endfire_real_stereo_data },
  37. };
  38.  
  39.  
  40. #ifdef CONFIG_HTC_VOICE_DUALMIC
  41. &msm_real_stereo_tx_device,
  42. #endif
  43.  
  44.  
  45. #ifdef CONFIG_HTC_VOICE_DUALMIC
  46. static struct adie_codec_action_unit idual_mic_48KHz_osr256_actions[] =
  47. DUAL_MIC_STEREO_TX_48000_OSR_256;
  48.  
  49. static struct adie_codec_hwsetting_entry idual_mic_settings[] = {
  50. {
  51. .freq_plan = 48000,
  52. .osr = 256,
  53. .actions = idual_mic_48KHz_osr256_actions,
  54. .action_sz = ARRAY_SIZE(idual_mic_48KHz_osr256_actions),
  55. }
  56. };
  57.  
  58. static struct adie_codec_dev_profile idual_mic_profile = {
  59. .path_type = ADIE_CODEC_TX,
  60. .settings = idual_mic_settings,
  61. .setting_sz = ARRAY_SIZE(idual_mic_settings),
  62. };
  63.  
  64. static struct snddev_icodec_data snddev_idual_mic_endfire_real_stereo_data = {
  65. .capability = (SNDDEV_CAP_TX | SNDDEV_CAP_VOICE),
  66. .name = "dual_mic_stereo_tx",
  67. .copp_id = 0,
  68. .acdb_id = ACDB_ID_SPKR_PHONE_MIC,
  69. .profile = &idual_mic_profile,
  70. .channel_mode = REAL_STEREO_CHANNEL_MODE,
  71. .pmctl_id = NULL,
  72. .pmctl_id_sz = 0,
  73. .default_sample_rate = 48000,
  74. .pamp_on = int_mic_enable,
  75. };
  76.  
  77. static struct platform_device msm_real_stereo_tx_device = {
  78. .name = "snddev_icodec",
  79. .id = 27,
  80. .dev = { .platform_data = &snddev_idual_mic_endfire_real_stereo_data },
  81. };
Advertisement
Add Comment
Please, Sign In to add comment