summaryrefslogtreecommitdiff
path: root/hifi/xaf/host-apf/utest/xaf-utils-test.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2022-02-10 21:55:19 +0000
committerJohn Stultz <john.stultz@linaro.org>2022-02-23 19:18:25 +0000
commit1313d288cd121be90b2b8477b685dcc0f76ca4e4 (patch)
treed154121f9f71cf2580dd71ce2247c0444913e6e9 /hifi/xaf/host-apf/utest/xaf-utils-test.c
parentec36f2d62fe5ce2b76e1ee51d3656455480831ac (diff)
downloadhikey-1313d288cd121be90b2b8477b685dcc0f76ca4e4.tar.gz
hikey960: Remove hifi dsp support.
The hifi dsp support wasn't frequently used nor enabled by default. Since we are moving binary firmware objects to the vendor package, just remove the hifi dsp logic and firmware all together. This patch reapplies the reverted patch of the same name, as issues were seen when the vendor package was missing. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I6d72e5ca52a4b1b0ca460e0c4613c09175dba02d
Diffstat (limited to 'hifi/xaf/host-apf/utest/xaf-utils-test.c')
-rw-r--r--hifi/xaf/host-apf/utest/xaf-utils-test.c69
1 files changed, 0 insertions, 69 deletions
diff --git a/hifi/xaf/host-apf/utest/xaf-utils-test.c b/hifi/xaf/host-apf/utest/xaf-utils-test.c
deleted file mode 100644
index 79c6710d..00000000
--- a/hifi/xaf/host-apf/utest/xaf-utils-test.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
-* Copyright (C) 2018 Cadence Design Systems, Inc.
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to use this Software with Cadence processor cores only and
-* not with any other processors and platforms, subject to
-* the following conditions:
-*
-* The above copyright notice and this permission notice shall be included
-* in all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-******************************************************************************/
-#include <stdio.h>
-#include <string.h>
-
-#include "xaf-utils-test.h"
-
-int audio_frmwk_buf_size;
-int audio_comp_buf_size;
-
-int print_banner(char *app_name)
-{
- /*
- XAF_CHK_PTR(ver_info[0], "print_verinfo");
- XAF_CHK_PTR(ver_info[1], "print_verinfo");
- XAF_CHK_PTR(ver_info[2], "print_verinfo");
- */
-
- fprintf(stdout, "******************************************************************************\n");
- fprintf(stdout, "Cadence Audio Framework (Hosted) : %s \n",app_name);
- fprintf(stdout, "Copyright (c) 2018 Cadence Design Systems, Inc.\n");
- /*fprintf(stdout, "Lib Name : %s\n", ver_info[0]);
- fprintf(stdout, "Lib Version : %s\n", ver_info[1]);
- fprintf(stdout, "API Version : %s\n", ver_info[2]);*/
- fprintf(stdout, "******************************************************************************\n");
-
- return 0;
-}
-
-int print_mem_mcps_info(mem_obj_t* mem_handle, int num_comp)
-{
- int tot_dev_mem_size, tot_comp_mem_size, tot_size;
-
- /* ...unused arg */
- (void) num_comp;
-
- /* ...printing memory info*/
-
- tot_dev_mem_size = mem_get_alloc_size(mem_handle, XAF_MEM_ID_DEV);
- tot_comp_mem_size = mem_get_alloc_size(mem_handle, XAF_MEM_ID_COMP);
- tot_size = tot_dev_mem_size + tot_comp_mem_size;
-
- fprintf(stdout,"Shared Memory between AP and DSP for IPC: %8d \n", XF_CFG_REMOTE_IPC_POOL_SIZE);
- fprintf(stdout,"Memory allocated on AP for Device : %8d \n", tot_dev_mem_size);
- fprintf(stdout,"Memory allocated on AP for Components : %8d \n", tot_comp_mem_size);
- fprintf(stdout,"Memory allocated on DSP for Components : %8d \n", XF_CFG_LOCAL_POOL_SIZE);
-
- return 0;
-}
-