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
159159 *
160160 * %SKL_TKN_U32_PMODE: Specifies the power mode for pipe
161161 *
162+ * %SKL_TKL_U32_D0I3_CAPS: Specifies the D0i3 capability for module
163+ *
162164 * module_id and loadable flags dont have tokens as these values will be
163165 * read from the DSP FW manifest
164166 */
@@ -211,7 +213,8 @@ enum SKL_TKNS { · 46 unmodified lines
211213 SKL_TKN_U32_LIB_COUNT,
212214 SKL_TKN_STR_LIB_NAME,
213215 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,
215218 };
216219
217220 #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
18301830 mconfig->converter = tkn_elem->value;
18311831 break;
18321832
1833+ case SKL_TKL_U32_D0I3_CAPS:
1834+ mconfig->d0i3_caps = tkn_elem->value;
1835+ break;
1836+
18331837 case SKL_TKN_U32_PIPE_ID:
18341838 ret = skl_tplg_add_pipe(dev,
18351839 mconfig, skl, tkn_elem);
sound/soc/intel/skylake/skl-topology.h+7−0
@@ -294,6 +294,12 @@ enum skl_module_state { · 293 unmodified lines
294294 SKL_MODULE_UNLOADED = 4,
295295 };
296296
297+enum d0i3_capability {
298+ SKL_D0I3_NONE = 0,
299+ SKL_D0I3_STREAMING = 1,
300+ SKL_D0I3_NON_STREAMING = 2,
301+};
302+
297303 struct skl_module_cfg {
298304 u8 guid[16];
299305 struct skl_module_inst_id id;
@@ -320,6 +326,7 @@ struct skl_module_cfg { · 20 unmodified lines
320326 u32 converter;
321327 u32 vbus_id;
322328 u32 mem_pages;
329+ enum d0i3_capability d0i3_caps;
323330 struct skl_module_pin *m_in_pin;
324331 struct skl_module_pin *m_out_pin;
325332 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