-
-static int snd_omap_aic23_suspend(snd_card_t * card, pm_message_t state)
-{
- struct snd_card_omap_aic23 *chip = card->private_data;
- ADEBUG();
-
- if (chip->card->power_state != SNDRV_CTL_POWER_D3hot) {
- snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot);
- snd_pcm_suspend_all(chip->pcm);
- /* Mutes and turn clock off */
- omap_aic23_clock_off();
- snd_omap_suspend_mixer();
- }
-
- return 0;
-}
-
-/*
- * Prepare hardware for resume
- */
-static int snd_omap_aic23_resume(snd_card_t * card)
-{
- struct snd_card_omap_aic23 *chip = card->private_data;
- ADEBUG();
-
- if (chip->card->power_state != SNDRV_CTL_POWER_D0) {
- snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0);
- omap_aic23_clock_on();
- snd_omap_resume_mixer();
- }
-
- return 0;
-}
-