msm-dolby-dap-config.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. /* Copyright (c) 2013, The Linux Foundation. All rights reserved.
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License version 2 and
  4. * only version 2 as published by the Free Software Foundation.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. */
  11. #ifndef _MSM_DOLBY_DAP_CONFIG_H_
  12. #define _MSM_DOLBY_DAP_CONFIG_H_
  13. #ifdef CONFIG_DOLBY_DAP
  14. /* DOLBY DOLBY GUIDS */
  15. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0x0001033B
  16. #define DOLBY_BUNDLE_MODULE_ID 0x00010723
  17. #define DOLBY_VISUALIZER_MODULE_ID 0x0001072B
  18. #define DOLBY_PARAM_ID_VDHE 0x0001074D
  19. #define DOLBY_PARAM_ID_VSPE 0x00010750
  20. #define DOLBY_PARAM_ID_DSSF 0x00010753
  21. #define DOLBY_PARAM_ID_DVLI 0x0001073E
  22. #define DOLBY_PARAM_ID_DVLO 0x0001073F
  23. #define DOLBY_PARAM_ID_DVLE 0x0001073C
  24. #define DOLBY_PARAM_ID_DVMC 0x00010741
  25. #define DOLBY_PARAM_ID_DVME 0x00010740
  26. #define DOLBY_PARAM_ID_IENB 0x00010744
  27. #define DOLBY_PARAM_ID_IEBF 0x00010745
  28. #define DOLBY_PARAM_ID_IEON 0x00010743
  29. #define DOLBY_PARAM_ID_DEON 0x00010738
  30. #define DOLBY_PARAM_ID_NGON 0x00010736
  31. #define DOLBY_PARAM_ID_GEON 0x00010748
  32. #define DOLBY_PARAM_ID_GENB 0x00010749
  33. #define DOLBY_PARAM_ID_GEBF 0x0001074A
  34. #define DOLBY_PARAM_ID_AONB 0x0001075B
  35. #define DOLBY_PARAM_ID_AOBF 0x0001075C
  36. #define DOLBY_PARAM_ID_AOBG 0x0001075D
  37. #define DOLBY_PARAM_ID_AOON 0x00010759
  38. #define DOLBY_PARAM_ID_ARNB 0x0001075F
  39. #define DOLBY_PARAM_ID_ARBF 0x00010760
  40. #define DOLBY_PARAM_ID_PLB 0x00010768
  41. #define DOLBY_PARAM_ID_PLMD 0x00010767
  42. #define DOLBY_PARAM_ID_DHSB 0x0001074E
  43. #define DOLBY_PARAM_ID_DHRG 0x0001074F
  44. #define DOLBY_PARAM_ID_DSSB 0x00010751
  45. #define DOLBY_PARAM_ID_DSSA 0x00010752
  46. #define DOLBY_PARAM_ID_DVLA 0x0001073D
  47. #define DOLBY_PARAM_ID_IEBT 0x00010746
  48. #define DOLBY_PARAM_ID_IEA 0x0001076A
  49. #define DOLBY_PARAM_ID_DEA 0x00010739
  50. #define DOLBY_PARAM_ID_DED 0x0001073A
  51. #define DOLBY_PARAM_ID_GEBG 0x0001074B
  52. #define DOLBY_PARAM_ID_AOCC 0x0001075A
  53. #define DOLBY_PARAM_ID_ARBI 0x00010761
  54. #define DOLBY_PARAM_ID_ARBL 0x00010762
  55. #define DOLBY_PARAM_ID_ARBH 0x00010763
  56. #define DOLBY_PARAM_ID_AROD 0x00010764
  57. #define DOLBY_PARAM_ID_ARTP 0x00010765
  58. #define DOLBY_PARAM_ID_VMON 0x00010756
  59. #define DOLBY_PARAM_ID_VMB 0x00010757
  60. #define DOLBY_PARAM_ID_VCNB 0x00010733
  61. #define DOLBY_PARAM_ID_VCBF 0x00010734
  62. #define DOLBY_PARAM_ID_PREG 0x00010728
  63. #define DOLBY_PARAM_ID_VEN 0x00010732
  64. #define DOLBY_PARAM_ID_PSTG 0x00010729
  65. #define DOLBY_PARAM_ID_INIT_ENDP 0x00010727
  66. /* Not Used with Set Param kcontrol, only to query using Get Param */
  67. #define DOLBY_PARAM_ID_VER 0x00010726
  68. #define DOLBY_PARAM_ID_VCBG 0x00010730
  69. #define DOLBY_PARAM_ID_VCBE 0x00010731
  70. /* DOLBY DAP control params */
  71. #define DOLBY_COMMIT_ALL_TO_DSP 0x70000001
  72. #define DOLBY_COMMIT_TO_DSP 0x70000002
  73. #define DOLBY_USE_CACHE 0x70000003
  74. #define DOLBY_AUTO_ENDP 0x70000004
  75. #define DOLBY_AUTO_ENDDEP_PARAMS 0x70000005
  76. /* DOLBY DAP offsets start */
  77. #define DOLBY_PARAM_VDHE_LENGTH 1
  78. #define DOLBY_PARAM_VDHE_OFFSET 0
  79. #define DOLBY_PARAM_VSPE_LENGTH 1
  80. #define DOLBY_PARAM_VSPE_OFFSET (DOLBY_PARAM_VDHE_OFFSET + \
  81. DOLBY_PARAM_VDHE_LENGTH)
  82. #define DOLBY_PARAM_DSSF_LENGTH 1
  83. #define DOLBY_PARAM_DSSF_OFFSET (DOLBY_PARAM_VSPE_OFFSET + \
  84. DOLBY_PARAM_VSPE_LENGTH)
  85. #define DOLBY_PARAM_DVLI_LENGTH 1
  86. #define DOLBY_PARAM_DVLI_OFFSET (DOLBY_PARAM_DSSF_OFFSET + \
  87. DOLBY_PARAM_DSSF_LENGTH)
  88. #define DOLBY_PARAM_DVLO_LENGTH 1
  89. #define DOLBY_PARAM_DVLO_OFFSET (DOLBY_PARAM_DVLI_OFFSET + \
  90. DOLBY_PARAM_DVLI_LENGTH)
  91. #define DOLBY_PARAM_DVLE_LENGTH 1
  92. #define DOLBY_PARAM_DVLE_OFFSET (DOLBY_PARAM_DVLO_OFFSET + \
  93. DOLBY_PARAM_DVLO_LENGTH)
  94. #define DOLBY_PARAM_DVMC_LENGTH 1
  95. #define DOLBY_PARAM_DVMC_OFFSET (DOLBY_PARAM_DVLE_OFFSET + \
  96. DOLBY_PARAM_DVLE_LENGTH)
  97. #define DOLBY_PARAM_DVME_LENGTH 1
  98. #define DOLBY_PARAM_DVME_OFFSET (DOLBY_PARAM_DVMC_OFFSET + \
  99. DOLBY_PARAM_DVMC_LENGTH)
  100. #define DOLBY_PARAM_IENB_LENGTH 1
  101. #define DOLBY_PARAM_IENB_OFFSET (DOLBY_PARAM_DVME_OFFSET + \
  102. DOLBY_PARAM_DVME_LENGTH)
  103. #define DOLBY_PARAM_IEBF_LENGTH 40
  104. #define DOLBY_PARAM_IEBF_OFFSET (DOLBY_PARAM_IENB_OFFSET + \
  105. DOLBY_PARAM_IENB_LENGTH)
  106. #define DOLBY_PARAM_IEON_LENGTH 1
  107. #define DOLBY_PARAM_IEON_OFFSET (DOLBY_PARAM_IEBF_OFFSET + \
  108. DOLBY_PARAM_IEBF_LENGTH)
  109. #define DOLBY_PARAM_DEON_LENGTH 1
  110. #define DOLBY_PARAM_DEON_OFFSET (DOLBY_PARAM_IEON_OFFSET + \
  111. DOLBY_PARAM_IEON_LENGTH)
  112. #define DOLBY_PARAM_NGON_LENGTH 1
  113. #define DOLBY_PARAM_NGON_OFFSET (DOLBY_PARAM_DEON_OFFSET + \
  114. DOLBY_PARAM_DEON_LENGTH)
  115. #define DOLBY_PARAM_GEON_LENGTH 1
  116. #define DOLBY_PARAM_GEON_OFFSET (DOLBY_PARAM_NGON_OFFSET + \
  117. DOLBY_PARAM_NGON_LENGTH)
  118. #define DOLBY_PARAM_GENB_LENGTH 1
  119. #define DOLBY_PARAM_GENB_OFFSET (DOLBY_PARAM_GEON_OFFSET + \
  120. DOLBY_PARAM_GEON_LENGTH)
  121. #define DOLBY_PARAM_GEBF_LENGTH 40
  122. #define DOLBY_PARAM_GEBF_OFFSET (DOLBY_PARAM_GENB_OFFSET + \
  123. DOLBY_PARAM_GENB_LENGTH)
  124. #define DOLBY_PARAM_AONB_LENGTH 1
  125. #define DOLBY_PARAM_AONB_OFFSET (DOLBY_PARAM_GEBF_OFFSET + \
  126. DOLBY_PARAM_GEBF_LENGTH)
  127. #define DOLBY_PARAM_AOBF_LENGTH 40
  128. #define DOLBY_PARAM_AOBF_OFFSET (DOLBY_PARAM_AONB_OFFSET + \
  129. DOLBY_PARAM_AONB_LENGTH)
  130. #define DOLBY_PARAM_AOBG_LENGTH 329
  131. #define DOLBY_PARAM_AOBG_OFFSET (DOLBY_PARAM_AOBF_OFFSET + \
  132. DOLBY_PARAM_AOBF_LENGTH)
  133. #define DOLBY_PARAM_AOON_LENGTH 1
  134. #define DOLBY_PARAM_AOON_OFFSET (DOLBY_PARAM_AOBG_OFFSET + \
  135. DOLBY_PARAM_AOBG_LENGTH)
  136. #define DOLBY_PARAM_ARNB_LENGTH 1
  137. #define DOLBY_PARAM_ARNB_OFFSET (DOLBY_PARAM_AOON_OFFSET + \
  138. DOLBY_PARAM_AOON_LENGTH)
  139. #define DOLBY_PARAM_ARBF_LENGTH 40
  140. #define DOLBY_PARAM_ARBF_OFFSET (DOLBY_PARAM_ARNB_OFFSET + \
  141. DOLBY_PARAM_ARNB_LENGTH)
  142. #define DOLBY_PARAM_PLB_LENGTH 1
  143. #define DOLBY_PARAM_PLB_OFFSET (DOLBY_PARAM_ARBF_OFFSET + \
  144. DOLBY_PARAM_ARBF_LENGTH)
  145. #define DOLBY_PARAM_PLMD_LENGTH 1
  146. #define DOLBY_PARAM_PLMD_OFFSET (DOLBY_PARAM_PLB_OFFSET + \
  147. DOLBY_PARAM_PLB_LENGTH)
  148. #define DOLBY_PARAM_DHSB_LENGTH 1
  149. #define DOLBY_PARAM_DHSB_OFFSET (DOLBY_PARAM_PLMD_OFFSET + \
  150. DOLBY_PARAM_PLMD_LENGTH)
  151. #define DOLBY_PARAM_DHRG_LENGTH 1
  152. #define DOLBY_PARAM_DHRG_OFFSET (DOLBY_PARAM_DHSB_OFFSET + \
  153. DOLBY_PARAM_DHSB_LENGTH)
  154. #define DOLBY_PARAM_DSSB_LENGTH 1
  155. #define DOLBY_PARAM_DSSB_OFFSET (DOLBY_PARAM_DHRG_OFFSET + \
  156. DOLBY_PARAM_DHRG_LENGTH)
  157. #define DOLBY_PARAM_DSSA_LENGTH 1
  158. #define DOLBY_PARAM_DSSA_OFFSET (DOLBY_PARAM_DSSB_OFFSET + \
  159. DOLBY_PARAM_DSSB_LENGTH)
  160. #define DOLBY_PARAM_DVLA_LENGTH 1
  161. #define DOLBY_PARAM_DVLA_OFFSET (DOLBY_PARAM_DSSA_OFFSET + \
  162. DOLBY_PARAM_DSSA_LENGTH)
  163. #define DOLBY_PARAM_IEBT_LENGTH 40
  164. #define DOLBY_PARAM_IEBT_OFFSET (DOLBY_PARAM_DVLA_OFFSET + \
  165. DOLBY_PARAM_DVLA_LENGTH)
  166. #define DOLBY_PARAM_IEA_LENGTH 1
  167. #define DOLBY_PARAM_IEA_OFFSET (DOLBY_PARAM_IEBT_OFFSET + \
  168. DOLBY_PARAM_IEBT_LENGTH)
  169. #define DOLBY_PARAM_DEA_LENGTH 1
  170. #define DOLBY_PARAM_DEA_OFFSET (DOLBY_PARAM_IEA_OFFSET + \
  171. DOLBY_PARAM_IEA_LENGTH)
  172. #define DOLBY_PARAM_DED_LENGTH 1
  173. #define DOLBY_PARAM_DED_OFFSET (DOLBY_PARAM_DEA_OFFSET + \
  174. DOLBY_PARAM_DEA_LENGTH)
  175. #define DOLBY_PARAM_GEBG_LENGTH 40
  176. #define DOLBY_PARAM_GEBG_OFFSET (DOLBY_PARAM_DED_OFFSET + \
  177. DOLBY_PARAM_DED_LENGTH)
  178. #define DOLBY_PARAM_AOCC_LENGTH 1
  179. #define DOLBY_PARAM_AOCC_OFFSET (DOLBY_PARAM_GEBG_OFFSET + \
  180. DOLBY_PARAM_GEBG_LENGTH)
  181. #define DOLBY_PARAM_ARBI_LENGTH 40
  182. #define DOLBY_PARAM_ARBI_OFFSET (DOLBY_PARAM_AOCC_OFFSET + \
  183. DOLBY_PARAM_AOCC_LENGTH)
  184. #define DOLBY_PARAM_ARBL_LENGTH 40
  185. #define DOLBY_PARAM_ARBL_OFFSET (DOLBY_PARAM_ARBI_OFFSET + \
  186. DOLBY_PARAM_ARBI_LENGTH)
  187. #define DOLBY_PARAM_ARBH_LENGTH 40
  188. #define DOLBY_PARAM_ARBH_OFFSET (DOLBY_PARAM_ARBL_OFFSET + \
  189. DOLBY_PARAM_ARBL_LENGTH)
  190. #define DOLBY_PARAM_AROD_LENGTH 1
  191. #define DOLBY_PARAM_AROD_OFFSET (DOLBY_PARAM_ARBH_OFFSET + \
  192. DOLBY_PARAM_ARBH_LENGTH)
  193. #define DOLBY_PARAM_ARTP_LENGTH 1
  194. #define DOLBY_PARAM_ARTP_OFFSET (DOLBY_PARAM_AROD_OFFSET + \
  195. DOLBY_PARAM_AROD_LENGTH)
  196. #define DOLBY_PARAM_VMON_LENGTH 1
  197. #define DOLBY_PARAM_VMON_OFFSET (DOLBY_PARAM_ARTP_OFFSET + \
  198. DOLBY_PARAM_ARTP_LENGTH)
  199. #define DOLBY_PARAM_VMB_LENGTH 1
  200. #define DOLBY_PARAM_VMB_OFFSET (DOLBY_PARAM_VMON_OFFSET + \
  201. DOLBY_PARAM_VMON_LENGTH)
  202. #define DOLBY_PARAM_VCNB_LENGTH 1
  203. #define DOLBY_PARAM_VCNB_OFFSET (DOLBY_PARAM_VMB_OFFSET + \
  204. DOLBY_PARAM_VMB_LENGTH)
  205. #define DOLBY_PARAM_VCBF_LENGTH 20
  206. #define DOLBY_PARAM_VCBF_OFFSET (DOLBY_PARAM_VCNB_OFFSET + \
  207. DOLBY_PARAM_VCNB_LENGTH)
  208. #define DOLBY_PARAM_PREG_LENGTH 1
  209. #define DOLBY_PARAM_PREG_OFFSET (DOLBY_PARAM_VCBF_OFFSET + \
  210. DOLBY_PARAM_VCBF_LENGTH)
  211. #define DOLBY_PARAM_VEN_LENGTH 1
  212. #define DOLBY_PARAM_VEN_OFFSET (DOLBY_PARAM_PREG_OFFSET + \
  213. DOLBY_PARAM_PREG_LENGTH)
  214. #define DOLBY_PARAM_PSTG_LENGTH 1
  215. #define DOLBY_PARAM_PSTG_OFFSET (DOLBY_PARAM_VEN_OFFSET + \
  216. DOLBY_PARAM_VEN_LENGTH)
  217. #define DOLBY_PARAM_INT_ENDP_LENGTH 1
  218. #define DOLBY_PARAM_PAYLOAD_SIZE 3
  219. #define DOLBY_MAX_LENGTH_INDIVIDUAL_PARAM 329
  220. #define DOLBY_NUM_ENDP_DEPENDENT_PARAMS 3
  221. #define DOLBY_ENDDEP_PARAM_DVLO_OFFSET 0
  222. #define DOLBY_ENDDEP_PARAM_DVLO_LENGTH 1
  223. #define DOLBY_ENDDEP_PARAM_DVLI_OFFSET (DOLBY_ENDDEP_PARAM_DVLO_OFFSET + \
  224. DOLBY_ENDDEP_PARAM_DVLO_LENGTH)
  225. #define DOLBY_ENDDEP_PARAM_DVLI_LENGTH 1
  226. #define DOLBY_ENDDEP_PARAM_VMB_OFFSET (DOLBY_ENDDEP_PARAM_DVLI_OFFSET + \
  227. DOLBY_ENDDEP_PARAM_DVLI_LENGTH)
  228. #define DOLBY_ENDDEP_PARAM_VMB_LENGTH 1
  229. #define DOLBY_ENDDEP_PARAM_LENGTH (DOLBY_ENDDEP_PARAM_DVLO_LENGTH + \
  230. DOLBY_ENDDEP_PARAM_DVLI_LENGTH + DOLBY_ENDDEP_PARAM_VMB_LENGTH)
  231. #define MAX_DOLBY_PARAMS 47
  232. #define MAX_DOLBY_CTRL_PARAMS 5
  233. #define ALL_DOLBY_PARAMS (MAX_DOLBY_PARAMS + \
  234. MAX_DOLBY_CTRL_PARAMS)
  235. #define DOLBY_COMMIT_ALL_IDX MAX_DOLBY_PARAMS
  236. #define DOLBY_COMMIT_IDX (MAX_DOLBY_PARAMS+1)
  237. #define DOLBY_USE_CACHE_IDX (MAX_DOLBY_PARAMS+2)
  238. #define DOLBY_AUTO_ENDP_IDX (MAX_DOLBY_PARAMS+3)
  239. #define DOLBY_AUTO_ENDDEP_IDX (MAX_DOLBY_PARAMS+4)
  240. #define TOTAL_LENGTH_DOLBY_PARAM 745
  241. #define NUM_DOLBY_ENDP_DEVICE 24
  242. #define DOLBY_VIS_PARAM_HEADER_SIZE 25
  243. #define DOLBY_INVALID_PORT_ID -1
  244. /* DOLBY device definitions */
  245. enum {
  246. DOLBY_ENDP_INT_SPEAKERS = 0,
  247. DOLBY_ENDP_EXT_SPEAKERS,
  248. DOLBY_ENDP_HEADPHONES,
  249. DOLBY_ENDP_HDMI,
  250. DOLBY_ENDP_SPDIF,
  251. DOLBY_ENDP_DLNA,
  252. DOLBY_ENDP_ANALOG,
  253. };
  254. enum {
  255. DEVICE_NONE = 0x0,
  256. /* output devices */
  257. EARPIECE = 0x1,
  258. SPEAKER = 0x2,
  259. WIRED_HEADSET = 0x4,
  260. WIRED_HEADPHONE = 0x8,
  261. BLUETOOTH_SCO = 0x10,
  262. BLUETOOTH_SCO_HEADSET = 0x20,
  263. BLUETOOTH_SCO_CARKIT = 0x40,
  264. BLUETOOTH_A2DP = 0x80,
  265. BLUETOOTH_A2DP_HEADPHONES = 0x100,
  266. BLUETOOTH_A2DP_SPEAKER = 0x200,
  267. AUX_DIGITAL = 0x400,
  268. ANLG_DOCK_HEADSET = 0x800,
  269. DGTL_DOCK_HEADSET = 0x1000,
  270. USB_ACCESSORY = 0x2000,
  271. USB_DEVICE = 0x4000,
  272. REMOTE_SUBMIX = 0x8000,
  273. ANC_HEADSET = 0x10000,
  274. ANC_HEADPHONE = 0x20000,
  275. PROXY = 0x40000,
  276. FM = 0x80000,
  277. FM_TX = 0x100000,
  278. DEVICE_OUT_ALL = 0x7FFFFFFF,
  279. };
  280. /* DOLBY device definitions end */
  281. struct dolby_dap_params {
  282. uint32_t value[TOTAL_LENGTH_DOLBY_PARAM + MAX_DOLBY_PARAMS];
  283. } __packed;
  284. int dolby_dap_init(int port_id, int channels);
  285. int msm_routing_get_dolby_dap_param_to_set_control(
  286. struct snd_kcontrol *kcontrol,
  287. struct snd_ctl_elem_value *ucontrol);
  288. int msm_routing_put_dolby_dap_param_to_set_control(
  289. struct snd_kcontrol *kcontrol,
  290. struct snd_ctl_elem_value *ucontrol);
  291. int msm_routing_get_dolby_dap_param_to_get_control(
  292. struct snd_kcontrol *kcontrol,
  293. struct snd_ctl_elem_value *ucontrol);
  294. int msm_routing_put_dolby_dap_param_to_get_control(
  295. struct snd_kcontrol *kcontrol,
  296. struct snd_ctl_elem_value *ucontrol);
  297. int msm_routing_get_dolby_dap_param_visualizer_control(
  298. struct snd_kcontrol *kcontrol,
  299. struct snd_ctl_elem_value *ucontrol);
  300. int msm_routing_put_dolby_dap_param_visualizer_control(
  301. struct snd_kcontrol *kcontrol,
  302. struct snd_ctl_elem_value *ucontrol);
  303. int msm_routing_get_dolby_dap_endpoint_control(
  304. struct snd_kcontrol *kcontrol,
  305. struct snd_ctl_elem_value *ucontrol);
  306. int msm_routing_put_dolby_dap_endpoint_control(
  307. struct snd_kcontrol *kcontrol,
  308. struct snd_ctl_elem_value *ucontrol);
  309. void dolby_dap_deinit(int port_id);
  310. /* Dolby DOLBY end */
  311. #else
  312. int dolby_dap_init(int port_id, int channels) { return 0; }
  313. int msm_routing_get_dolby_dap_param_to_set_control(
  314. struct snd_kcontrol *kcontrol,
  315. struct snd_ctl_elem_value *ucontrol) { return 0; }
  316. int msm_routing_put_dolby_dap_param_to_set_control(
  317. struct snd_kcontrol *kcontrol,
  318. struct snd_ctl_elem_value *ucontrol) { return 0; }
  319. int msm_routing_get_dolby_dap_param_to_get_control(
  320. struct snd_kcontrol *kcontrol,
  321. struct snd_ctl_elem_value *ucontrol) { return 0; }
  322. int msm_routing_put_dolby_dap_param_to_get_control(
  323. struct snd_kcontrol *kcontrol,
  324. struct snd_ctl_elem_value *ucontrol) { return 0; }
  325. int msm_routing_get_dolby_dap_param_visualizer_control(
  326. struct snd_kcontrol *kcontrol,
  327. struct snd_ctl_elem_value *ucontrol) { return 0; }
  328. int msm_routing_put_dolby_dap_param_visualizer_control(
  329. struct snd_kcontrol *kcontrol,
  330. struct snd_ctl_elem_value *ucontrol) { return 0; }
  331. int msm_routing_get_dolby_dap_endpoint_control(
  332. struct snd_kcontrol *kcontrol,
  333. struct snd_ctl_elem_value *ucontrol) { return 0; }
  334. int msm_routing_put_dolby_dap_endpoint_control(
  335. struct snd_kcontrol *kcontrol,
  336. struct snd_ctl_elem_value *ucontrol) { return 0; }
  337. void dolby_dap_deinit(int port_id) { return; }
  338. #endif
  339. #endif