skl.h (5cdf6c09ca9de3f037ba2d770206f3374459602d) | skl.h (d14700a01f9101c2bc75c24fc859c8d85ba7e623) |
---|---|
1/* 2 * skl.h - HD Audio skylake defintions. 3 * 4 * Copyright (C) 2015 Intel Corp 5 * Author: Jeeja KP <jeeja.kp@intel.com> 6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 9 unchanged lines hidden (view full) --- 18 * 19 */ 20 21#ifndef __SOUND_SOC_SKL_H 22#define __SOUND_SOC_SKL_H 23 24#include <sound/hda_register.h> 25#include <sound/hdaudio_ext.h> | 1/* 2 * skl.h - HD Audio skylake defintions. 3 * 4 * Copyright (C) 2015 Intel Corp 5 * Author: Jeeja KP <jeeja.kp@intel.com> 6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 9 unchanged lines hidden (view full) --- 18 * 19 */ 20 21#ifndef __SOUND_SOC_SKL_H 22#define __SOUND_SOC_SKL_H 23 24#include <sound/hda_register.h> 25#include <sound/hdaudio_ext.h> |
26#include <sound/soc.h> |
|
26#include "skl-nhlt.h" 27 28#define SKL_SUSPEND_DELAY 2000 29 30#define AZX_PCIREG_PGCTL 0x44 31#define AZX_PGCTL_LSRMD_MASK (1 << 4) 32#define AZX_PCIREG_CGCTL 0x48 33#define AZX_CGCTL_MISCBDCGE_MASK (1 << 6) --- 81 unchanged lines hidden (view full) --- 115int skl_suspend_dsp(struct skl *skl); 116int skl_resume_dsp(struct skl *skl); 117void skl_cleanup_resources(struct skl *skl); 118const struct skl_dsp_ops *skl_get_dsp_ops(int pci_id); 119void skl_update_d0i3c(struct device *dev, bool enable); 120int skl_nhlt_create_sysfs(struct skl *skl); 121void skl_nhlt_remove_sysfs(struct skl *skl); 122 | 27#include "skl-nhlt.h" 28 29#define SKL_SUSPEND_DELAY 2000 30 31#define AZX_PCIREG_PGCTL 0x44 32#define AZX_PGCTL_LSRMD_MASK (1 << 4) 33#define AZX_PCIREG_CGCTL 0x48 34#define AZX_CGCTL_MISCBDCGE_MASK (1 << 6) --- 81 unchanged lines hidden (view full) --- 116int skl_suspend_dsp(struct skl *skl); 117int skl_resume_dsp(struct skl *skl); 118void skl_cleanup_resources(struct skl *skl); 119const struct skl_dsp_ops *skl_get_dsp_ops(int pci_id); 120void skl_update_d0i3c(struct device *dev, bool enable); 121int skl_nhlt_create_sysfs(struct skl *skl); 122void skl_nhlt_remove_sysfs(struct skl *skl); 123 |
124struct skl_module_cfg; 125 |
|
123#ifdef CONFIG_DEBUG_FS 124struct skl_debug *skl_debugfs_init(struct skl *skl); 125void skl_debugfs_exit(struct skl_debug *d); | 126#ifdef CONFIG_DEBUG_FS 127struct skl_debug *skl_debugfs_init(struct skl *skl); 128void skl_debugfs_exit(struct skl_debug *d); |
129void skl_debug_init_module(struct skl_debug *d, 130 struct snd_soc_dapm_widget *w, 131 struct skl_module_cfg *mconfig); |
|
126#else 127static inline struct skl_debug *skl_debugfs_init(struct skl *skl) 128{ 129 return NULL; 130} 131static inline void skl_debugfs_exit(struct skl_debug *d) 132{} | 132#else 133static inline struct skl_debug *skl_debugfs_init(struct skl *skl) 134{ 135 return NULL; 136} 137static inline void skl_debugfs_exit(struct skl_debug *d) 138{} |
139static inline void skl_debug_init_module(struct skl_debug *d, 140 struct snd_soc_dapm_widget *w, 141 struct skl_module_cfg *mconfig) 142{} |
|
133#endif 134 135#endif /* __SOUND_SOC_SKL_H */ | 143#endif 144 145#endif /* __SOUND_SOC_SKL_H */ |