aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-09-21 03:57:06 -0400
committerTakashi Iwai <tiwai@suse.de>2010-09-21 04:00:03 -0400
commit9e5341b92d1d2dde11691b394721b45b36416bef (patch)
tree987a81df30cec229d2af12f87c4b572ded04095d /sound/pci/hda/patch_sigmatel.c
parent9396d3174b761685d6fefb1103e66b96a2e5db6d (diff)
ALSA: hda - Introduce hda_call_check_power_status() helper
Replace the explicit ifdef check and call of check_power_status ops with a new helper function, hda_call_check_power_status(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 6bfbc2fe46e..a90327b0cc3 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4372,11 +4372,9 @@ static int stac92xx_init(struct hda_codec *codec)
4372 stac_issue_unsol_event(codec, nid); 4372 stac_issue_unsol_event(codec, nid);
4373 } 4373 }
4374 4374
4375#ifdef CONFIG_SND_HDA_POWER_SAVE
4376 /* sync mute LED */ 4375 /* sync mute LED */
4377 if (spec->gpio_led && codec->patch_ops.check_power_status) 4376 if (spec->gpio_led)
4378 codec->patch_ops.check_power_status(codec, 0x01); 4377 hda_call_check_power_status(codec, 0x01);
4379#endif
4380 if (spec->dac_list) 4378 if (spec->dac_list)
4381 stac92xx_power_down(codec); 4379 stac92xx_power_down(codec);
4382 return 0; 4380 return 0;
@@ -4958,11 +4956,9 @@ static int stac92xx_resume(struct hda_codec *codec)
4958 stac_issue_unsol_event(codec, 4956 stac_issue_unsol_event(codec,
4959 spec->autocfg.line_out_pins[0]); 4957 spec->autocfg.line_out_pins[0]);
4960 } 4958 }
4961#ifdef CONFIG_SND_HDA_POWER_SAVE
4962 /* sync mute LED */ 4959 /* sync mute LED */
4963 if (spec->gpio_led && codec->patch_ops.check_power_status) 4960 if (spec->gpio_led)
4964 codec->patch_ops.check_power_status(codec, 0x01); 4961 hda_call_check_power_status(codec, 0x01);
4965#endif
4966 return 0; 4962 return 0;
4967} 4963}
4968 4964