ac97c.c (c87985a3ce723995fc7b25e598238d67154108a1) ac97c.c (d34e4e00adbbc91ff9fc96ed9a4e4b65161868da)
1/*
2 * Driver for Atmel AC97C
3 *
4 * Copyright (C) 2005-2009 Atmel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 1120 unchanged lines hidden (view full) ---

1129err_request_irq:
1130 snd_card_free(card);
1131err_snd_card_new:
1132 clk_disable(pclk);
1133 clk_put(pclk);
1134 return retval;
1135}
1136
1/*
2 * Driver for Atmel AC97C
3 *
4 * Copyright (C) 2005-2009 Atmel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 1120 unchanged lines hidden (view full) ---

1129err_request_irq:
1130 snd_card_free(card);
1131err_snd_card_new:
1132 clk_disable(pclk);
1133 clk_put(pclk);
1134 return retval;
1135}
1136
1137#ifdef CONFIG_PM
1137#ifdef CONFIG_PM_SLEEP
1138static int atmel_ac97c_suspend(struct device *pdev)
1139{
1140 struct snd_card *card = dev_get_drvdata(pdev);
1141 struct atmel_ac97c *chip = card->private_data;
1142
1143 if (cpu_is_at32ap7000()) {
1144 if (test_bit(DMA_RX_READY, &chip->flags))
1145 dw_dma_cyclic_stop(chip->dma.rx_chan);

--- 90 unchanged lines hidden ---
1138static int atmel_ac97c_suspend(struct device *pdev)
1139{
1140 struct snd_card *card = dev_get_drvdata(pdev);
1141 struct atmel_ac97c *chip = card->private_data;
1142
1143 if (cpu_is_at32ap7000()) {
1144 if (test_bit(DMA_RX_READY, &chip->flags))
1145 dw_dma_cyclic_stop(chip->dma.rx_chan);

--- 90 unchanged lines hidden ---