blob: 5d86e6809752e701218531deb29088f2f5517855 [file] [log] [blame]
Takashi Iwai2c484df2005-06-30 18:54:04 +02001/*
2 * linux/sound/pxa2xx-ac97.c -- AC97 support for the Intel PXA2xx chip.
3 *
4 * Author: Nicolas Pitre
5 * Created: Dec 02, 2004
6 * Copyright: MontaVista Software Inc.
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 version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#include <linux/init.h>
14#include <linux/module.h>
15#include <linux/kernel.h>
Russell Kingd052d1b2005-10-29 19:07:23 +010016#include <linux/platform_device.h>
Takashi Iwai2c484df2005-06-30 18:54:04 +020017#include <linux/interrupt.h>
18#include <linux/wait.h>
19#include <linux/delay.h>
20
Takashi Iwai2c484df2005-06-30 18:54:04 +020021#include <sound/core.h>
22#include <sound/pcm.h>
23#include <sound/ac97_codec.h>
24#include <sound/initval.h>
25
26#include <asm/irq.h>
Ingo Molnar12aa7572006-01-16 16:36:05 +010027#include <linux/mutex.h>
Takashi Iwai2c484df2005-06-30 18:54:04 +020028#include <asm/hardware.h>
29#include <asm/arch/pxa-regs.h>
30#include <asm/arch/audio.h>
31
32#include "pxa2xx-pcm.h"
33
34
Ingo Molnar12aa7572006-01-16 16:36:05 +010035static DEFINE_MUTEX(car_mutex);
Takashi Iwai2c484df2005-06-30 18:54:04 +020036static DECLARE_WAIT_QUEUE_HEAD(gsr_wq);
37static volatile long gsr_bits;
38
Nicolas Pitreea265c02005-12-12 15:41:47 +010039/*
40 * Beware PXA27x bugs:
41 *
42 * o Slot 12 read from modem space will hang controller.
43 * o CDONE, SDONE interrupt fails after any slot 12 IO.
44 *
45 * We therefore have an hybrid approach for waiting on SDONE (interrupt or
46 * 1 jiffy timeout if interrupt never comes).
47 */
48
Takashi Iwaid18f8372005-11-17 15:10:38 +010049static unsigned short pxa2xx_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
Takashi Iwai2c484df2005-06-30 18:54:04 +020050{
51 unsigned short val = -1;
52 volatile u32 *reg_addr;
53
Ingo Molnar12aa7572006-01-16 16:36:05 +010054 mutex_lock(&car_mutex);
Takashi Iwai2c484df2005-06-30 18:54:04 +020055
56 /* set up primary or secondary codec space */
57 reg_addr = (ac97->num & 1) ? &SAC_REG_BASE : &PAC_REG_BASE;
58 reg_addr += (reg >> 1);
59
60 /* start read access across the ac97 link */
Nicolas Pitreea265c02005-12-12 15:41:47 +010061 GSR = GSR_CDONE | GSR_SDONE;
Takashi Iwai2c484df2005-06-30 18:54:04 +020062 gsr_bits = 0;
63 val = *reg_addr;
64 if (reg == AC97_GPIO_STATUS)
65 goto out;
Nicolas Pitreea265c02005-12-12 15:41:47 +010066 if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_SDONE, 1) <= 0 &&
67 !((GSR | gsr_bits) & GSR_SDONE)) {
Takashi Iwai2c484df2005-06-30 18:54:04 +020068 printk(KERN_ERR "%s: read error (ac97_reg=%d GSR=%#lx)\n",
Nicolas Pitreea265c02005-12-12 15:41:47 +010069 __FUNCTION__, reg, GSR | gsr_bits);
Takashi Iwai2c484df2005-06-30 18:54:04 +020070 val = -1;
71 goto out;
72 }
73
74 /* valid data now */
Nicolas Pitreea265c02005-12-12 15:41:47 +010075 GSR = GSR_CDONE | GSR_SDONE;
Takashi Iwai2c484df2005-06-30 18:54:04 +020076 gsr_bits = 0;
77 val = *reg_addr;
78 /* but we've just started another cycle... */
Nicolas Pitreea265c02005-12-12 15:41:47 +010079 wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_SDONE, 1);
Takashi Iwai2c484df2005-06-30 18:54:04 +020080
Ingo Molnar12aa7572006-01-16 16:36:05 +010081out: mutex_unlock(&car_mutex);
Takashi Iwai2c484df2005-06-30 18:54:04 +020082 return val;
83}
84
Takashi Iwaid18f8372005-11-17 15:10:38 +010085static void pxa2xx_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val)
Takashi Iwai2c484df2005-06-30 18:54:04 +020086{
87 volatile u32 *reg_addr;
88
Ingo Molnar12aa7572006-01-16 16:36:05 +010089 mutex_lock(&car_mutex);
Takashi Iwai2c484df2005-06-30 18:54:04 +020090
Takashi Iwai2c484df2005-06-30 18:54:04 +020091 /* set up primary or secondary codec space */
92 reg_addr = (ac97->num & 1) ? &SAC_REG_BASE : &PAC_REG_BASE;
93 reg_addr += (reg >> 1);
Nicolas Pitreea265c02005-12-12 15:41:47 +010094
95 GSR = GSR_CDONE | GSR_SDONE;
Takashi Iwai2c484df2005-06-30 18:54:04 +020096 gsr_bits = 0;
97 *reg_addr = val;
Nicolas Pitreea265c02005-12-12 15:41:47 +010098 if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE, 1) <= 0 &&
99 !((GSR | gsr_bits) & GSR_CDONE))
Takashi Iwai2c484df2005-06-30 18:54:04 +0200100 printk(KERN_ERR "%s: write error (ac97_reg=%d GSR=%#lx)\n",
Nicolas Pitreea265c02005-12-12 15:41:47 +0100101 __FUNCTION__, reg, GSR | gsr_bits);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200102
Ingo Molnar12aa7572006-01-16 16:36:05 +0100103 mutex_unlock(&car_mutex);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200104}
105
Takashi Iwaid18f8372005-11-17 15:10:38 +0100106static void pxa2xx_ac97_reset(struct snd_ac97 *ac97)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200107{
108 /* First, try cold reset */
109 GCR &= GCR_COLD_RST; /* clear everything but nCRST */
110 GCR &= ~GCR_COLD_RST; /* then assert nCRST */
111
112 gsr_bits = 0;
113#ifdef CONFIG_PXA27x
114 /* PXA27x Developers Manual section 13.5.2.2.1 */
Michael Brunner03d14a52007-12-04 21:39:20 +0100115 pxa_set_cken(CKEN_AC97CONF, 1);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200116 udelay(5);
Michael Brunner03d14a52007-12-04 21:39:20 +0100117 pxa_set_cken(CKEN_AC97CONF, 0);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200118 GCR = GCR_COLD_RST;
119 udelay(50);
120#else
121 GCR = GCR_COLD_RST;
122 GCR |= GCR_CDONE_IE|GCR_SDONE_IE;
123 wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1);
124#endif
125
126 if (!((GSR | gsr_bits) & (GSR_PCR | GSR_SCR))) {
127 printk(KERN_INFO "%s: cold reset timeout (GSR=%#lx)\n",
128 __FUNCTION__, gsr_bits);
129
130 /* let's try warm reset */
131 gsr_bits = 0;
132#ifdef CONFIG_PXA27x
133 /* warm reset broken on Bulverde,
134 so manually keep AC97 reset high */
135 pxa_gpio_mode(113 | GPIO_OUT | GPIO_DFLT_HIGH);
136 udelay(10);
137 GCR |= GCR_WARM_RST;
138 pxa_gpio_mode(113 | GPIO_ALT_FN_2_OUT);
Liam Girdwood4a677ac52005-08-05 10:24:36 +0200139 udelay(500);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200140#else
Liam Girdwood4a677ac52005-08-05 10:24:36 +0200141 GCR |= GCR_WARM_RST|GCR_PRIRDY_IEN|GCR_SECRDY_IEN;
Takashi Iwai2c484df2005-06-30 18:54:04 +0200142 wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1);
143#endif
144
145 if (!((GSR | gsr_bits) & (GSR_PCR | GSR_SCR)))
146 printk(KERN_INFO "%s: warm reset timeout (GSR=%#lx)\n",
147 __FUNCTION__, gsr_bits);
148 }
149
150 GCR &= ~(GCR_PRIRDY_IEN|GCR_SECRDY_IEN);
151 GCR |= GCR_SDONE_IE|GCR_CDONE_IE;
152}
153
David Howells7d12e782006-10-05 14:55:46 +0100154static irqreturn_t pxa2xx_ac97_irq(int irq, void *dev_id)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200155{
156 long status;
157
158 status = GSR;
159 if (status) {
160 GSR = status;
161 gsr_bits |= status;
162 wake_up(&gsr_wq);
163
164#ifdef CONFIG_PXA27x
165 /* Although we don't use those we still need to clear them
166 since they tend to spuriously trigger when MMC is used
167 (hardware bug? go figure)... */
168 MISR = MISR_EOC;
169 PISR = PISR_EOC;
170 MCSR = MCSR_EOC;
171#endif
172
173 return IRQ_HANDLED;
174 }
175
176 return IRQ_NONE;
177}
178
Takashi Iwaid18f8372005-11-17 15:10:38 +0100179static struct snd_ac97_bus_ops pxa2xx_ac97_ops = {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200180 .read = pxa2xx_ac97_read,
181 .write = pxa2xx_ac97_write,
182 .reset = pxa2xx_ac97_reset,
183};
184
Takashi Iwaid18f8372005-11-17 15:10:38 +0100185static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_out = {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200186 .name = "AC97 PCM out",
187 .dev_addr = __PREG(PCDR),
188 .drcmr = &DRCMRTXPCDR,
189 .dcmd = DCMD_INCSRCADDR | DCMD_FLOWTRG |
190 DCMD_BURST32 | DCMD_WIDTH4,
191};
192
Takashi Iwaid18f8372005-11-17 15:10:38 +0100193static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_in = {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200194 .name = "AC97 PCM in",
195 .dev_addr = __PREG(PCDR),
196 .drcmr = &DRCMRRXPCDR,
197 .dcmd = DCMD_INCTRGADDR | DCMD_FLOWSRC |
198 DCMD_BURST32 | DCMD_WIDTH4,
199};
200
Takashi Iwaid18f8372005-11-17 15:10:38 +0100201static struct snd_pcm *pxa2xx_ac97_pcm;
202static struct snd_ac97 *pxa2xx_ac97_ac97;
Takashi Iwai2c484df2005-06-30 18:54:04 +0200203
Takashi Iwaid18f8372005-11-17 15:10:38 +0100204static int pxa2xx_ac97_pcm_startup(struct snd_pcm_substream *substream)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200205{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100206 struct snd_pcm_runtime *runtime = substream->runtime;
Takashi Iwai2c484df2005-06-30 18:54:04 +0200207 pxa2xx_audio_ops_t *platform_ops;
208 int r;
209
210 runtime->hw.channels_min = 2;
211 runtime->hw.channels_max = 2;
212
213 r = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
214 AC97_RATES_FRONT_DAC : AC97_RATES_ADC;
215 runtime->hw.rates = pxa2xx_ac97_ac97->rates[r];
216 snd_pcm_limit_hw_rates(runtime);
217
218 platform_ops = substream->pcm->card->dev->platform_data;
219 if (platform_ops && platform_ops->startup)
220 return platform_ops->startup(substream, platform_ops->priv);
221 else
222 return 0;
223}
224
Takashi Iwaid18f8372005-11-17 15:10:38 +0100225static void pxa2xx_ac97_pcm_shutdown(struct snd_pcm_substream *substream)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200226{
227 pxa2xx_audio_ops_t *platform_ops;
228
229 platform_ops = substream->pcm->card->dev->platform_data;
230 if (platform_ops && platform_ops->shutdown)
231 platform_ops->shutdown(substream, platform_ops->priv);
232}
233
Takashi Iwaid18f8372005-11-17 15:10:38 +0100234static int pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200235{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100236 struct snd_pcm_runtime *runtime = substream->runtime;
Takashi Iwai2c484df2005-06-30 18:54:04 +0200237 int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
238 AC97_PCM_FRONT_DAC_RATE : AC97_PCM_LR_ADC_RATE;
239 return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate);
240}
241
Takashi Iwaid18f8372005-11-17 15:10:38 +0100242static struct pxa2xx_pcm_client pxa2xx_ac97_pcm_client = {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200243 .playback_params = &pxa2xx_ac97_pcm_out,
244 .capture_params = &pxa2xx_ac97_pcm_in,
245 .startup = pxa2xx_ac97_pcm_startup,
246 .shutdown = pxa2xx_ac97_pcm_shutdown,
247 .prepare = pxa2xx_ac97_pcm_prepare,
248};
249
250#ifdef CONFIG_PM
251
Takashi Iwaid18f8372005-11-17 15:10:38 +0100252static int pxa2xx_ac97_do_suspend(struct snd_card *card, pm_message_t state)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200253{
Takashi Iwai792a6c52005-11-17 17:19:25 +0100254 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
255
256 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold);
257 snd_pcm_suspend_all(pxa2xx_ac97_pcm);
258 snd_ac97_suspend(pxa2xx_ac97_ac97);
259 if (platform_ops && platform_ops->suspend)
260 platform_ops->suspend(platform_ops->priv);
261 GCR |= GCR_ACLINK_OFF;
Eric Miao7053acb2007-04-05 04:07:20 +0100262 pxa_set_cken(CKEN_AC97, 0);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200263
264 return 0;
265}
266
Takashi Iwaid18f8372005-11-17 15:10:38 +0100267static int pxa2xx_ac97_do_resume(struct snd_card *card)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200268{
Takashi Iwai792a6c52005-11-17 17:19:25 +0100269 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
270
Eric Miao7053acb2007-04-05 04:07:20 +0100271 pxa_set_cken(CKEN_AC97, 1);
Takashi Iwai792a6c52005-11-17 17:19:25 +0100272 if (platform_ops && platform_ops->resume)
273 platform_ops->resume(platform_ops->priv);
274 snd_ac97_resume(pxa2xx_ac97_ac97);
275 snd_power_change_state(card, SNDRV_CTL_POWER_D0);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200276
277 return 0;
278}
279
Russell King3ae5eae2005-11-09 22:32:44 +0000280static int pxa2xx_ac97_suspend(struct platform_device *dev, pm_message_t state)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200281{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100282 struct snd_card *card = platform_get_drvdata(dev);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200283 int ret = 0;
284
Russell King9480e302005-10-28 09:52:56 -0700285 if (card)
Dirk Opfera55bfdc2005-08-08 16:29:43 +0200286 ret = pxa2xx_ac97_do_suspend(card, PMSG_SUSPEND);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200287
288 return ret;
289}
290
Russell King3ae5eae2005-11-09 22:32:44 +0000291static int pxa2xx_ac97_resume(struct platform_device *dev)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200292{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100293 struct snd_card *card = platform_get_drvdata(dev);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200294 int ret = 0;
295
Russell King9480e302005-10-28 09:52:56 -0700296 if (card)
Dirk Opfera55bfdc2005-08-08 16:29:43 +0200297 ret = pxa2xx_ac97_do_resume(card);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200298
299 return ret;
300}
301
302#else
303#define pxa2xx_ac97_suspend NULL
304#define pxa2xx_ac97_resume NULL
305#endif
306
Prarit Bhargava788c6042007-02-13 13:11:11 +0100307static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200308{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100309 struct snd_card *card;
310 struct snd_ac97_bus *ac97_bus;
311 struct snd_ac97_template ac97_template;
Takashi Iwai2c484df2005-06-30 18:54:04 +0200312 int ret;
313
314 ret = -ENOMEM;
315 card = snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
316 THIS_MODULE, 0);
317 if (!card)
318 goto err;
319
Russell King3ae5eae2005-11-09 22:32:44 +0000320 card->dev = &dev->dev;
321 strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver));
Takashi Iwai2c484df2005-06-30 18:54:04 +0200322
323 ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm);
324 if (ret)
325 goto err;
326
327 ret = request_irq(IRQ_AC97, pxa2xx_ac97_irq, 0, "AC97", NULL);
328 if (ret < 0)
329 goto err;
330
331 pxa_gpio_mode(GPIO31_SYNC_AC97_MD);
332 pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD);
333 pxa_gpio_mode(GPIO28_BITCLK_AC97_MD);
334 pxa_gpio_mode(GPIO29_SDATA_IN_AC97_MD);
335#ifdef CONFIG_PXA27x
336 /* Use GPIO 113 as AC97 Reset on Bulverde */
337 pxa_gpio_mode(113 | GPIO_ALT_FN_2_OUT);
338#endif
Eric Miao7053acb2007-04-05 04:07:20 +0100339 pxa_set_cken(CKEN_AC97, 1);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200340
341 ret = snd_ac97_bus(card, 0, &pxa2xx_ac97_ops, NULL, &ac97_bus);
342 if (ret)
343 goto err;
344 memset(&ac97_template, 0, sizeof(ac97_template));
345 ret = snd_ac97_mixer(ac97_bus, &ac97_template, &pxa2xx_ac97_ac97);
346 if (ret)
347 goto err;
348
349 snprintf(card->shortname, sizeof(card->shortname),
350 "%s", snd_ac97_get_short_name(pxa2xx_ac97_ac97));
351 snprintf(card->longname, sizeof(card->longname),
Russell King3ae5eae2005-11-09 22:32:44 +0000352 "%s (%s)", dev->dev.driver->name, card->mixername);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200353
Takashi Iwaif78dfac2007-12-17 16:24:04 +0100354 snd_card_set_dev(card, &dev->dev);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200355 ret = snd_card_register(card);
356 if (ret == 0) {
Russell King3ae5eae2005-11-09 22:32:44 +0000357 platform_set_drvdata(dev, card);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200358 return 0;
359 }
360
361 err:
362 if (card)
363 snd_card_free(card);
Richard Purdie1f750a72007-07-02 10:19:07 +0100364 if (CKEN & (1 << CKEN_AC97)) {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200365 GCR |= GCR_ACLINK_OFF;
366 free_irq(IRQ_AC97, NULL);
Eric Miao7053acb2007-04-05 04:07:20 +0100367 pxa_set_cken(CKEN_AC97, 0);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200368 }
369 return ret;
370}
371
Prarit Bhargava788c6042007-02-13 13:11:11 +0100372static int __devexit pxa2xx_ac97_remove(struct platform_device *dev)
Takashi Iwai2c484df2005-06-30 18:54:04 +0200373{
Takashi Iwaid18f8372005-11-17 15:10:38 +0100374 struct snd_card *card = platform_get_drvdata(dev);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200375
376 if (card) {
377 snd_card_free(card);
Russell King3ae5eae2005-11-09 22:32:44 +0000378 platform_set_drvdata(dev, NULL);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200379 GCR |= GCR_ACLINK_OFF;
380 free_irq(IRQ_AC97, NULL);
Eric Miao7053acb2007-04-05 04:07:20 +0100381 pxa_set_cken(CKEN_AC97, 0);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200382 }
383
384 return 0;
385}
386
Russell King3ae5eae2005-11-09 22:32:44 +0000387static struct platform_driver pxa2xx_ac97_driver = {
Takashi Iwai2c484df2005-06-30 18:54:04 +0200388 .probe = pxa2xx_ac97_probe,
Prarit Bhargava788c6042007-02-13 13:11:11 +0100389 .remove = __devexit_p(pxa2xx_ac97_remove),
Takashi Iwai2c484df2005-06-30 18:54:04 +0200390 .suspend = pxa2xx_ac97_suspend,
391 .resume = pxa2xx_ac97_resume,
Russell King3ae5eae2005-11-09 22:32:44 +0000392 .driver = {
393 .name = "pxa2xx-ac97",
394 },
Takashi Iwai2c484df2005-06-30 18:54:04 +0200395};
396
397static int __init pxa2xx_ac97_init(void)
398{
Russell King3ae5eae2005-11-09 22:32:44 +0000399 return platform_driver_register(&pxa2xx_ac97_driver);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200400}
401
402static void __exit pxa2xx_ac97_exit(void)
403{
Russell King3ae5eae2005-11-09 22:32:44 +0000404 platform_driver_unregister(&pxa2xx_ac97_driver);
Takashi Iwai2c484df2005-06-30 18:54:04 +0200405}
406
407module_init(pxa2xx_ac97_init);
408module_exit(pxa2xx_ac97_exit);
409
410MODULE_AUTHOR("Nicolas Pitre");
411MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip");
412MODULE_LICENSE("GPL");