// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation // // Authors: Keyon Jie <yang.jie@linux.intel.com>
/* * Both codec driver and controller can hold references to * display power. To avoid unnecessary power-up/down cycles, * controller doesn't immediately release its reference. * * If the codec driver powers down the link, release * the controller reference as well.
*/ if (codec->addr == HDA_IDISP_ADDR && !enable)
snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false);
/* WAKEEN needs to be set for disabled links */
update_codec_wake_enable(bus, codec->addr, enable);
}
/* * This can be used for both with/without hda link support.
*/ void sof_hda_bus_init(struct snd_sof_dev *sdev, struct device *dev)
{ struct hdac_bus *bus = sof_to_bus(sdev);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.