Lines 165-177
static int hda_codec_driver_remove(struct device *dev)
Link Here
|
165 |
|
165 |
|
166 |
static void hda_codec_driver_shutdown(struct device *dev) |
166 |
static void hda_codec_driver_shutdown(struct device *dev) |
167 |
{ |
167 |
{ |
168 |
struct hda_codec *codec = dev_to_hda_codec(dev); |
168 |
snd_hda_codec_shutdown(dev_to_hda_codec(dev)); |
169 |
|
|
|
170 |
if (!pm_runtime_suspended(dev)) { |
171 |
if (codec->patch_ops.reboot_notify) |
172 |
codec->patch_ops.reboot_notify(codec); |
173 |
snd_hda_codec_display_power(codec, false); |
174 |
} |
175 |
} |
169 |
} |
176 |
|
170 |
|
177 |
int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, |
171 |
int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, |