revo.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. /*
  2. * ALSA driver for ICEnsemble ICE1712 (Envy24)
  3. *
  4. * Lowlevel functions for M-Audio Revolution 7.1
  5. *
  6. * Copyright (c) 2003 Takashi Iwai <tiwai@suse.de>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #include <sound/driver.h>
  24. #include <asm/io.h>
  25. #include <linux/delay.h>
  26. #include <linux/interrupt.h>
  27. #include <linux/init.h>
  28. #include <linux/slab.h>
  29. #include <sound/core.h>
  30. #include "ice1712.h"
  31. #include "envy24ht.h"
  32. #include "revo.h"
  33. static void revo_i2s_mclk_changed(struct snd_ice1712 *ice)
  34. {
  35. /* assert PRST# to converters; MT05 bit 7 */
  36. outb(inb(ICEMT1724(ice, AC97_CMD)) | 0x80, ICEMT1724(ice, AC97_CMD));
  37. mdelay(5);
  38. /* deassert PRST# */
  39. outb(inb(ICEMT1724(ice, AC97_CMD)) & ~0x80, ICEMT1724(ice, AC97_CMD));
  40. }
  41. /*
  42. * change the rate of envy24HT, AK4355 and AK4381
  43. */
  44. static void revo_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
  45. {
  46. unsigned char old, tmp, dfs;
  47. int reg, shift;
  48. if (rate == 0) /* no hint - S/PDIF input is master, simply return */
  49. return;
  50. /* adjust DFS on codecs */
  51. if (rate > 96000)
  52. dfs = 2;
  53. else if (rate > 48000)
  54. dfs = 1;
  55. else
  56. dfs = 0;
  57. if (ak->type == SND_AK4355 || ak->type == SND_AK4358) {
  58. reg = 2;
  59. shift = 4;
  60. } else {
  61. reg = 1;
  62. shift = 3;
  63. }
  64. tmp = snd_akm4xxx_get(ak, 0, reg);
  65. old = (tmp >> shift) & 0x03;
  66. if (old == dfs)
  67. return;
  68. /* reset DFS */
  69. snd_akm4xxx_reset(ak, 1);
  70. tmp = snd_akm4xxx_get(ak, 0, reg);
  71. tmp &= ~(0x03 << shift);
  72. tmp |= dfs << shift;
  73. // snd_akm4xxx_write(ak, 0, reg, tmp);
  74. snd_akm4xxx_set(ak, 0, reg, tmp); /* the value is written in reset(0) */
  75. snd_akm4xxx_reset(ak, 0);
  76. }
  77. /*
  78. * I2C access to the PT2258 volume controller on GPIO 6/7 (Revolution 5.1)
  79. */
  80. static void revo_i2c_start(struct snd_i2c_bus *bus)
  81. {
  82. struct snd_ice1712 *ice = bus->private_data;
  83. snd_ice1712_save_gpio_status(ice);
  84. }
  85. static void revo_i2c_stop(struct snd_i2c_bus *bus)
  86. {
  87. struct snd_ice1712 *ice = bus->private_data;
  88. snd_ice1712_restore_gpio_status(ice);
  89. }
  90. static void revo_i2c_direction(struct snd_i2c_bus *bus, int clock, int data)
  91. {
  92. struct snd_ice1712 *ice = bus->private_data;
  93. unsigned int mask, val;
  94. val = 0;
  95. if (clock)
  96. val |= VT1724_REVO_I2C_CLOCK; /* write SCL */
  97. if (data)
  98. val |= VT1724_REVO_I2C_DATA; /* write SDA */
  99. mask = VT1724_REVO_I2C_CLOCK | VT1724_REVO_I2C_DATA;
  100. ice->gpio.direction &= ~mask;
  101. ice->gpio.direction |= val;
  102. snd_ice1712_gpio_set_dir(ice, ice->gpio.direction);
  103. snd_ice1712_gpio_set_mask(ice, ~mask);
  104. }
  105. static void revo_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data)
  106. {
  107. struct snd_ice1712 *ice = bus->private_data;
  108. unsigned int val = 0;
  109. if (clk)
  110. val |= VT1724_REVO_I2C_CLOCK;
  111. if (data)
  112. val |= VT1724_REVO_I2C_DATA;
  113. snd_ice1712_gpio_write_bits(ice,
  114. VT1724_REVO_I2C_DATA |
  115. VT1724_REVO_I2C_CLOCK, val);
  116. udelay(5);
  117. }
  118. static int revo_i2c_getdata(struct snd_i2c_bus *bus, int ack)
  119. {
  120. struct snd_ice1712 *ice = bus->private_data;
  121. int bit;
  122. if (ack)
  123. udelay(5);
  124. bit = snd_ice1712_gpio_read_bits(ice, VT1724_REVO_I2C_DATA) ? 1 : 0;
  125. return bit;
  126. }
  127. static struct snd_i2c_bit_ops revo51_bit_ops = {
  128. .start = revo_i2c_start,
  129. .stop = revo_i2c_stop,
  130. .direction = revo_i2c_direction,
  131. .setlines = revo_i2c_setlines,
  132. .getdata = revo_i2c_getdata,
  133. };
  134. static int revo51_i2c_init(struct snd_ice1712 *ice,
  135. struct snd_pt2258 *pt)
  136. {
  137. int err;
  138. /* create the I2C bus */
  139. err = snd_i2c_bus_create(ice->card, "ICE1724 GPIO6", NULL, &ice->i2c);
  140. if (err < 0)
  141. return err;
  142. ice->i2c->private_data = ice;
  143. ice->i2c->hw_ops.bit = &revo51_bit_ops;
  144. /* create the I2C device */
  145. err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40,
  146. &ice->spec.revo51.dev);
  147. if (err < 0)
  148. return err;
  149. pt->card = ice->card;
  150. pt->i2c_bus = ice->i2c;
  151. pt->i2c_dev = ice->spec.revo51.dev;
  152. ice->spec.revo51.pt2258 = pt;
  153. snd_pt2258_reset(pt);
  154. return 0;
  155. }
  156. /*
  157. * initialize the chips on M-Audio Revolution cards
  158. */
  159. #define AK_DAC(xname,xch) { .name = xname, .num_channels = xch }
  160. static const struct snd_akm4xxx_dac_channel revo71_front[] = {
  161. AK_DAC("PCM Playback Volume", 2)
  162. };
  163. static const struct snd_akm4xxx_dac_channel revo71_surround[] = {
  164. AK_DAC("PCM Center Playback Volume", 1),
  165. AK_DAC("PCM LFE Playback Volume", 1),
  166. AK_DAC("PCM Side Playback Volume", 2),
  167. AK_DAC("PCM Rear Playback Volume", 2),
  168. };
  169. static const struct snd_akm4xxx_dac_channel revo51_dac[] = {
  170. AK_DAC("PCM Playback Volume", 2),
  171. AK_DAC("PCM Center Playback Volume", 1),
  172. AK_DAC("PCM LFE Playback Volume", 1),
  173. AK_DAC("PCM Rear Playback Volume", 2),
  174. };
  175. static const char *revo51_adc_input_names[] = {
  176. "Mic",
  177. "Line",
  178. "CD",
  179. NULL
  180. };
  181. static const struct snd_akm4xxx_adc_channel revo51_adc[] = {
  182. {
  183. .name = "PCM Capture Volume",
  184. .switch_name = "PCM Capture Switch",
  185. .num_channels = 2,
  186. .input_names = revo51_adc_input_names
  187. },
  188. };
  189. static const struct snd_akm4xxx akm_revo_front __devinitdata = {
  190. .type = SND_AK4381,
  191. .num_dacs = 2,
  192. .ops = {
  193. .set_rate_val = revo_set_rate_val
  194. },
  195. .dac_info = revo71_front,
  196. };
  197. static const struct snd_ak4xxx_private akm_revo_front_priv __devinitdata = {
  198. .caddr = 1,
  199. .cif = 0,
  200. .data_mask = VT1724_REVO_CDOUT,
  201. .clk_mask = VT1724_REVO_CCLK,
  202. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  203. .cs_addr = VT1724_REVO_CS0 | VT1724_REVO_CS2,
  204. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  205. .add_flags = VT1724_REVO_CCLK, /* high at init */
  206. .mask_flags = 0,
  207. };
  208. static const struct snd_akm4xxx akm_revo_surround __devinitdata = {
  209. .type = SND_AK4355,
  210. .idx_offset = 1,
  211. .num_dacs = 6,
  212. .ops = {
  213. .set_rate_val = revo_set_rate_val
  214. },
  215. .dac_info = revo71_surround,
  216. };
  217. static const struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = {
  218. .caddr = 3,
  219. .cif = 0,
  220. .data_mask = VT1724_REVO_CDOUT,
  221. .clk_mask = VT1724_REVO_CCLK,
  222. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  223. .cs_addr = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  224. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  225. .add_flags = VT1724_REVO_CCLK, /* high at init */
  226. .mask_flags = 0,
  227. };
  228. static const struct snd_akm4xxx akm_revo51 __devinitdata = {
  229. .type = SND_AK4358,
  230. .num_dacs = 6,
  231. .ops = {
  232. .set_rate_val = revo_set_rate_val
  233. },
  234. .dac_info = revo51_dac,
  235. };
  236. static const struct snd_ak4xxx_private akm_revo51_priv __devinitdata = {
  237. .caddr = 2,
  238. .cif = 0,
  239. .data_mask = VT1724_REVO_CDOUT,
  240. .clk_mask = VT1724_REVO_CCLK,
  241. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  242. .cs_addr = VT1724_REVO_CS1,
  243. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  244. .add_flags = VT1724_REVO_CCLK, /* high at init */
  245. .mask_flags = 0,
  246. };
  247. static const struct snd_akm4xxx akm_revo51_adc __devinitdata = {
  248. .type = SND_AK5365,
  249. .num_adcs = 2,
  250. .adc_info = revo51_adc,
  251. };
  252. static const struct snd_ak4xxx_private akm_revo51_adc_priv __devinitdata = {
  253. .caddr = 2,
  254. .cif = 0,
  255. .data_mask = VT1724_REVO_CDOUT,
  256. .clk_mask = VT1724_REVO_CCLK,
  257. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  258. .cs_addr = VT1724_REVO_CS0,
  259. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  260. .add_flags = VT1724_REVO_CCLK, /* high at init */
  261. .mask_flags = 0,
  262. };
  263. static struct snd_pt2258 ptc_revo51_volume;
  264. /* AK4358 for AP192 DAC, AK5385A for ADC */
  265. static void ap192_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
  266. {
  267. struct snd_ice1712 *ice = ak->private_data[0];
  268. revo_set_rate_val(ak, rate);
  269. #if 1 /* FIXME: do we need this procedure? */
  270. /* reset DFS pin of AK5385A for ADC, too */
  271. /* DFS0 (pin 18) -- GPIO10 pin 77 */
  272. snd_ice1712_save_gpio_status(ice);
  273. snd_ice1712_gpio_write_bits(ice, 1 << 10,
  274. rate > 48000 ? (1 << 10) : 0);
  275. snd_ice1712_restore_gpio_status(ice);
  276. #endif
  277. }
  278. static const struct snd_akm4xxx_dac_channel ap192_dac[] = {
  279. AK_DAC("PCM Playback Volume", 2)
  280. };
  281. static const struct snd_akm4xxx akm_ap192 __devinitdata = {
  282. .type = SND_AK4358,
  283. .num_dacs = 2,
  284. .ops = {
  285. .set_rate_val = ap192_set_rate_val
  286. },
  287. .dac_info = ap192_dac,
  288. };
  289. static const struct snd_ak4xxx_private akm_ap192_priv __devinitdata = {
  290. .caddr = 2,
  291. .cif = 0,
  292. .data_mask = VT1724_REVO_CDOUT,
  293. .clk_mask = VT1724_REVO_CCLK,
  294. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS3,
  295. .cs_addr = VT1724_REVO_CS3,
  296. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS3,
  297. .add_flags = VT1724_REVO_CCLK, /* high at init */
  298. .mask_flags = 0,
  299. };
  300. #if 0
  301. /* FIXME: ak4114 makes the sound much lower due to some confliction,
  302. * so let's disable it right now...
  303. */
  304. #define BUILD_AK4114_AP192
  305. #endif
  306. #ifdef BUILD_AK4114_AP192
  307. /* AK4114 support on Audiophile 192 */
  308. /* CDTO (pin 32) -- GPIO2 pin 52
  309. * CDTI (pin 33) -- GPIO3 pin 53 (shared with AK4358)
  310. * CCLK (pin 34) -- GPIO1 pin 51 (shared with AK4358)
  311. * CSN (pin 35) -- GPIO7 pin 59
  312. */
  313. #define AK4114_ADDR 0x00
  314. static void write_data(struct snd_ice1712 *ice, unsigned int gpio,
  315. unsigned int data, int idx)
  316. {
  317. for (; idx >= 0; idx--) {
  318. /* drop clock */
  319. gpio &= ~VT1724_REVO_CCLK;
  320. snd_ice1712_gpio_write(ice, gpio);
  321. udelay(1);
  322. /* set data */
  323. if (data & (1 << idx))
  324. gpio |= VT1724_REVO_CDOUT;
  325. else
  326. gpio &= ~VT1724_REVO_CDOUT;
  327. snd_ice1712_gpio_write(ice, gpio);
  328. udelay(1);
  329. /* raise clock */
  330. gpio |= VT1724_REVO_CCLK;
  331. snd_ice1712_gpio_write(ice, gpio);
  332. udelay(1);
  333. }
  334. }
  335. static unsigned char read_data(struct snd_ice1712 *ice, unsigned int gpio,
  336. int idx)
  337. {
  338. unsigned char data = 0;
  339. for (; idx >= 0; idx--) {
  340. /* drop clock */
  341. gpio &= ~VT1724_REVO_CCLK;
  342. snd_ice1712_gpio_write(ice, gpio);
  343. udelay(1);
  344. /* read data */
  345. if (snd_ice1712_gpio_read(ice) & VT1724_REVO_CDIN)
  346. data |= (1 << idx);
  347. udelay(1);
  348. /* raise clock */
  349. gpio |= VT1724_REVO_CCLK;
  350. snd_ice1712_gpio_write(ice, gpio);
  351. udelay(1);
  352. }
  353. return data;
  354. }
  355. static unsigned char ap192_4wire_start(struct snd_ice1712 *ice)
  356. {
  357. unsigned int tmp;
  358. snd_ice1712_save_gpio_status(ice);
  359. tmp = snd_ice1712_gpio_read(ice);
  360. tmp |= VT1724_REVO_CCLK; /* high at init */
  361. tmp |= VT1724_REVO_CS0;
  362. tmp &= ~VT1724_REVO_CS3;
  363. snd_ice1712_gpio_write(ice, tmp);
  364. udelay(1);
  365. return tmp;
  366. }
  367. static void ap192_4wire_finish(struct snd_ice1712 *ice, unsigned int tmp)
  368. {
  369. tmp |= VT1724_REVO_CS3;
  370. tmp |= VT1724_REVO_CS0;
  371. snd_ice1712_gpio_write(ice, tmp);
  372. udelay(1);
  373. snd_ice1712_restore_gpio_status(ice);
  374. }
  375. static void ap192_ak4114_write(void *private_data, unsigned char addr,
  376. unsigned char data)
  377. {
  378. struct snd_ice1712 *ice = private_data;
  379. unsigned int tmp, addrdata;
  380. tmp = ap192_4wire_start(ice);
  381. addrdata = (AK4114_ADDR << 6) | 0x20 | (addr & 0x1f);
  382. addrdata = (addrdata << 8) | data;
  383. write_data(ice, tmp, addrdata, 15);
  384. ap192_4wire_finish(ice, tmp);
  385. }
  386. static unsigned char ap192_ak4114_read(void *private_data, unsigned char addr)
  387. {
  388. struct snd_ice1712 *ice = private_data;
  389. unsigned int tmp;
  390. unsigned char data;
  391. tmp = ap192_4wire_start(ice);
  392. write_data(ice, tmp, (AK4114_ADDR << 6) | (addr & 0x1f), 7);
  393. data = read_data(ice, tmp, 7);
  394. ap192_4wire_finish(ice, tmp);
  395. return data;
  396. }
  397. static int ap192_ak4114_init(struct snd_ice1712 *ice)
  398. {
  399. static const unsigned char ak4114_init_vals[] = {
  400. AK4114_RST | AK4114_PWN | AK4114_OCKS0 | AK4114_OCKS1,
  401. AK4114_DIF_I24I2S,
  402. AK4114_TX1E,
  403. AK4114_EFH_1024 | AK4114_DIT | AK4114_IPS(1),
  404. 0,
  405. 0
  406. };
  407. static const unsigned char ak4114_init_txcsb[] = {
  408. 0x41, 0x02, 0x2c, 0x00, 0x00
  409. };
  410. struct ak4114 *ak;
  411. int err;
  412. return snd_ak4114_create(ice->card,
  413. ap192_ak4114_read,
  414. ap192_ak4114_write,
  415. ak4114_init_vals, ak4114_init_txcsb,
  416. ice, &ak);
  417. }
  418. #endif /* BUILD_AK4114_AP192 */
  419. static int __devinit revo_init(struct snd_ice1712 *ice)
  420. {
  421. struct snd_akm4xxx *ak;
  422. int err;
  423. /* determine I2C, DACs and ADCs */
  424. switch (ice->eeprom.subvendor) {
  425. case VT1724_SUBDEVICE_REVOLUTION71:
  426. ice->num_total_dacs = 8;
  427. ice->num_total_adcs = 2;
  428. ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
  429. break;
  430. case VT1724_SUBDEVICE_REVOLUTION51:
  431. ice->num_total_dacs = 6;
  432. ice->num_total_adcs = 2;
  433. break;
  434. case VT1724_SUBDEVICE_AUDIOPHILE192:
  435. ice->num_total_dacs = 2;
  436. ice->num_total_adcs = 2;
  437. break;
  438. default:
  439. snd_BUG();
  440. return -EINVAL;
  441. }
  442. /* second stage of initialization, analog parts and others */
  443. ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL);
  444. if (! ak)
  445. return -ENOMEM;
  446. ice->akm_codecs = 2;
  447. switch (ice->eeprom.subvendor) {
  448. case VT1724_SUBDEVICE_REVOLUTION71:
  449. ice->akm_codecs = 2;
  450. if ((err = snd_ice1712_akm4xxx_init(ak, &akm_revo_front, &akm_revo_front_priv, ice)) < 0)
  451. return err;
  452. if ((err = snd_ice1712_akm4xxx_init(ak + 1, &akm_revo_surround, &akm_revo_surround_priv, ice)) < 0)
  453. return err;
  454. /* unmute all codecs */
  455. snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE, VT1724_REVO_MUTE);
  456. break;
  457. case VT1724_SUBDEVICE_REVOLUTION51:
  458. ice->akm_codecs = 2;
  459. err = snd_ice1712_akm4xxx_init(ak, &akm_revo51,
  460. &akm_revo51_priv, ice);
  461. if (err < 0)
  462. return err;
  463. err = snd_ice1712_akm4xxx_init(ak+1, &akm_revo51_adc,
  464. &akm_revo51_adc_priv, ice);
  465. if (err < 0)
  466. return err;
  467. err = revo51_i2c_init(ice, &ptc_revo51_volume);
  468. if (err < 0)
  469. return err;
  470. /* unmute all codecs */
  471. snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE,
  472. VT1724_REVO_MUTE);
  473. break;
  474. case VT1724_SUBDEVICE_AUDIOPHILE192:
  475. ice->akm_codecs = 1;
  476. err = snd_ice1712_akm4xxx_init(ak, &akm_ap192, &akm_ap192_priv,
  477. ice);
  478. if (err < 0)
  479. return err;
  480. break;
  481. }
  482. return 0;
  483. }
  484. static int __devinit revo_add_controls(struct snd_ice1712 *ice)
  485. {
  486. int err;
  487. switch (ice->eeprom.subvendor) {
  488. case VT1724_SUBDEVICE_REVOLUTION71:
  489. err = snd_ice1712_akm4xxx_build_controls(ice);
  490. if (err < 0)
  491. return err;
  492. break;
  493. case VT1724_SUBDEVICE_REVOLUTION51:
  494. err = snd_ice1712_akm4xxx_build_controls(ice);
  495. if (err < 0)
  496. return err;
  497. err = snd_pt2258_build_controls(ice->spec.revo51.pt2258);
  498. if (err < 0)
  499. return err;
  500. break;
  501. case VT1724_SUBDEVICE_AUDIOPHILE192:
  502. err = snd_ice1712_akm4xxx_build_controls(ice);
  503. if (err < 0)
  504. return err;
  505. #ifdef BUILD_AK4114_AP192
  506. err = ap192_ak4114_init(ice);
  507. if (err < 0)
  508. return err;
  509. #endif
  510. break;
  511. }
  512. return 0;
  513. }
  514. /* entry point */
  515. const struct snd_ice1712_card_info snd_vt1724_revo_cards[] __devinitdata = {
  516. {
  517. .subvendor = VT1724_SUBDEVICE_REVOLUTION71,
  518. .name = "M Audio Revolution-7.1",
  519. .model = "revo71",
  520. .chip_init = revo_init,
  521. .build_controls = revo_add_controls,
  522. },
  523. {
  524. .subvendor = VT1724_SUBDEVICE_REVOLUTION51,
  525. .name = "M Audio Revolution-5.1",
  526. .model = "revo51",
  527. .chip_init = revo_init,
  528. .build_controls = revo_add_controls,
  529. },
  530. {
  531. .subvendor = VT1724_SUBDEVICE_AUDIOPHILE192,
  532. .name = "M Audio Audiophile192",
  533. .model = "ap192",
  534. .chip_init = revo_init,
  535. .build_controls = revo_add_controls,
  536. },
  537. { } /* terminator */
  538. };