aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-02-07 03:58:11 -0500
committerTakashi Iwai <tiwai@suse.de>2013-02-07 03:59:26 -0500
commit46a144818acd8b340bdc6ccf12255c7fb301f0ee (patch)
tree73f8f515a6eabd7203715ab8e45d40cb42eaf476
parentb57a895fa2188d4e1cefa030d0fc9d126e453a95 (diff)
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>
-rw-r--r--sound/pci/hda/hda_generic.c4
-rw-r--r--sound/pci/hda/hda_generic.h3
2 files changed, 1 insertions, 6 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)
2483 * Parse input paths 2483 * Parse input paths
2484 */ 2484 */
2485 2485
2486#ifdef CONFIG_PM
2487/* add the powersave loopback-list entry */ 2486/* add the powersave loopback-list entry */
2488static void add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx) 2487static void add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx)
2489{ 2488{
@@ -2498,9 +2497,6 @@ static void add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx)
2498 spec->num_loopbacks++; 2497 spec->num_loopbacks++;
2499 spec->loopback.amplist = spec->loopback_list; 2498 spec->loopback.amplist = spec->loopback_list;
2500} 2499}
2501#else
2502#define add_loopback_list(spec, mix, idx) /* NOP */
2503#endif
2504 2500
2505/* create input playback/capture controls for the given pin */ 2501/* create input playback/capture controls for the given pin */
2506static int new_analog_input(struct hda_codec *codec, int input_idx, 2502static int new_analog_input(struct hda_codec *codec, int input_idx,
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index 065fcc77b860..d5348dd7a14f 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -226,11 +226,10 @@ struct hda_gen_spec {
226 hda_nid_t vmaster_nid; 226 hda_nid_t vmaster_nid;
227 unsigned int vmaster_tlv[4]; 227 unsigned int vmaster_tlv[4];
228 struct hda_vmaster_mute_hook vmaster_mute; 228 struct hda_vmaster_mute_hook vmaster_mute;
229#ifdef CONFIG_PM 229
230 struct hda_loopback_check loopback; 230 struct hda_loopback_check loopback;
231 int num_loopbacks; 231 int num_loopbacks;
232 struct hda_amp_list loopback_list[8]; 232 struct hda_amp_list loopback_list[8];
233#endif
234 233
235 /* multi-io */ 234 /* multi-io */
236 int multi_ios; 235 int multi_ios;