pxa2xx-ac97.c (c87985a3ce723995fc7b25e598238d67154108a1) | pxa2xx-ac97.c (d34e4e00adbbc91ff9fc96ed9a4e4b65161868da) |
---|---|
1/* 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 --- 92 unchanged lines hidden (view full) --- 101static struct pxa2xx_pcm_client pxa2xx_ac97_pcm_client = { 102 .playback_params = &pxa2xx_ac97_pcm_out, 103 .capture_params = &pxa2xx_ac97_pcm_in, 104 .startup = pxa2xx_ac97_pcm_startup, 105 .shutdown = pxa2xx_ac97_pcm_shutdown, 106 .prepare = pxa2xx_ac97_pcm_prepare, 107}; 108 | 1/* 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 --- 92 unchanged lines hidden (view full) --- 101static struct pxa2xx_pcm_client pxa2xx_ac97_pcm_client = { 102 .playback_params = &pxa2xx_ac97_pcm_out, 103 .capture_params = &pxa2xx_ac97_pcm_in, 104 .startup = pxa2xx_ac97_pcm_startup, 105 .shutdown = pxa2xx_ac97_pcm_shutdown, 106 .prepare = pxa2xx_ac97_pcm_prepare, 107}; 108 |
109#ifdef CONFIG_PM | 109#ifdef CONFIG_PM_SLEEP |
110 111static int pxa2xx_ac97_do_suspend(struct snd_card *card) 112{ 113 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; 114 115 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); 116 snd_pcm_suspend_all(pxa2xx_ac97_pcm); 117 snd_ac97_suspend(pxa2xx_ac97_ac97); --- 120 unchanged lines hidden (view full) --- 238} 239 240static struct platform_driver pxa2xx_ac97_driver = { 241 .probe = pxa2xx_ac97_probe, 242 .remove = __devexit_p(pxa2xx_ac97_remove), 243 .driver = { 244 .name = "pxa2xx-ac97", 245 .owner = THIS_MODULE, | 110 111static int pxa2xx_ac97_do_suspend(struct snd_card *card) 112{ 113 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; 114 115 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); 116 snd_pcm_suspend_all(pxa2xx_ac97_pcm); 117 snd_ac97_suspend(pxa2xx_ac97_ac97); --- 120 unchanged lines hidden (view full) --- 238} 239 240static struct platform_driver pxa2xx_ac97_driver = { 241 .probe = pxa2xx_ac97_probe, 242 .remove = __devexit_p(pxa2xx_ac97_remove), 243 .driver = { 244 .name = "pxa2xx-ac97", 245 .owner = THIS_MODULE, |
246#ifdef CONFIG_PM | 246#ifdef CONFIG_PM_SLEEP |
247 .pm = &pxa2xx_ac97_pm_ops, 248#endif 249 }, 250}; 251 252module_platform_driver(pxa2xx_ac97_driver); 253 254MODULE_AUTHOR("Nicolas Pitre"); 255MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); 256MODULE_LICENSE("GPL"); 257MODULE_ALIAS("platform:pxa2xx-ac97"); | 247 .pm = &pxa2xx_ac97_pm_ops, 248#endif 249 }, 250}; 251 252module_platform_driver(pxa2xx_ac97_driver); 253 254MODULE_AUTHOR("Nicolas Pitre"); 255MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); 256MODULE_LICENSE("GPL"); 257MODULE_ALIAS("platform:pxa2xx-ac97"); |