audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders. asoc - ALSA based drivers, asoc/codecs - codec drivers, ipc - APR IPC communication drivers, dsp - DSP low level drivers/Audio ION/ADSP Loader, dsp/codecs - Native encoders and decoders, soc - SoC based drivers(pinctrl/regmap/soundwire) Restructure drivers to above folder format. Include directories also follow above format. Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
此提交包含在:
@@ -0,0 +1,97 @@
|
||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __WCD934X_DSD_H__
|
||||
#define __WCD934X_DSD_H__
|
||||
|
||||
#include <sound/soc.h>
|
||||
#include "wcd934x.h"
|
||||
|
||||
enum {
|
||||
DSD0,
|
||||
DSD1,
|
||||
DSD_MAX,
|
||||
};
|
||||
|
||||
enum {
|
||||
DSD_INP_SEL_ZERO = 0,
|
||||
DSD_INP_SEL_RX0,
|
||||
DSD_INP_SEL_RX1,
|
||||
DSD_INP_SEL_RX2,
|
||||
DSD_INP_SEL_RX3,
|
||||
DSD_INP_SEL_RX4,
|
||||
DSD_INP_SEL_RX5,
|
||||
DSD_INP_SEL_RX6,
|
||||
DSD_INP_SEL_RX7,
|
||||
};
|
||||
|
||||
struct tavil_dsd_config {
|
||||
struct snd_soc_codec *codec;
|
||||
unsigned int dsd_interp_mixer[INTERP_MAX];
|
||||
u32 base_sample_rate[DSD_MAX];
|
||||
int volume[DSD_MAX];
|
||||
struct mutex vol_mutex;
|
||||
int version;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_WCD934X_DSD)
|
||||
int tavil_dsd_set_mixer_value(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num, int sw_value);
|
||||
int tavil_dsd_get_current_mixer_value(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num);
|
||||
int tavil_dsd_set_out_select(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num);
|
||||
void tavil_dsd_reset(struct tavil_dsd_config *dsd_conf);
|
||||
void tavil_dsd_set_interp_rate(struct tavil_dsd_config *dsd_conf, u16 rx_port,
|
||||
u32 sample_rate, u8 sample_rate_val);
|
||||
struct tavil_dsd_config *tavil_dsd_init(struct snd_soc_codec *codec);
|
||||
void tavil_dsd_deinit(struct tavil_dsd_config *dsd_config);
|
||||
int tavil_dsd_post_ssr_init(struct tavil_dsd_config *dsd_config);
|
||||
#else
|
||||
int tavil_dsd_set_mixer_value(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num, int sw_value)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tavil_dsd_get_current_mixer_value(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tavil_dsd_set_out_select(struct tavil_dsd_config *dsd_conf,
|
||||
int interp_num)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void tavil_dsd_reset(struct tavil_dsd_config *dsd_conf)
|
||||
{ }
|
||||
|
||||
void tavil_dsd_set_interp_rate(struct tavil_dsd_config *dsd_conf, u16 rx_port,
|
||||
u32 sample_rate, u8 sample_rate_val)
|
||||
{ }
|
||||
|
||||
struct tavil_dsd_config *tavil_dsd_init(struct snd_soc_codec *codec)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void tavil_dsd_deinit(struct tavil_dsd_config *dsd_config)
|
||||
{ }
|
||||
int tavil_dsd_post_ssr_init(struct tavil_dsd_config *dsd_config)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
新增問題並參考
封鎖使用者