diff options
| -rw-r--r-- | sound/pci/hda/hda_intel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 9f44645a1d04..4e9ea7080270 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
| @@ -1260,17 +1260,20 @@ static void azx_stop_chip(struct azx *chip); | |||
| 1260 | static void azx_bus_reset(struct hda_bus *bus) | 1260 | static void azx_bus_reset(struct hda_bus *bus) |
| 1261 | { | 1261 | { |
| 1262 | struct azx *chip = bus->private_data; | 1262 | struct azx *chip = bus->private_data; |
| 1263 | int i; | ||
| 1264 | 1263 | ||
| 1265 | bus->in_reset = 1; | 1264 | bus->in_reset = 1; |
| 1266 | azx_stop_chip(chip); | 1265 | azx_stop_chip(chip); |
| 1267 | azx_init_chip(chip); | 1266 | azx_init_chip(chip); |
| 1267 | #ifdef CONFIG_PM | ||
| 1268 | if (chip->initialized) { | 1268 | if (chip->initialized) { |
| 1269 | int i; | ||
| 1270 | |||
| 1269 | for (i = 0; i < AZX_MAX_PCMS; i++) | 1271 | for (i = 0; i < AZX_MAX_PCMS; i++) |
| 1270 | snd_pcm_suspend_all(chip->pcm[i]); | 1272 | snd_pcm_suspend_all(chip->pcm[i]); |
| 1271 | snd_hda_suspend(chip->bus); | 1273 | snd_hda_suspend(chip->bus); |
| 1272 | snd_hda_resume(chip->bus); | 1274 | snd_hda_resume(chip->bus); |
| 1273 | } | 1275 | } |
| 1276 | #endif | ||
| 1274 | bus->in_reset = 0; | 1277 | bus->in_reset = 0; |
| 1275 | } | 1278 | } |
| 1276 | 1279 | ||
