Commit 218c9007 authored by Mark Brown's avatar Mark Brown

ASoC: SOF: reshuffle and optimize structures

Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

pahole reports a number of sub-optimal structure definitions with
holes and cache-line alignment problems, this patchset optimizes a
couple of structure frequently used.

No functionality change, only re-ordering of structure members.
parents 839e231a 5821d7b4
...@@ -314,12 +314,12 @@ struct sof_token_info { ...@@ -314,12 +314,12 @@ struct sof_token_info {
/** /**
* struct snd_sof_pcm_stream_pipeline_list - List of pipelines associated with a PCM stream * struct snd_sof_pcm_stream_pipeline_list - List of pipelines associated with a PCM stream
* @count: number of pipeline widgets in the @pipe_widgets array
* @pipelines: array of pipelines * @pipelines: array of pipelines
* @count: number of pipeline widgets in the @pipe_widgets array
*/ */
struct snd_sof_pcm_stream_pipeline_list { struct snd_sof_pcm_stream_pipeline_list {
u32 count;
struct snd_sof_pipeline **pipelines; struct snd_sof_pipeline **pipelines;
u32 count;
}; };
/* PCM stream, mapped to FW component */ /* PCM stream, mapped to FW component */
......
...@@ -132,16 +132,17 @@ struct snd_sof_pdata; ...@@ -132,16 +132,17 @@ struct snd_sof_pdata;
/** /**
* struct snd_sof_platform_stream_params - platform dependent stream parameters * struct snd_sof_platform_stream_params - platform dependent stream parameters
* @stream_tag: Stream tag to use
* @use_phy_addr: Use the provided @phy_addr for configuration
* @phy_addr: Platform dependent address to be used, if @use_phy_addr * @phy_addr: Platform dependent address to be used, if @use_phy_addr
* is true * is true
* @stream_tag: Stream tag to use
* @use_phy_addr: Use the provided @phy_addr for configuration
* @no_ipc_position: Disable position update IPC from firmware * @no_ipc_position: Disable position update IPC from firmware
* @cont_update_posn: Continuous position update.
*/ */
struct snd_sof_platform_stream_params { struct snd_sof_platform_stream_params {
u32 phy_addr;
u16 stream_tag; u16 stream_tag;
bool use_phy_address; bool use_phy_address;
u32 phy_addr;
bool no_ipc_position; bool no_ipc_position;
bool cont_update_posn; bool cont_update_posn;
}; };
...@@ -411,8 +412,8 @@ struct snd_sof_debugfs_map { ...@@ -411,8 +412,8 @@ struct snd_sof_debugfs_map {
/* mailbox descriptor, used for host <-> DSP IPC */ /* mailbox descriptor, used for host <-> DSP IPC */
struct snd_sof_mailbox { struct snd_sof_mailbox {
u32 offset;
size_t size; size_t size;
u32 offset;
}; };
/* IPC message descriptor for host <-> DSP IO */ /* IPC message descriptor for host <-> DSP IO */
...@@ -424,11 +425,12 @@ struct snd_sof_ipc_msg { ...@@ -424,11 +425,12 @@ struct snd_sof_ipc_msg {
size_t reply_size; size_t reply_size;
int reply_error; int reply_error;
/* notification, firmware initiated messages */ bool ipc_complete;
void *rx_data;
wait_queue_head_t waitq; wait_queue_head_t waitq;
bool ipc_complete;
/* notification, firmware initiated messages */
void *rx_data;
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment