diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 18:48:57 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 18:48:57 -0400 |
commit | 596c96ba06e5d56e72451e02f93f4e15e17458df (patch) | |
tree | 78bc640acacb8faeb621c51296e99dbb0533a147 /sound/core/init.c | |
parent | ad18b0ea089928367185e13d11424aea91d4b41f (diff) | |
parent | 20731945ae743034353a88c307920d1f16cf8ac8 (diff) |
Merge branch 'master'
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index c72a79115cca..59202de1d2ce 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -676,8 +676,8 @@ struct snd_generic_device { | |||
676 | #define SND_GENERIC_NAME "snd_generic" | 676 | #define SND_GENERIC_NAME "snd_generic" |
677 | 677 | ||
678 | #ifdef CONFIG_PM | 678 | #ifdef CONFIG_PM |
679 | static int snd_generic_suspend(struct device *dev, pm_message_t state, u32 level); | 679 | static int snd_generic_suspend(struct device *dev, pm_message_t state); |
680 | static int snd_generic_resume(struct device *dev, u32 level); | 680 | static int snd_generic_resume(struct device *dev); |
681 | #endif | 681 | #endif |
682 | 682 | ||
683 | /* initialized in sound.c */ | 683 | /* initialized in sound.c */ |
@@ -818,13 +818,10 @@ int snd_card_set_pm_callback(snd_card_t *card, | |||
818 | 818 | ||
819 | #ifdef CONFIG_SND_GENERIC_DRIVER | 819 | #ifdef CONFIG_SND_GENERIC_DRIVER |
820 | /* suspend/resume callbacks for snd_generic platform device */ | 820 | /* suspend/resume callbacks for snd_generic platform device */ |
821 | static int snd_generic_suspend(struct device *dev, pm_message_t state, u32 level) | 821 | static int snd_generic_suspend(struct device *dev, pm_message_t state) |
822 | { | 822 | { |
823 | snd_card_t *card; | 823 | snd_card_t *card; |
824 | 824 | ||
825 | if (level != SUSPEND_DISABLE) | ||
826 | return 0; | ||
827 | |||
828 | card = get_snd_generic_card(dev); | 825 | card = get_snd_generic_card(dev); |
829 | if (card->power_state == SNDRV_CTL_POWER_D3hot) | 826 | if (card->power_state == SNDRV_CTL_POWER_D3hot) |
830 | return 0; | 827 | return 0; |
@@ -834,13 +831,10 @@ static int snd_generic_suspend(struct device *dev, pm_message_t state, u32 level | |||
834 | return 0; | 831 | return 0; |
835 | } | 832 | } |
836 | 833 | ||
837 | static int snd_generic_resume(struct device *dev, u32 level) | 834 | static int snd_generic_resume(struct device *dev) |
838 | { | 835 | { |
839 | snd_card_t *card; | 836 | snd_card_t *card; |
840 | 837 | ||
841 | if (level != RESUME_ENABLE) | ||
842 | return 0; | ||
843 | |||
844 | card = get_snd_generic_card(dev); | 838 | card = get_snd_generic_card(dev); |
845 | if (card->power_state == SNDRV_CTL_POWER_D0) | 839 | if (card->power_state == SNDRV_CTL_POWER_D0) |
846 | return 0; | 840 | return 0; |