[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <08d9598d-2ae7-3da8-752e-b588c8ebdd61@linaro.org>
Date: Wed, 8 Jul 2020 10:44:24 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
broonie@...nel.org
Cc: alsa-devel@...a-project.org, ckeepax@...nsource.cirrus.com,
tiwai@...e.com, lgirdwood@...il.com, linux-kernel@...r.kernel.org,
vkoul@...nel.org
Subject: Re: [PATCH 06/11] ASoC: q6asm: add support to remove intial and
trailing silence
Thanks Pierre for review,
On 07/07/2020 17:55, Pierre-Louis Bossart wrote:
>
>
>
>> +int q6asm_stream_remove_initial_silence(struct audio_client *ac,
>> + uint32_t stream_id,
>> + uint32_t initial_samples)
>> +{
>> + return q6asm_stream_remove_silence(ac, stream_id,
>> + ASM_DATA_CMD_REMOVE_INITIAL_SILENCE,
>> + initial_samples);
>> +}
>> +EXPORT_SYMBOL_GPL(q6asm_stream_remove_initial_silence);
>> +
>> +int q6asm_stream_remove_trailing_silence(struct audio_client *ac,
>> uint32_t stream_id,
>> + uint32_t trailing_samples)
>> +{
>> + return q6asm_stream_remove_silence(ac, stream_id,
>> + ASM_DATA_CMD_REMOVE_TRAILING_SILENCE,
>> + trailing_samples);
>> +}
>> +EXPORT_SYMBOL_GPL(q6asm_stream_remove_trailing_silence);
>
> do you need those wrappers? Might as well call the _remove_silence()
> function with the right parameters, no?
Intention is to abstract out the CMDs within dsp specific wrappers.
This is how rest of the apis are also done! Also its possible that in
future these IDs could potentially upgraded on different versions of DSP fw.
Making a single call would mean that either CMD IDs or some kinda of
other intermediate flags.
So I would like to keep it as it is for now!
Thanks,
srini
Powered by blists - more mailing lists