]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ALSA: hda - Enable loopback accounts for CONFIG_PM=n, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Feb 2013 08:58:11 +0000 (09:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Feb 2013 08:59:26 +0000 (09:59 +0100)
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>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h

index c4ba3066a01344af9085c6219acd39a602e15082..c2cd3d6b6003a203b3815878036398dcd37833ec 100644 (file)
@@ -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,
index 065fcc77b86098fff1e1eb32de0465d59487d049..d5348dd7a14f36fedfb5ccf677f16c38a848f930 100644 (file)
@@ -226,11 +226,10 @@ struct hda_gen_spec {
        hda_nid_t vmaster_nid;
        unsigned int vmaster_tlv[4];
        struct hda_vmaster_mute_hook vmaster_mute;
-#ifdef CONFIG_PM
+
        struct hda_loopback_check loopback;
        int num_loopbacks;
        struct hda_amp_list loopback_list[8];
-#endif
 
        /* multi-io */
        int multi_ios;