Merge "audio-kernel: dsp: Add needed exports"

This commit is contained in:
Linux Build Service Account
2019-02-27 01:15:32 -08:00
zatwierdzone przez Gerrit - the friendly Code Review server

Wyświetl plik

@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
@@ -7306,7 +7305,16 @@ int afe_set_lpass_internal_digital_codec_clock(u16 port_id,
return ret; return ret;
} }
/**
* afe_enable_lpass_core_shared_clock -
* Configures the core clk on LPASS.
* Need on targets where lpass provides
* clocks
* @port_id: afe port id
* @enable: enable or disable clk
*
* Returns success or failure of call.
*/
int afe_enable_lpass_core_shared_clock(u16 port_id, u32 enable) int afe_enable_lpass_core_shared_clock(u16 port_id, u32 enable)
{ {
struct afe_param_id_lpass_core_shared_clk_cfg clk_cfg; struct afe_param_id_lpass_core_shared_clk_cfg clk_cfg;
@@ -7345,7 +7353,16 @@ int afe_enable_lpass_core_shared_clock(u16 port_id, u32 enable)
mutex_unlock(&this_afe.afe_cmd_lock); mutex_unlock(&this_afe.afe_cmd_lock);
return ret; return ret;
} }
EXPORT_SYMBOL(afe_enable_lpass_core_shared_clock);
/**
* q6afe_check_osr_clk_freq -
* Gets supported OSR CLK frequencies
*
* @freq: frequency to check
*
* Returns success if freq is supported.
*/
int q6afe_check_osr_clk_freq(u32 freq) int q6afe_check_osr_clk_freq(u32 freq)
{ {
int ret = 0; int ret = 0;
@@ -7370,6 +7387,7 @@ int q6afe_check_osr_clk_freq(u32 freq)
} }
return ret; return ret;
} }
EXPORT_SYMBOL(q6afe_check_osr_clk_freq);
int afe_get_sp_th_vi_ftm_data(struct afe_sp_th_vi_get_param *th_vi) int afe_get_sp_th_vi_ftm_data(struct afe_sp_th_vi_get_param *th_vi)
{ {