diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-04-26 09:05:39 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-04-26 09:05:39 -0400 |
commit | 31d44b57c508971c083ce038d7c5ededd09cea01 (patch) | |
tree | 249689625896d65894f56763c22f726e39fde5ec /sound/pci/hda/hda_codec.c | |
parent | 885f42e1f466c36e3663d912a831e940f01a112b (diff) | |
parent | 1c7276cfc04b1a5b296b691c2e07297a4f6c19aa (diff) |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 2b6019390489..fb07def1586f 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1000,6 +1000,7 @@ void snd_hda_shutup_pins(struct hda_codec *codec) | |||
1000 | } | 1000 | } |
1001 | EXPORT_SYMBOL_HDA(snd_hda_shutup_pins); | 1001 | EXPORT_SYMBOL_HDA(snd_hda_shutup_pins); |
1002 | 1002 | ||
1003 | #ifdef SND_HDA_NEEDS_RESUME | ||
1003 | /* Restore the pin controls cleared previously via snd_hda_shutup_pins() */ | 1004 | /* Restore the pin controls cleared previously via snd_hda_shutup_pins() */ |
1004 | static void restore_shutup_pins(struct hda_codec *codec) | 1005 | static void restore_shutup_pins(struct hda_codec *codec) |
1005 | { | 1006 | { |
@@ -1016,6 +1017,7 @@ static void restore_shutup_pins(struct hda_codec *codec) | |||
1016 | } | 1017 | } |
1017 | codec->pins_shutup = 0; | 1018 | codec->pins_shutup = 0; |
1018 | } | 1019 | } |
1020 | #endif | ||
1019 | 1021 | ||
1020 | static void init_hda_cache(struct hda_cache_rec *cache, | 1022 | static void init_hda_cache(struct hda_cache_rec *cache, |
1021 | unsigned int record_size); | 1023 | unsigned int record_size); |
@@ -1394,6 +1396,7 @@ static void purify_inactive_streams(struct hda_codec *codec) | |||
1394 | } | 1396 | } |
1395 | } | 1397 | } |
1396 | 1398 | ||
1399 | #ifdef SND_HDA_NEEDS_RESUME | ||
1397 | /* clean up all streams; called from suspend */ | 1400 | /* clean up all streams; called from suspend */ |
1398 | static void hda_cleanup_all_streams(struct hda_codec *codec) | 1401 | static void hda_cleanup_all_streams(struct hda_codec *codec) |
1399 | { | 1402 | { |
@@ -1405,6 +1408,7 @@ static void hda_cleanup_all_streams(struct hda_codec *codec) | |||
1405 | really_cleanup_stream(codec, p); | 1408 | really_cleanup_stream(codec, p); |
1406 | } | 1409 | } |
1407 | } | 1410 | } |
1411 | #endif | ||
1408 | 1412 | ||
1409 | /* | 1413 | /* |
1410 | * amp access functions | 1414 | * amp access functions |