diff options
author | Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com> | 2022-02-26 19:09:18 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-02-28 14:30:37 +0100 |
commit | 9e3d83c52844f955aa2975f78cee48bf9f72f5e1 (patch) | |
tree | f63b833a6f6b608d9b27dcd0507473ae305179c1 /sound/soc/codecs/lpass-macro-common.h | |
parent | ASoC: codecs: add pm runtime support for Qualcomm codecs (diff) | |
download | linux-9e3d83c52844f955aa2975f78cee48bf9f72f5e1.tar.xz linux-9e3d83c52844f955aa2975f78cee48bf9f72f5e1.zip |
ASoC: codecs: Add power domains support in digital macro codecs
Add support for enabling required power domains in digital macro codecs.
macro and dcodec power domains are being requested as clocks by HLOS
in ADSP based architectures and ADSP internally handling as powerdomains.
In ADSP bypass case need to handle them as power domains explicitly.
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/1645898959-11231-2-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/lpass-macro-common.h')
-rw-r--r-- | sound/soc/codecs/lpass-macro-common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/soc/codecs/lpass-macro-common.h b/sound/soc/codecs/lpass-macro-common.h new file mode 100644 index 000000000000..f2cbf9fe2c6e --- /dev/null +++ b/sound/soc/codecs/lpass-macro-common.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2022, The Linux Foundation. All rights reserved. + */ + +#ifndef __LPASS_MACRO_COMMON_H__ +#define __LPASS_MACRO_COMMON_H__ + +struct lpass_macro { + struct device *macro_pd; + struct device *dcodec_pd; +}; + +struct lpass_macro *lpass_macro_pds_init(struct device *dev); +void lpass_macro_pds_exit(struct lpass_macro *pds); + +#endif /* __LPASS_MACRO_COMMON_H__ */ |