q6adm.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
  3. // Copyright (c) 2018, Linaro Limited
  4. #include <linux/slab.h>
  5. #include <linux/wait.h>
  6. #include <linux/kernel.h>
  7. #include <linux/device.h>
  8. #include <linux/module.h>
  9. #include <linux/sched.h>
  10. #include <linux/jiffies.h>
  11. #include <linux/of.h>
  12. #include <linux/of_platform.h>
  13. #include <linux/kref.h>
  14. #include <linux/wait.h>
  15. #include <linux/soc/qcom/apr.h>
  16. #include <linux/platform_device.h>
  17. #include <sound/asound.h>
  18. #include "q6adm.h"
  19. #include "q6afe.h"
  20. #include "q6core.h"
  21. #include "q6dsp-errno.h"
  22. #include "q6dsp-common.h"
  23. #define ADM_CMD_DEVICE_OPEN_V5 0x00010326
  24. #define ADM_CMDRSP_DEVICE_OPEN_V5 0x00010329
  25. #define ADM_CMD_DEVICE_CLOSE_V5 0x00010327
  26. #define ADM_CMD_MATRIX_MAP_ROUTINGS_V5 0x00010325
  27. #define TIMEOUT_MS 1000
  28. #define RESET_COPP_ID 99
  29. #define INVALID_COPP_ID 0xFF
  30. /* Definition for a legacy device session. */
  31. #define ADM_LEGACY_DEVICE_SESSION 0
  32. #define ADM_MATRIX_ID_AUDIO_RX 0
  33. #define ADM_MATRIX_ID_AUDIO_TX 1
  34. struct q6copp {
  35. int afe_port;
  36. int copp_idx;
  37. int id;
  38. int topology;
  39. int mode;
  40. int rate;
  41. int bit_width;
  42. int channels;
  43. int app_type;
  44. int acdb_id;
  45. struct aprv2_ibasic_rsp_result_t result;
  46. struct kref refcount;
  47. wait_queue_head_t wait;
  48. struct list_head node;
  49. struct q6adm *adm;
  50. };
  51. struct q6adm {
  52. struct apr_device *apr;
  53. struct device *dev;
  54. struct q6core_svc_api_info ainfo;
  55. unsigned long copp_bitmap[AFE_MAX_PORTS];
  56. struct list_head copps_list;
  57. spinlock_t copps_list_lock;
  58. struct aprv2_ibasic_rsp_result_t result;
  59. struct mutex lock;
  60. wait_queue_head_t matrix_map_wait;
  61. };
  62. struct q6adm_cmd_device_open_v5 {
  63. u16 flags;
  64. u16 mode_of_operation;
  65. u16 endpoint_id_1;
  66. u16 endpoint_id_2;
  67. u32 topology_id;
  68. u16 dev_num_channel;
  69. u16 bit_width;
  70. u32 sample_rate;
  71. u8 dev_channel_mapping[8];
  72. } __packed;
  73. struct q6adm_cmd_matrix_map_routings_v5 {
  74. u32 matrix_id;
  75. u32 num_sessions;
  76. } __packed;
  77. struct q6adm_session_map_node_v5 {
  78. u16 session_id;
  79. u16 num_copps;
  80. } __packed;
  81. static struct q6copp *q6adm_find_copp(struct q6adm *adm, int port_idx,
  82. int copp_idx)
  83. {
  84. struct q6copp *c = NULL;
  85. struct q6copp *ret = NULL;
  86. unsigned long flags;
  87. spin_lock_irqsave(&adm->copps_list_lock, flags);
  88. list_for_each_entry(c, &adm->copps_list, node) {
  89. if ((port_idx == c->afe_port) && (copp_idx == c->copp_idx)) {
  90. ret = c;
  91. kref_get(&c->refcount);
  92. break;
  93. }
  94. }
  95. spin_unlock_irqrestore(&adm->copps_list_lock, flags);
  96. return ret;
  97. }
  98. static void q6adm_free_copp(struct kref *ref)
  99. {
  100. struct q6copp *c = container_of(ref, struct q6copp, refcount);
  101. struct q6adm *adm = c->adm;
  102. unsigned long flags;
  103. spin_lock_irqsave(&adm->copps_list_lock, flags);
  104. clear_bit(c->copp_idx, &adm->copp_bitmap[c->afe_port]);
  105. list_del(&c->node);
  106. spin_unlock_irqrestore(&adm->copps_list_lock, flags);
  107. kfree(c);
  108. }
  109. static int q6adm_callback(struct apr_device *adev, struct apr_resp_pkt *data)
  110. {
  111. struct aprv2_ibasic_rsp_result_t *result = data->payload;
  112. int port_idx, copp_idx;
  113. struct apr_hdr *hdr = &data->hdr;
  114. struct q6copp *copp;
  115. struct q6adm *adm = dev_get_drvdata(&adev->dev);
  116. if (!data->payload_size)
  117. return 0;
  118. copp_idx = (hdr->token) & 0XFF;
  119. port_idx = ((hdr->token) >> 16) & 0xFF;
  120. if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) {
  121. dev_err(&adev->dev, "Invalid port idx %d token %d\n",
  122. port_idx, hdr->token);
  123. return 0;
  124. }
  125. if (copp_idx < 0 || copp_idx >= MAX_COPPS_PER_PORT) {
  126. dev_err(&adev->dev, "Invalid copp idx %d token %d\n",
  127. copp_idx, hdr->token);
  128. return 0;
  129. }
  130. switch (hdr->opcode) {
  131. case APR_BASIC_RSP_RESULT: {
  132. if (result->status != 0) {
  133. dev_err(&adev->dev, "cmd = 0x%x return error = 0x%x\n",
  134. result->opcode, result->status);
  135. }
  136. switch (result->opcode) {
  137. case ADM_CMD_DEVICE_OPEN_V5:
  138. case ADM_CMD_DEVICE_CLOSE_V5:
  139. copp = q6adm_find_copp(adm, port_idx, copp_idx);
  140. if (!copp)
  141. return 0;
  142. copp->result = *result;
  143. wake_up(&copp->wait);
  144. kref_put(&copp->refcount, q6adm_free_copp);
  145. break;
  146. case ADM_CMD_MATRIX_MAP_ROUTINGS_V5:
  147. adm->result = *result;
  148. wake_up(&adm->matrix_map_wait);
  149. break;
  150. default:
  151. dev_err(&adev->dev, "Unknown Cmd: 0x%x\n",
  152. result->opcode);
  153. break;
  154. }
  155. return 0;
  156. }
  157. case ADM_CMDRSP_DEVICE_OPEN_V5: {
  158. struct adm_cmd_rsp_device_open_v5 {
  159. u32 status;
  160. u16 copp_id;
  161. u16 reserved;
  162. } __packed * open = data->payload;
  163. copp = q6adm_find_copp(adm, port_idx, copp_idx);
  164. if (!copp)
  165. return 0;
  166. if (open->copp_id == INVALID_COPP_ID) {
  167. dev_err(&adev->dev, "Invalid coppid rxed %d\n",
  168. open->copp_id);
  169. copp->result.status = ADSP_EBADPARAM;
  170. wake_up(&copp->wait);
  171. kref_put(&copp->refcount, q6adm_free_copp);
  172. break;
  173. }
  174. copp->result.opcode = hdr->opcode;
  175. copp->id = open->copp_id;
  176. wake_up(&copp->wait);
  177. kref_put(&copp->refcount, q6adm_free_copp);
  178. }
  179. break;
  180. default:
  181. dev_err(&adev->dev, "Unknown cmd:0x%x\n",
  182. hdr->opcode);
  183. break;
  184. }
  185. return 0;
  186. }
  187. static struct q6copp *q6adm_alloc_copp(struct q6adm *adm, int port_idx)
  188. {
  189. struct q6copp *c;
  190. int idx;
  191. idx = find_first_zero_bit(&adm->copp_bitmap[port_idx],
  192. MAX_COPPS_PER_PORT);
  193. if (idx > MAX_COPPS_PER_PORT)
  194. return ERR_PTR(-EBUSY);
  195. c = kzalloc(sizeof(*c), GFP_ATOMIC);
  196. if (!c)
  197. return ERR_PTR(-ENOMEM);
  198. set_bit(idx, &adm->copp_bitmap[port_idx]);
  199. c->copp_idx = idx;
  200. c->afe_port = port_idx;
  201. c->adm = adm;
  202. init_waitqueue_head(&c->wait);
  203. return c;
  204. }
  205. static int q6adm_apr_send_copp_pkt(struct q6adm *adm, struct q6copp *copp,
  206. struct apr_pkt *pkt, uint32_t rsp_opcode)
  207. {
  208. struct device *dev = adm->dev;
  209. uint32_t opcode = pkt->hdr.opcode;
  210. int ret;
  211. mutex_lock(&adm->lock);
  212. copp->result.opcode = 0;
  213. copp->result.status = 0;
  214. ret = apr_send_pkt(adm->apr, pkt);
  215. if (ret < 0) {
  216. dev_err(dev, "Failed to send APR packet\n");
  217. ret = -EINVAL;
  218. goto err;
  219. }
  220. /* Wait for the callback with copp id */
  221. if (rsp_opcode)
  222. ret = wait_event_timeout(copp->wait,
  223. (copp->result.opcode == opcode) ||
  224. (copp->result.opcode == rsp_opcode),
  225. msecs_to_jiffies(TIMEOUT_MS));
  226. else
  227. ret = wait_event_timeout(copp->wait,
  228. (copp->result.opcode == opcode),
  229. msecs_to_jiffies(TIMEOUT_MS));
  230. if (!ret) {
  231. dev_err(dev, "ADM copp cmd timedout\n");
  232. ret = -ETIMEDOUT;
  233. } else if (copp->result.status > 0) {
  234. dev_err(dev, "DSP returned error[%d]\n",
  235. copp->result.status);
  236. ret = -EINVAL;
  237. }
  238. err:
  239. mutex_unlock(&adm->lock);
  240. return ret;
  241. }
  242. static int q6adm_device_close(struct q6adm *adm, struct q6copp *copp,
  243. int port_id, int copp_idx)
  244. {
  245. struct apr_pkt close;
  246. close.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
  247. APR_HDR_LEN(APR_HDR_SIZE),
  248. APR_PKT_VER);
  249. close.hdr.pkt_size = sizeof(close);
  250. close.hdr.src_port = port_id;
  251. close.hdr.dest_port = copp->id;
  252. close.hdr.token = port_id << 16 | copp_idx;
  253. close.hdr.opcode = ADM_CMD_DEVICE_CLOSE_V5;
  254. return q6adm_apr_send_copp_pkt(adm, copp, &close, 0);
  255. }
  256. static struct q6copp *q6adm_find_matching_copp(struct q6adm *adm,
  257. int port_id, int topology,
  258. int mode, int rate,
  259. int channel_mode, int bit_width,
  260. int app_type)
  261. {
  262. struct q6copp *c = NULL;
  263. struct q6copp *ret = NULL;
  264. unsigned long flags;
  265. spin_lock_irqsave(&adm->copps_list_lock, flags);
  266. list_for_each_entry(c, &adm->copps_list, node) {
  267. if ((port_id == c->afe_port) && (topology == c->topology) &&
  268. (mode == c->mode) && (rate == c->rate) &&
  269. (bit_width == c->bit_width) && (app_type == c->app_type)) {
  270. ret = c;
  271. kref_get(&c->refcount);
  272. }
  273. }
  274. spin_unlock_irqrestore(&adm->copps_list_lock, flags);
  275. return ret;
  276. }
  277. static int q6adm_device_open(struct q6adm *adm, struct q6copp *copp,
  278. int port_id, int path, int topology,
  279. int channel_mode, int bit_width, int rate)
  280. {
  281. struct q6adm_cmd_device_open_v5 *open;
  282. int afe_port = q6afe_get_port_id(port_id);
  283. struct apr_pkt *pkt;
  284. void *p;
  285. int ret, pkt_size;
  286. pkt_size = APR_HDR_SIZE + sizeof(*open);
  287. p = kzalloc(pkt_size, GFP_KERNEL);
  288. if (!p)
  289. return -ENOMEM;
  290. pkt = p;
  291. open = p + APR_HDR_SIZE;
  292. pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
  293. APR_HDR_LEN(APR_HDR_SIZE),
  294. APR_PKT_VER);
  295. pkt->hdr.pkt_size = pkt_size;
  296. pkt->hdr.src_port = afe_port;
  297. pkt->hdr.dest_port = afe_port;
  298. pkt->hdr.token = port_id << 16 | copp->copp_idx;
  299. pkt->hdr.opcode = ADM_CMD_DEVICE_OPEN_V5;
  300. open->flags = ADM_LEGACY_DEVICE_SESSION;
  301. open->mode_of_operation = path;
  302. open->endpoint_id_1 = afe_port;
  303. open->topology_id = topology;
  304. open->dev_num_channel = channel_mode & 0x00FF;
  305. open->bit_width = bit_width;
  306. open->sample_rate = rate;
  307. ret = q6dsp_map_channels(&open->dev_channel_mapping[0],
  308. channel_mode);
  309. if (ret)
  310. goto err;
  311. ret = q6adm_apr_send_copp_pkt(adm, copp, pkt,
  312. ADM_CMDRSP_DEVICE_OPEN_V5);
  313. err:
  314. kfree(pkt);
  315. return ret;
  316. }
  317. /**
  318. * q6adm_open() - open adm and grab a free copp
  319. *
  320. * @dev: Pointer to adm child device.
  321. * @port_id: port id
  322. * @path: playback or capture path.
  323. * @rate: rate at which copp is required.
  324. * @channel_mode: channel mode
  325. * @topology: adm topology id
  326. * @perf_mode: performace mode.
  327. * @bit_width: audio sample bit width
  328. * @app_type: Application type.
  329. * @acdb_id: ACDB id
  330. *
  331. * Return: Will be an negative on error or a valid copp pointer on success.
  332. */
  333. struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
  334. int channel_mode, int topology, int perf_mode,
  335. uint16_t bit_width, int app_type, int acdb_id)
  336. {
  337. struct q6adm *adm = dev_get_drvdata(dev->parent);
  338. struct q6copp *copp;
  339. unsigned long flags;
  340. int ret = 0;
  341. if (port_id < 0) {
  342. dev_err(dev, "Invalid port_id 0x%x\n", port_id);
  343. return ERR_PTR(-EINVAL);
  344. }
  345. copp = q6adm_find_matching_copp(adm, port_id, topology, perf_mode,
  346. rate, channel_mode, bit_width, app_type);
  347. if (copp) {
  348. dev_err(dev, "Found Matching Copp 0x%x\n", copp->copp_idx);
  349. return copp;
  350. }
  351. spin_lock_irqsave(&adm->copps_list_lock, flags);
  352. copp = q6adm_alloc_copp(adm, port_id);
  353. if (IS_ERR_OR_NULL(copp)) {
  354. spin_unlock_irqrestore(&adm->copps_list_lock, flags);
  355. return ERR_CAST(copp);
  356. }
  357. list_add_tail(&copp->node, &adm->copps_list);
  358. spin_unlock_irqrestore(&adm->copps_list_lock, flags);
  359. kref_init(&copp->refcount);
  360. copp->topology = topology;
  361. copp->mode = perf_mode;
  362. copp->rate = rate;
  363. copp->channels = channel_mode;
  364. copp->bit_width = bit_width;
  365. copp->app_type = app_type;
  366. ret = q6adm_device_open(adm, copp, port_id, path, topology,
  367. channel_mode, bit_width, rate);
  368. if (ret < 0) {
  369. kref_put(&copp->refcount, q6adm_free_copp);
  370. return ERR_PTR(ret);
  371. }
  372. return copp;
  373. }
  374. EXPORT_SYMBOL_GPL(q6adm_open);
  375. /**
  376. * q6adm_get_copp_id() - get copp index
  377. *
  378. * @copp: Pointer to valid copp
  379. *
  380. * Return: Will be an negative on error or a valid copp index on success.
  381. **/
  382. int q6adm_get_copp_id(struct q6copp *copp)
  383. {
  384. if (!copp)
  385. return -EINVAL;
  386. return copp->copp_idx;
  387. }
  388. EXPORT_SYMBOL_GPL(q6adm_get_copp_id);
  389. /**
  390. * q6adm_matrix_map() - Map asm streams and afe ports using payload
  391. *
  392. * @dev: Pointer to adm child device.
  393. * @path: playback or capture path.
  394. * @payload_map: map between session id and afe ports.
  395. * @perf_mode: Performace mode.
  396. *
  397. * Return: Will be an negative on error or a zero on success.
  398. */
  399. int q6adm_matrix_map(struct device *dev, int path,
  400. struct route_payload payload_map, int perf_mode)
  401. {
  402. struct q6adm *adm = dev_get_drvdata(dev->parent);
  403. struct q6adm_cmd_matrix_map_routings_v5 *route;
  404. struct q6adm_session_map_node_v5 *node;
  405. struct apr_pkt *pkt;
  406. uint16_t *copps_list;
  407. int pkt_size, ret, i, copp_idx;
  408. void *matrix_map = NULL;
  409. struct q6copp *copp;
  410. /* Assumes port_ids have already been validated during adm_open */
  411. pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) +
  412. (sizeof(uint32_t) * payload_map.num_copps));
  413. matrix_map = kzalloc(pkt_size, GFP_KERNEL);
  414. if (!matrix_map)
  415. return -ENOMEM;
  416. pkt = matrix_map;
  417. route = matrix_map + APR_HDR_SIZE;
  418. node = matrix_map + APR_HDR_SIZE + sizeof(*route);
  419. copps_list = matrix_map + APR_HDR_SIZE + sizeof(*route) + sizeof(*node);
  420. pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
  421. APR_HDR_LEN(APR_HDR_SIZE),
  422. APR_PKT_VER);
  423. pkt->hdr.pkt_size = pkt_size;
  424. pkt->hdr.token = 0;
  425. pkt->hdr.opcode = ADM_CMD_MATRIX_MAP_ROUTINGS_V5;
  426. route->num_sessions = 1;
  427. switch (path) {
  428. case ADM_PATH_PLAYBACK:
  429. route->matrix_id = ADM_MATRIX_ID_AUDIO_RX;
  430. break;
  431. case ADM_PATH_LIVE_REC:
  432. route->matrix_id = ADM_MATRIX_ID_AUDIO_TX;
  433. break;
  434. default:
  435. dev_err(dev, "Wrong path set[%d]\n", path);
  436. break;
  437. }
  438. node->session_id = payload_map.session_id;
  439. node->num_copps = payload_map.num_copps;
  440. for (i = 0; i < payload_map.num_copps; i++) {
  441. int port_idx = payload_map.port_id[i];
  442. if (port_idx < 0) {
  443. dev_err(dev, "Invalid port_id 0x%x\n",
  444. payload_map.port_id[i]);
  445. kfree(pkt);
  446. return -EINVAL;
  447. }
  448. copp_idx = payload_map.copp_idx[i];
  449. copp = q6adm_find_copp(adm, port_idx, copp_idx);
  450. if (!copp) {
  451. kfree(pkt);
  452. return -EINVAL;
  453. }
  454. copps_list[i] = copp->id;
  455. kref_put(&copp->refcount, q6adm_free_copp);
  456. }
  457. mutex_lock(&adm->lock);
  458. adm->result.status = 0;
  459. adm->result.opcode = 0;
  460. ret = apr_send_pkt(adm->apr, pkt);
  461. if (ret < 0) {
  462. dev_err(dev, "routing for stream %d failed ret %d\n",
  463. payload_map.session_id, ret);
  464. goto fail_cmd;
  465. }
  466. ret = wait_event_timeout(adm->matrix_map_wait,
  467. adm->result.opcode == pkt->hdr.opcode,
  468. msecs_to_jiffies(TIMEOUT_MS));
  469. if (!ret) {
  470. dev_err(dev, "routing for stream %d failed\n",
  471. payload_map.session_id);
  472. ret = -ETIMEDOUT;
  473. goto fail_cmd;
  474. } else if (adm->result.status > 0) {
  475. dev_err(dev, "DSP returned error[%d]\n",
  476. adm->result.status);
  477. ret = -EINVAL;
  478. goto fail_cmd;
  479. }
  480. fail_cmd:
  481. mutex_unlock(&adm->lock);
  482. kfree(pkt);
  483. return ret;
  484. }
  485. EXPORT_SYMBOL_GPL(q6adm_matrix_map);
  486. /**
  487. * q6adm_close() - Close adm copp
  488. *
  489. * @dev: Pointer to adm child device.
  490. * @copp: pointer to previously opened copp
  491. *
  492. * Return: Will be an negative on error or a zero on success.
  493. */
  494. int q6adm_close(struct device *dev, struct q6copp *copp)
  495. {
  496. struct q6adm *adm = dev_get_drvdata(dev->parent);
  497. int ret = 0;
  498. ret = q6adm_device_close(adm, copp, copp->afe_port, copp->copp_idx);
  499. if (ret < 0) {
  500. dev_err(adm->dev, "Failed to close copp %d\n", ret);
  501. return ret;
  502. }
  503. kref_put(&copp->refcount, q6adm_free_copp);
  504. return 0;
  505. }
  506. EXPORT_SYMBOL_GPL(q6adm_close);
  507. static int q6adm_probe(struct apr_device *adev)
  508. {
  509. struct device *dev = &adev->dev;
  510. struct q6adm *adm;
  511. adm = devm_kzalloc(&adev->dev, sizeof(*adm), GFP_KERNEL);
  512. if (!adm)
  513. return -ENOMEM;
  514. adm->apr = adev;
  515. dev_set_drvdata(&adev->dev, adm);
  516. adm->dev = dev;
  517. q6core_get_svc_api_info(adev->svc_id, &adm->ainfo);
  518. mutex_init(&adm->lock);
  519. init_waitqueue_head(&adm->matrix_map_wait);
  520. INIT_LIST_HEAD(&adm->copps_list);
  521. spin_lock_init(&adm->copps_list_lock);
  522. return of_platform_populate(dev->of_node, NULL, NULL, dev);
  523. }
  524. static int q6adm_remove(struct apr_device *adev)
  525. {
  526. of_platform_depopulate(&adev->dev);
  527. return 0;
  528. }
  529. static const struct of_device_id q6adm_device_id[] = {
  530. { .compatible = "qcom,q6adm" },
  531. {},
  532. };
  533. MODULE_DEVICE_TABLE(of, q6adm_device_id);
  534. static struct apr_driver qcom_q6adm_driver = {
  535. .probe = q6adm_probe,
  536. .remove = q6adm_remove,
  537. .callback = q6adm_callback,
  538. .driver = {
  539. .name = "qcom-q6adm",
  540. .of_match_table = of_match_ptr(q6adm_device_id),
  541. },
  542. };
  543. module_apr_driver(qcom_q6adm_driver);
  544. MODULE_DESCRIPTION("Q6 Audio Device Manager");
  545. MODULE_LICENSE("GPL v2");