History

ASoC: Intel: Skylake: Add support for specifying D0i3 configuration

Not all use cases can support Doi3. Only certain use cases like hot word detection, deep buffering can support D0i3 based on resource requirement. So, pass the D0i3 capability for the FE/BE copier using topology. This will be used to take a decision for D0i3 mode entry/exit.

Vinod Koul committed 10 years ago

Commit 6bd9dcf1 parent 8a0cb233 files · +15 −1Browse files

Unified · Split

3 files
  1. include/uapi/sound/snd_sst_tokens.h +4 −1
  2. sound/soc/intel/skylake/skl-topology.c +4 −0
  3. sound/soc/intel/skylake/skl-topology.h +7 −0
include/uapi/sound/snd_sst_tokens.h+4−1
@@ -159,6 +159,8 @@ · 158 unmodified lines
159 *159 *
160 * %SKL_TKN_U32_PMODE: Specifies the power mode for pipe160 * %SKL_TKN_U32_PMODE: Specifies the power mode for pipe
161 *161 *
162 * %SKL_TKL_U32_D0I3_CAPS: Specifies the D0i3 capability for module
163 *
162 * module_id and loadable flags dont have tokens as these values will be164 * module_id and loadable flags dont have tokens as these values will be
163 * read from the DSP FW manifest165 * read from the DSP FW manifest
164 */166 */
@@ -211,7 +213,8 @@ enum SKL_TKNS { · 46 unmodified lines
211 SKL_TKN_U32_LIB_COUNT,213 SKL_TKN_U32_LIB_COUNT,
212 SKL_TKN_STR_LIB_NAME,214 SKL_TKN_STR_LIB_NAME,
213 SKL_TKN_U32_PMODE,215 SKL_TKN_U32_PMODE,
214 SKL_TKN_MAX = SKL_TKN_U32_PMODE,216 SKL_TKL_U32_D0I3_CAPS,
217 SKL_TKN_MAX = SKL_TKL_U32_D0I3_CAPS,
215};218};
216 219
217#endif220#endif
sound/soc/intel/skylake/skl-topology.c+4−0
@@ -1830,6 +1830,10 @@ static int skl_tplg_get_token(struct device *dev, · 1829 unmodified lines
1830 mconfig->converter = tkn_elem->value;1830 mconfig->converter = tkn_elem->value;
1831 break;1831 break;
1832 1832
1833 case SKL_TKL_U32_D0I3_CAPS:
1834 mconfig->d0i3_caps = tkn_elem->value;
1835 break;
1836
1833 case SKL_TKN_U32_PIPE_ID:1837 case SKL_TKN_U32_PIPE_ID:
1834 ret = skl_tplg_add_pipe(dev,1838 ret = skl_tplg_add_pipe(dev,
1835 mconfig, skl, tkn_elem);1839 mconfig, skl, tkn_elem);
sound/soc/intel/skylake/skl-topology.h+7−0
@@ -294,6 +294,12 @@ enum skl_module_state { · 293 unmodified lines
294 SKL_MODULE_UNLOADED = 4,294 SKL_MODULE_UNLOADED = 4,
295};295};
296 296
297enum d0i3_capability {
298 SKL_D0I3_NONE = 0,
299 SKL_D0I3_STREAMING = 1,
300 SKL_D0I3_NON_STREAMING = 2,
301};
302
297struct skl_module_cfg {303struct skl_module_cfg {
298 u8 guid[16];304 u8 guid[16];
299 struct skl_module_inst_id id;305 struct skl_module_inst_id id;
@@ -320,6 +326,7 @@ struct skl_module_cfg { · 20 unmodified lines
320 u32 converter;326 u32 converter;
321 u32 vbus_id;327 u32 vbus_id;
322 u32 mem_pages;328 u32 mem_pages;
329 enum d0i3_capability d0i3_caps;
323 struct skl_module_pin *m_in_pin;330 struct skl_module_pin *m_in_pin;
324 struct skl_module_pin *m_out_pin;331 struct skl_module_pin *m_out_pin;
325 enum skl_module_type m_type;332 enum skl_module_type m_type;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t