diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-02-07 09:58:11 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-02-07 09:59:26 +0100 |
commit | 46a144818acd8b340bdc6ccf12255c7fb301f0ee (patch) | |
tree | 73f8f515a6eabd7203715ab8e45d40cb42eaf476 /sound/pci/hda/hda_generic.c | |
parent | b57a895fa2188d4e1cefa030d0fc9d126e453a95 (diff) | |
download | talos-obmc-linux-46a144818acd8b340bdc6ccf12255c7fb301f0ee.tar.gz talos-obmc-linux-46a144818acd8b340bdc6ccf12255c7fb301f0ee.zip |
ALSA: hda - Enable loopback accounts for CONFIG_PM=n, too
The loopback list is referred by the VIA codec driver no matter
whether CONFIG_PM is set or not, thus we need to enable it always.
Otherwise it gets compile errors.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index c4ba3066a013..c2cd3d6b6003 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -2483,7 +2483,6 @@ static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) * Parse input paths */ -#ifdef CONFIG_PM /* add the powersave loopback-list entry */ static void add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx) { @@ -2498,9 +2497,6 @@ static void add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx) spec->num_loopbacks++; spec->loopback.amplist = spec->loopback_list; } -#else -#define add_loopback_list(spec, mix, idx) /* NOP */ -#endif /* create input playback/capture controls for the given pin */ static int new_analog_input(struct hda_codec *codec, int input_idx, |