audio: bringup a new resample module on SM1/TM2 [1/1]
[GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git] / sound / soc / amlogic / auge / resample.h
CommitLineData
bee5db11
XW
1/*
2 * sound/soc/amlogic/auge/resample.h
3 *
4 * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 */
17#ifndef __AML_AUDIO_RESAMPLE_H__
18#define __AML_AUDIO_RESAMPLE_H__
19
0663274a
SL
20#include "resample_hw.h"
21
1a82972c 22int card_add_resample_kcontrols(struct snd_soc_card *card);
bee5db11 23
1a82972c 24int resample_set(enum resample_idx id, enum samplerate_index index);
3710b197 25
1a82972c 26int get_resample_module_num(void);
3710b197 27
0663274a
SL
28int set_resample_source(enum resample_idx id, enum toddr_src src);
29
758b24b3
ZW
30struct audioresample *get_audioresample(enum resample_idx id);
31
1a82972c
ZW
32int get_resample_version_id(enum resample_idx id);
33
34bool get_resample_enable(enum resample_idx id);
35
bee5db11 36#endif