mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
ALSA: hda - Fix build error without CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_POWER_SAVE is independent from CONFIG_SND_HDA_HWDEP. Thus snd_hda_hwdep_add_power_sysfs() needs the check of both kconfigs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f8b7163529
commit
7288561af9
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ int snd_hda_create_hwdep(struct hda_codec *codec);
|
||||||
static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; }
|
static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
#if defined(CONFIG_SND_HDA_POWER_SAVE) && defined(CONFIG_SND_HDA_HWDEP)
|
||||||
int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec);
|
int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec);
|
||||||
#else
|
#else
|
||||||
static inline int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec)
|
static inline int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec)
|
||||||
|
|
Loading…
Reference in a new issue