[alsa-devel] [PATCH 4/6] ASoC: SOF: Intel: byt: Refactor fw ready / mem windows creation
Cezary Rojewski
cezary.rojewski at intel.com
Wed Aug 7 21:07:16 CEST 2019
On 2019-08-07 17:02, Pierre-Louis Bossart wrote:
> From: Daniel Baluta <daniel.baluta at nxp.com>
> So we are basically moving code from intel/byt.c to loader.c keeping
> in mind that mbox_offset is a per platform constant so we need to
> use newly introduced snd_sof_dsp_get_mailbox_offset /
> snd_sof_dsp_get_window_offset in order to get the correct
> mbox offset / window offset value.
You've already explained your goal. These details are unnecessary.
>
> Also, bar is a per platform constant so we use snd_sof_dsp_get_bar_index
> instead of the hardcoded BYT_DSP_BAR.
>
> Signed-off-by: Daniel Baluta <daniel.baluta at nxp.com>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
> ---
> sound/soc/sof/intel/byt.c | 164 +++++--------------------------------
> sound/soc/sof/loader.c | 168 ++++++++++++++++++++++++++++++++++++++
> sound/soc/sof/sof-priv.h | 2 +
> 3 files changed, 189 insertions(+), 145 deletions(-)
Hmm, even the commit message mentions two steps, not one. Splitting this
commit into two - introduction of new generic functions and byt
alignment towards the newly added approach - seems reasonable. Bdw & hda
followups already make good examples.
Czarek
More information about the Alsa-devel
mailing list