revo.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  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. {
  162. .name = "PCM Playback Volume",
  163. .num_channels = 2,
  164. /* front channels DAC supports muting */
  165. .switch_name = "PCM Playback Switch",
  166. },
  167. };
  168. static const struct snd_akm4xxx_dac_channel revo71_surround[] = {
  169. AK_DAC("PCM Center Playback Volume", 1),
  170. AK_DAC("PCM LFE Playback Volume", 1),
  171. AK_DAC("PCM Side Playback Volume", 2),
  172. AK_DAC("PCM Rear Playback Volume", 2),
  173. };
  174. static const struct snd_akm4xxx_dac_channel revo51_dac[] = {
  175. AK_DAC("PCM Playback Volume", 2),
  176. AK_DAC("PCM Center Playback Volume", 1),
  177. AK_DAC("PCM LFE Playback Volume", 1),
  178. AK_DAC("PCM Rear Playback Volume", 2),
  179. };
  180. static const char *revo51_adc_input_names[] = {
  181. "Mic",
  182. "Line",
  183. "CD",
  184. NULL
  185. };
  186. static const struct snd_akm4xxx_adc_channel revo51_adc[] = {
  187. {
  188. .name = "PCM Capture Volume",
  189. .switch_name = "PCM Capture Switch",
  190. .num_channels = 2,
  191. .input_names = revo51_adc_input_names
  192. },
  193. };
  194. static struct snd_akm4xxx akm_revo_front __devinitdata = {
  195. .type = SND_AK4381,
  196. .num_dacs = 2,
  197. .ops = {
  198. .set_rate_val = revo_set_rate_val
  199. },
  200. .dac_info = revo71_front,
  201. };
  202. static struct snd_ak4xxx_private akm_revo_front_priv __devinitdata = {
  203. .caddr = 1,
  204. .cif = 0,
  205. .data_mask = VT1724_REVO_CDOUT,
  206. .clk_mask = VT1724_REVO_CCLK,
  207. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  208. .cs_addr = VT1724_REVO_CS0 | VT1724_REVO_CS2,
  209. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  210. .add_flags = VT1724_REVO_CCLK, /* high at init */
  211. .mask_flags = 0,
  212. };
  213. static struct snd_akm4xxx akm_revo_surround __devinitdata = {
  214. .type = SND_AK4355,
  215. .idx_offset = 1,
  216. .num_dacs = 6,
  217. .ops = {
  218. .set_rate_val = revo_set_rate_val
  219. },
  220. .dac_info = revo71_surround,
  221. };
  222. static struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = {
  223. .caddr = 3,
  224. .cif = 0,
  225. .data_mask = VT1724_REVO_CDOUT,
  226. .clk_mask = VT1724_REVO_CCLK,
  227. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  228. .cs_addr = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  229. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1 | VT1724_REVO_CS2,
  230. .add_flags = VT1724_REVO_CCLK, /* high at init */
  231. .mask_flags = 0,
  232. };
  233. static struct snd_akm4xxx akm_revo51 __devinitdata = {
  234. .type = SND_AK4358,
  235. .num_dacs = 6,
  236. .ops = {
  237. .set_rate_val = revo_set_rate_val
  238. },
  239. .dac_info = revo51_dac,
  240. };
  241. static struct snd_ak4xxx_private akm_revo51_priv __devinitdata = {
  242. .caddr = 2,
  243. .cif = 0,
  244. .data_mask = VT1724_REVO_CDOUT,
  245. .clk_mask = VT1724_REVO_CCLK,
  246. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  247. .cs_addr = VT1724_REVO_CS1,
  248. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  249. .add_flags = VT1724_REVO_CCLK, /* high at init */
  250. .mask_flags = 0,
  251. };
  252. static struct snd_akm4xxx akm_revo51_adc __devinitdata = {
  253. .type = SND_AK5365,
  254. .num_adcs = 2,
  255. .adc_info = revo51_adc,
  256. };
  257. static struct snd_ak4xxx_private akm_revo51_adc_priv __devinitdata = {
  258. .caddr = 2,
  259. .cif = 0,
  260. .data_mask = VT1724_REVO_CDOUT,
  261. .clk_mask = VT1724_REVO_CCLK,
  262. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  263. .cs_addr = VT1724_REVO_CS0,
  264. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS1,
  265. .add_flags = VT1724_REVO_CCLK, /* high at init */
  266. .mask_flags = 0,
  267. };
  268. static struct snd_pt2258 ptc_revo51_volume;
  269. /* AK4358 for AP192 DAC, AK5385A for ADC */
  270. static void ap192_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
  271. {
  272. struct snd_ice1712 *ice = ak->private_data[0];
  273. revo_set_rate_val(ak, rate);
  274. #if 1 /* FIXME: do we need this procedure? */
  275. /* reset DFS pin of AK5385A for ADC, too */
  276. /* DFS0 (pin 18) -- GPIO10 pin 77 */
  277. snd_ice1712_save_gpio_status(ice);
  278. snd_ice1712_gpio_write_bits(ice, 1 << 10,
  279. rate > 48000 ? (1 << 10) : 0);
  280. snd_ice1712_restore_gpio_status(ice);
  281. #endif
  282. }
  283. static const struct snd_akm4xxx_dac_channel ap192_dac[] = {
  284. AK_DAC("PCM Playback Volume", 2)
  285. };
  286. static struct snd_akm4xxx akm_ap192 __devinitdata = {
  287. .type = SND_AK4358,
  288. .num_dacs = 2,
  289. .ops = {
  290. .set_rate_val = ap192_set_rate_val
  291. },
  292. .dac_info = ap192_dac,
  293. };
  294. static struct snd_ak4xxx_private akm_ap192_priv __devinitdata = {
  295. .caddr = 2,
  296. .cif = 0,
  297. .data_mask = VT1724_REVO_CDOUT,
  298. .clk_mask = VT1724_REVO_CCLK,
  299. .cs_mask = VT1724_REVO_CS0 | VT1724_REVO_CS3,
  300. .cs_addr = VT1724_REVO_CS3,
  301. .cs_none = VT1724_REVO_CS0 | VT1724_REVO_CS3,
  302. .add_flags = VT1724_REVO_CCLK, /* high at init */
  303. .mask_flags = 0,
  304. };
  305. #if 0
  306. /* FIXME: ak4114 makes the sound much lower due to some confliction,
  307. * so let's disable it right now...
  308. */
  309. #define BUILD_AK4114_AP192
  310. #endif
  311. #ifdef BUILD_AK4114_AP192
  312. /* AK4114 support on Audiophile 192 */
  313. /* CDTO (pin 32) -- GPIO2 pin 52
  314. * CDTI (pin 33) -- GPIO3 pin 53 (shared with AK4358)
  315. * CCLK (pin 34) -- GPIO1 pin 51 (shared with AK4358)
  316. * CSN (pin 35) -- GPIO7 pin 59
  317. */
  318. #define AK4114_ADDR 0x00
  319. static void write_data(struct snd_ice1712 *ice, unsigned int gpio,
  320. unsigned int data, int idx)
  321. {
  322. for (; idx >= 0; idx--) {
  323. /* drop clock */
  324. gpio &= ~VT1724_REVO_CCLK;
  325. snd_ice1712_gpio_write(ice, gpio);
  326. udelay(1);
  327. /* set data */
  328. if (data & (1 << idx))
  329. gpio |= VT1724_REVO_CDOUT;
  330. else
  331. gpio &= ~VT1724_REVO_CDOUT;
  332. snd_ice1712_gpio_write(ice, gpio);
  333. udelay(1);
  334. /* raise clock */
  335. gpio |= VT1724_REVO_CCLK;
  336. snd_ice1712_gpio_write(ice, gpio);
  337. udelay(1);
  338. }
  339. }
  340. static unsigned char read_data(struct snd_ice1712 *ice, unsigned int gpio,
  341. int idx)
  342. {
  343. unsigned char data = 0;
  344. for (; idx >= 0; idx--) {
  345. /* drop clock */
  346. gpio &= ~VT1724_REVO_CCLK;
  347. snd_ice1712_gpio_write(ice, gpio);
  348. udelay(1);
  349. /* read data */
  350. if (snd_ice1712_gpio_read(ice) & VT1724_REVO_CDIN)
  351. data |= (1 << idx);
  352. udelay(1);
  353. /* raise clock */
  354. gpio |= VT1724_REVO_CCLK;
  355. snd_ice1712_gpio_write(ice, gpio);
  356. udelay(1);
  357. }
  358. return data;
  359. }
  360. static unsigned int ap192_4wire_start(struct snd_ice1712 *ice)
  361. {
  362. unsigned int tmp;
  363. snd_ice1712_save_gpio_status(ice);
  364. tmp = snd_ice1712_gpio_read(ice);
  365. tmp |= VT1724_REVO_CCLK; /* high at init */
  366. tmp |= VT1724_REVO_CS0;
  367. tmp &= ~VT1724_REVO_CS3;
  368. snd_ice1712_gpio_write(ice, tmp);
  369. udelay(1);
  370. return tmp;
  371. }
  372. static void ap192_4wire_finish(struct snd_ice1712 *ice, unsigned int tmp)
  373. {
  374. tmp |= VT1724_REVO_CS3;
  375. tmp |= VT1724_REVO_CS0;
  376. snd_ice1712_gpio_write(ice, tmp);
  377. udelay(1);
  378. snd_ice1712_restore_gpio_status(ice);
  379. }
  380. static void ap192_ak4114_write(void *private_data, unsigned char addr,
  381. unsigned char data)
  382. {
  383. struct snd_ice1712 *ice = private_data;
  384. unsigned int tmp, addrdata;
  385. tmp = ap192_4wire_start(ice);
  386. addrdata = (AK4114_ADDR << 6) | 0x20 | (addr & 0x1f);
  387. addrdata = (addrdata << 8) | data;
  388. write_data(ice, tmp, addrdata, 15);
  389. ap192_4wire_finish(ice, tmp);
  390. }
  391. static unsigned char ap192_ak4114_read(void *private_data, unsigned char addr)
  392. {
  393. struct snd_ice1712 *ice = private_data;
  394. unsigned int tmp;
  395. unsigned char data;
  396. tmp = ap192_4wire_start(ice);
  397. write_data(ice, tmp, (AK4114_ADDR << 6) | (addr & 0x1f), 7);
  398. data = read_data(ice, tmp, 7);
  399. ap192_4wire_finish(ice, tmp);
  400. return data;
  401. }
  402. static int __devinit ap192_ak4114_init(struct snd_ice1712 *ice)
  403. {
  404. static const unsigned char ak4114_init_vals[] = {
  405. AK4114_RST | AK4114_PWN | AK4114_OCKS0 | AK4114_OCKS1,
  406. AK4114_DIF_I24I2S,
  407. AK4114_TX1E,
  408. AK4114_EFH_1024 | AK4114_DIT | AK4114_IPS(1),
  409. 0,
  410. 0
  411. };
  412. static const unsigned char ak4114_init_txcsb[] = {
  413. 0x41, 0x02, 0x2c, 0x00, 0x00
  414. };
  415. struct ak4114 *ak;
  416. int err;
  417. return snd_ak4114_create(ice->card,
  418. ap192_ak4114_read,
  419. ap192_ak4114_write,
  420. ak4114_init_vals, ak4114_init_txcsb,
  421. ice, &ak);
  422. }
  423. #endif /* BUILD_AK4114_AP192 */
  424. static int __devinit revo_init(struct snd_ice1712 *ice)
  425. {
  426. struct snd_akm4xxx *ak;
  427. int err;
  428. /* determine I2C, DACs and ADCs */
  429. switch (ice->eeprom.subvendor) {
  430. case VT1724_SUBDEVICE_REVOLUTION71:
  431. ice->num_total_dacs = 8;
  432. ice->num_total_adcs = 2;
  433. ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
  434. break;
  435. case VT1724_SUBDEVICE_REVOLUTION51:
  436. ice->num_total_dacs = 6;
  437. ice->num_total_adcs = 2;
  438. break;
  439. case VT1724_SUBDEVICE_AUDIOPHILE192:
  440. ice->num_total_dacs = 2;
  441. ice->num_total_adcs = 2;
  442. break;
  443. default:
  444. snd_BUG();
  445. return -EINVAL;
  446. }
  447. /* second stage of initialization, analog parts and others */
  448. ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL);
  449. if (! ak)
  450. return -ENOMEM;
  451. ice->akm_codecs = 2;
  452. switch (ice->eeprom.subvendor) {
  453. case VT1724_SUBDEVICE_REVOLUTION71:
  454. ice->akm_codecs = 2;
  455. if ((err = snd_ice1712_akm4xxx_init(ak, &akm_revo_front, &akm_revo_front_priv, ice)) < 0)
  456. return err;
  457. if ((err = snd_ice1712_akm4xxx_init(ak + 1, &akm_revo_surround, &akm_revo_surround_priv, ice)) < 0)
  458. return err;
  459. /* unmute all codecs */
  460. snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE, VT1724_REVO_MUTE);
  461. break;
  462. case VT1724_SUBDEVICE_REVOLUTION51:
  463. ice->akm_codecs = 2;
  464. err = snd_ice1712_akm4xxx_init(ak, &akm_revo51,
  465. &akm_revo51_priv, ice);
  466. if (err < 0)
  467. return err;
  468. err = snd_ice1712_akm4xxx_init(ak+1, &akm_revo51_adc,
  469. &akm_revo51_adc_priv, ice);
  470. if (err < 0)
  471. return err;
  472. err = revo51_i2c_init(ice, &ptc_revo51_volume);
  473. if (err < 0)
  474. return err;
  475. /* unmute all codecs */
  476. snd_ice1712_gpio_write_bits(ice, VT1724_REVO_MUTE,
  477. VT1724_REVO_MUTE);
  478. break;
  479. case VT1724_SUBDEVICE_AUDIOPHILE192:
  480. ice->akm_codecs = 1;
  481. err = snd_ice1712_akm4xxx_init(ak, &akm_ap192, &akm_ap192_priv,
  482. ice);
  483. if (err < 0)
  484. return err;
  485. break;
  486. }
  487. return 0;
  488. }
  489. static int __devinit revo_add_controls(struct snd_ice1712 *ice)
  490. {
  491. int err;
  492. switch (ice->eeprom.subvendor) {
  493. case VT1724_SUBDEVICE_REVOLUTION71:
  494. err = snd_ice1712_akm4xxx_build_controls(ice);
  495. if (err < 0)
  496. return err;
  497. break;
  498. case VT1724_SUBDEVICE_REVOLUTION51:
  499. err = snd_ice1712_akm4xxx_build_controls(ice);
  500. if (err < 0)
  501. return err;
  502. err = snd_pt2258_build_controls(ice->spec.revo51.pt2258);
  503. if (err < 0)
  504. return err;
  505. break;
  506. case VT1724_SUBDEVICE_AUDIOPHILE192:
  507. err = snd_ice1712_akm4xxx_build_controls(ice);
  508. if (err < 0)
  509. return err;
  510. #ifdef BUILD_AK4114_AP192
  511. err = ap192_ak4114_init(ice);
  512. if (err < 0)
  513. return err;
  514. #endif
  515. break;
  516. }
  517. return 0;
  518. }
  519. /* entry point */
  520. struct snd_ice1712_card_info snd_vt1724_revo_cards[] __devinitdata = {
  521. {
  522. .subvendor = VT1724_SUBDEVICE_REVOLUTION71,
  523. .name = "M Audio Revolution-7.1",
  524. .model = "revo71",
  525. .chip_init = revo_init,
  526. .build_controls = revo_add_controls,
  527. },
  528. {
  529. .subvendor = VT1724_SUBDEVICE_REVOLUTION51,
  530. .name = "M Audio Revolution-5.1",
  531. .model = "revo51",
  532. .chip_init = revo_init,
  533. .build_controls = revo_add_controls,
  534. },
  535. {
  536. .subvendor = VT1724_SUBDEVICE_AUDIOPHILE192,
  537. .name = "M Audio Audiophile192",
  538. .model = "ap192",
  539. .chip_init = revo_init,
  540. .build_controls = revo_add_controls,
  541. },
  542. { } /* terminator */
  543. };