mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
ALSA: hda - Move EAPD power-down into shutup callback for AD codecs
EAPD power-down should be called also for normal shutup cases. Let's move to there. This also fixes the compile warnings when CONFIG_PM isn't set automatically. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
31d44b57c5
commit
0da2692256
@ -489,11 +489,6 @@ static int ad198x_build_pcms(struct hda_codec *codec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void ad198x_shutup(struct hda_codec *codec)
|
||||
{
|
||||
snd_hda_shutup_pins(codec);
|
||||
}
|
||||
|
||||
static void ad198x_free_kctls(struct hda_codec *codec)
|
||||
{
|
||||
struct ad198x_spec *spec = codec->spec;
|
||||
@ -547,6 +542,12 @@ static void ad198x_power_eapd(struct hda_codec *codec)
|
||||
}
|
||||
}
|
||||
|
||||
static void ad198x_shutup(struct hda_codec *codec)
|
||||
{
|
||||
snd_hda_shutup_pins(codec);
|
||||
ad198x_power_eapd(codec);
|
||||
}
|
||||
|
||||
static void ad198x_free(struct hda_codec *codec)
|
||||
{
|
||||
struct ad198x_spec *spec = codec->spec;
|
||||
@ -564,7 +565,6 @@ static void ad198x_free(struct hda_codec *codec)
|
||||
static int ad198x_suspend(struct hda_codec *codec, pm_message_t state)
|
||||
{
|
||||
ad198x_shutup(codec);
|
||||
ad198x_power_eapd(codec);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user