ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE
CONFIG_SND_HDA_POWER_SAVE is no longer an experimental feature and its behavior can be well controlled via the default value and module parameter. Let's just replace it with the standard CONFIG_PM. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -70,7 +70,7 @@ struct hda_gspec {
|
||||
|
||||
struct list_head nid_list; /* list of widgets */
|
||||
|
||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
||||
#ifdef CONFIG_PM
|
||||
#define MAX_LOOPBACK_AMPS 7
|
||||
struct hda_loopback_check loopback;
|
||||
int num_loopbacks;
|
||||
@@ -654,7 +654,7 @@ static int parse_input(struct hda_codec *codec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
||||
#ifdef CONFIG_PM
|
||||
static void add_input_loopback(struct hda_codec *codec, hda_nid_t nid,
|
||||
int dir, int idx)
|
||||
{
|
||||
@@ -1028,7 +1028,7 @@ static int build_generic_pcms(struct hda_codec *codec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
||||
#ifdef CONFIG_PM
|
||||
static int generic_check_power_status(struct hda_codec *codec, hda_nid_t nid)
|
||||
{
|
||||
struct hda_gspec *spec = codec->spec;
|
||||
@@ -1043,7 +1043,7 @@ static struct hda_codec_ops generic_patch_ops = {
|
||||
.build_controls = build_generic_controls,
|
||||
.build_pcms = build_generic_pcms,
|
||||
.free = snd_hda_generic_free,
|
||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
||||
#ifdef CONFIG_PM
|
||||
.check_power_status = generic_check_power_status,
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user