Skip to content

Commit

Permalink
ipc4: mixin: Don't clear HiFi5 input AE_VALIGN reg
Browse files Browse the repository at this point in the history
Clearing of AE_VALIGN registers with AE_ZALIGN128() is only necessary when
they are used for memory write operations. There is no need to do this for
registers used for memory read.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel committed Jan 30, 2025
1 parent ffdfb3d commit d0e54b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/audio/mixin_mixout/mixin_mixout_hifi5.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ static void mix_s16(struct cir_buf_ptr *sink, int32_t start_sample, int32_t mixe
ae_int16x4 out_sample, out_sample1;
ae_int16x8 *in;
ae_int16x8 *out;
ae_valignx2 inu = AE_ZALIGN128();
ae_valignx2 outu1 = AE_ZALIGN128();
ae_valignx2 inu;
ae_valignx2 outu1;
ae_valignx2 outu2 = AE_ZALIGN128();
/* cir_buf_wrap() is required and is done below in a loop */
ae_int16 *dst = (ae_int16 *)sink->ptr + start_sample;
Expand Down Expand Up @@ -111,8 +111,8 @@ static void mix_s24(struct cir_buf_ptr *sink, int32_t start_sample, int32_t mixe
ae_int32x2 out_sample, out_sample1;
ae_int32x4 *in;
ae_int32x4 *out;
ae_valignx2 inu = AE_ZALIGN128();
ae_valignx2 outu1 = AE_ZALIGN128();
ae_valignx2 inu;
ae_valignx2 outu1;
ae_valignx2 outu2 = AE_ZALIGN128();
/* cir_buf_wrap() is required and is done below in a loop */
int32_t *dst = (int32_t *)sink->ptr + start_sample;
Expand Down Expand Up @@ -195,8 +195,8 @@ static void mix_s32(struct cir_buf_ptr *sink, int32_t start_sample, int32_t mixe
ae_int32x2 out_sample, out_sample1;
ae_int32x4 *in;
ae_int32x4 *out;
ae_valignx2 inu = AE_ZALIGN128();
ae_valignx2 outu1 = AE_ZALIGN128();
ae_valignx2 inu;
ae_valignx2 outu1;
ae_valignx2 outu2 = AE_ZALIGN128();
/* cir_buf_wrap() is required and is done below in a loop */
int32_t *dst = (int32_t *)sink->ptr + start_sample;
Expand Down

0 comments on commit d0e54b2

Please sign in to comment.