diff options
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 2c1366343335..146f95be8737 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -3404,6 +3404,23 @@ static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) | |||
3404 | } | 3404 | } |
3405 | } | 3405 | } |
3406 | 3406 | ||
3407 | /* call each reboot notifier */ | ||
3408 | void snd_hda_bus_reboot_notify(struct hda_bus *bus) | ||
3409 | { | ||
3410 | struct hda_codec *codec; | ||
3411 | |||
3412 | if (!bus) | ||
3413 | return; | ||
3414 | list_for_each_entry(codec, &bus->codec_list, list) { | ||
3415 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
3416 | if (!codec->power_on) | ||
3417 | continue; | ||
3418 | #endif | ||
3419 | if (codec->patch_ops.reboot_notify) | ||
3420 | codec->patch_ops.reboot_notify(codec); | ||
3421 | } | ||
3422 | } | ||
3423 | |||
3407 | /* | 3424 | /* |
3408 | * open the digital out in the exclusive mode | 3425 | * open the digital out in the exclusive mode |
3409 | */ | 3426 | */ |