mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ASoC: qcom: Fix trivial code style issues
Fix few trivial code style issues, pointed out by checkpatch, so they do
not get copied to new code (when old code is used as template):
WARNING: Prefer "GPL" over "GPL v2" - see commit bf7fbeeae6
("module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity")
WARNING: function definition argument 'struct platform_device *' should also have an identifier name
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
WARNING: Missing a blank line after declarations
WARNING: unnecessary whitespace before a quoted newline
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20231204100048.211800-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8f03936089
commit
bb3392453d
@ -344,4 +344,4 @@ module_platform_driver(apq8016_sbc_platform_driver);
|
||||
|
||||
MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
|
||||
MODULE_DESCRIPTION("APQ8016 ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -142,4 +142,4 @@ static struct platform_driver msm_snd_apq8096_driver = {
|
||||
module_platform_driver(msm_snd_apq8096_driver);
|
||||
MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
|
||||
MODULE_DESCRIPTION("APQ8096 ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -239,4 +239,4 @@ int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime *rtd,
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(qcom_snd_wcd_jack_setup);
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -305,5 +305,5 @@ static struct platform_driver apq8016_lpass_cpu_platform_driver = {
|
||||
module_platform_driver(apq8016_lpass_cpu_platform_driver);
|
||||
|
||||
MODULE_DESCRIPTION("APQ8016 LPASS CPU Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
@ -1294,4 +1294,4 @@ void asoc_qcom_lpass_cpu_platform_shutdown(struct platform_device *pdev)
|
||||
EXPORT_SYMBOL_GPL(asoc_qcom_lpass_cpu_platform_shutdown);
|
||||
|
||||
MODULE_DESCRIPTION("QTi LPASS CPU Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -251,4 +251,4 @@ const struct snd_soc_dai_ops asoc_qcom_lpass_hdmi_dai_ops = {
|
||||
EXPORT_SYMBOL_GPL(asoc_qcom_lpass_hdmi_dai_ops);
|
||||
|
||||
MODULE_DESCRIPTION("QTi LPASS HDMI Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -177,4 +177,4 @@ static struct platform_driver ipq806x_lpass_cpu_platform_driver = {
|
||||
module_platform_driver(ipq806x_lpass_cpu_platform_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QTi LPASS CPU Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -1384,4 +1384,4 @@ int asoc_qcom_lpass_platform_register(struct platform_device *pdev)
|
||||
EXPORT_SYMBOL_GPL(asoc_qcom_lpass_platform_register);
|
||||
|
||||
MODULE_DESCRIPTION("QTi LPASS Platform Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -322,4 +322,4 @@ static struct platform_driver sc7180_lpass_cpu_platform_driver = {
|
||||
module_platform_driver(sc7180_lpass_cpu_platform_driver);
|
||||
|
||||
MODULE_DESCRIPTION("SC7180 LPASS CPU DRIVER");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -398,7 +398,7 @@ struct lpass_pcm_data {
|
||||
};
|
||||
|
||||
/* register the platform driver from the CPU DAI driver */
|
||||
int asoc_qcom_lpass_platform_register(struct platform_device *);
|
||||
int asoc_qcom_lpass_platform_register(struct platform_device *pdev);
|
||||
void asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev);
|
||||
void asoc_qcom_lpass_cpu_platform_shutdown(struct platform_device *pdev);
|
||||
int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev);
|
||||
|
@ -553,13 +553,13 @@ struct q6afe_port {
|
||||
};
|
||||
|
||||
struct afe_cmd_remote_lpass_core_hw_vote_request {
|
||||
uint32_t hw_block_id;
|
||||
char client_name[8];
|
||||
uint32_t hw_block_id;
|
||||
char client_name[8];
|
||||
} __packed;
|
||||
|
||||
struct afe_cmd_remote_lpass_core_hw_devote_request {
|
||||
uint32_t hw_block_id;
|
||||
uint32_t client_handle;
|
||||
uint32_t hw_block_id;
|
||||
uint32_t client_handle;
|
||||
} __packed;
|
||||
|
||||
|
||||
|
@ -134,7 +134,7 @@ static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, vo
|
||||
prtd->state = Q6APM_STREAM_STOPPED;
|
||||
break;
|
||||
case APM_CLIENT_EVENT_DATA_WRITE_DONE:
|
||||
spin_lock_irqsave(&prtd->lock, flags);
|
||||
spin_lock_irqsave(&prtd->lock, flags);
|
||||
prtd->pos += prtd->pcm_count;
|
||||
spin_unlock_irqrestore(&prtd->lock, flags);
|
||||
snd_pcm_period_elapsed(substream);
|
||||
@ -143,7 +143,7 @@ static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, vo
|
||||
|
||||
break;
|
||||
case APM_CLIENT_EVENT_DATA_READ_DONE:
|
||||
spin_lock_irqsave(&prtd->lock, flags);
|
||||
spin_lock_irqsave(&prtd->lock, flags);
|
||||
prtd->pos += prtd->pcm_count;
|
||||
spin_unlock_irqrestore(&prtd->lock, flags);
|
||||
snd_pcm_period_elapsed(substream);
|
||||
|
@ -35,16 +35,16 @@ enum {
|
||||
#define ASM_LAST_BUFFER_FLAG BIT(30)
|
||||
|
||||
struct q6asm_flac_cfg {
|
||||
u32 sample_rate;
|
||||
u32 ext_sample_rate;
|
||||
u32 min_frame_size;
|
||||
u32 max_frame_size;
|
||||
u16 stream_info_present;
|
||||
u16 min_blk_size;
|
||||
u16 max_blk_size;
|
||||
u16 ch_cfg;
|
||||
u16 sample_size;
|
||||
u16 md5_sum;
|
||||
u32 sample_rate;
|
||||
u32 ext_sample_rate;
|
||||
u32 min_frame_size;
|
||||
u32 max_frame_size;
|
||||
u16 stream_info_present;
|
||||
u16 min_blk_size;
|
||||
u16 max_blk_size;
|
||||
u16 ch_cfg;
|
||||
u16 sample_size;
|
||||
u16 md5_sum;
|
||||
};
|
||||
|
||||
struct q6asm_wma_cfg {
|
||||
|
@ -545,6 +545,7 @@ static struct audioreach_module *audioreach_parse_common_tokens(struct q6apm *ap
|
||||
|
||||
if (mod) {
|
||||
int pn, id = 0;
|
||||
|
||||
mod->module_id = module_id;
|
||||
mod->max_ip_port = max_ip_port;
|
||||
mod->max_op_port = max_op_port;
|
||||
@ -1271,7 +1272,7 @@ int audioreach_tplg_init(struct snd_soc_component *component)
|
||||
|
||||
ret = request_firmware(&fw, tplg_fw_name, dev);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "tplg firmware loading %s failed %d \n", tplg_fw_name, ret);
|
||||
dev_err(dev, "tplg firmware loading %s failed %d\n", tplg_fw_name, ret);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
@ -578,4 +578,4 @@ static struct platform_driver sc7180_snd_driver = {
|
||||
module_platform_driver(sc7180_snd_driver);
|
||||
|
||||
MODULE_DESCRIPTION("sc7180 ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -168,4 +168,4 @@ static struct platform_driver snd_sc8280xp_driver = {
|
||||
module_platform_driver(snd_sc8280xp_driver);
|
||||
MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
|
||||
MODULE_DESCRIPTION("SC8280XP ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -625,4 +625,4 @@ static struct platform_driver sdm845_snd_driver = {
|
||||
module_platform_driver(sdm845_snd_driver);
|
||||
|
||||
MODULE_DESCRIPTION("sdm845 ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -160,4 +160,4 @@ int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream,
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(qcom_snd_sdw_hw_free);
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -182,4 +182,4 @@ static struct platform_driver snd_sm8250_driver = {
|
||||
module_platform_driver(snd_sm8250_driver);
|
||||
MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
|
||||
MODULE_DESCRIPTION("SM8250 ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -140,4 +140,4 @@ static struct platform_driver storm_platform_driver = {
|
||||
module_platform_driver(storm_platform_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QTi IPQ806x-based Storm Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Loading…
Reference in New Issue
Block a user