ASoC: qcom: q6apm-dai: drop unused 'q6apm_dai_rtd' fields
Remove few unused fields from 'struct q6apm_dai_rtd'. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240430140954.328127-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6b045e2e21
commit
bd381c9d15
@ -70,14 +70,10 @@ struct q6apm_dai_rtd {
|
|||||||
unsigned int bytes_received;
|
unsigned int bytes_received;
|
||||||
unsigned int copied_total;
|
unsigned int copied_total;
|
||||||
uint16_t bits_per_sample;
|
uint16_t bits_per_sample;
|
||||||
uint16_t source; /* Encoding source bit mask */
|
|
||||||
uint16_t session_id;
|
|
||||||
bool next_track;
|
bool next_track;
|
||||||
enum stream_state state;
|
enum stream_state state;
|
||||||
struct q6apm_graph *graph;
|
struct q6apm_graph *graph;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
uint32_t initial_samples_drop;
|
|
||||||
uint32_t trailing_samples_drop;
|
|
||||||
bool notify_on_drain;
|
bool notify_on_drain;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -720,14 +716,12 @@ static int q6apm_dai_compr_set_metadata(struct snd_soc_component *component,
|
|||||||
|
|
||||||
switch (metadata->key) {
|
switch (metadata->key) {
|
||||||
case SNDRV_COMPRESS_ENCODER_PADDING:
|
case SNDRV_COMPRESS_ENCODER_PADDING:
|
||||||
prtd->trailing_samples_drop = metadata->value[0];
|
|
||||||
q6apm_remove_trailing_silence(component->dev, prtd->graph,
|
q6apm_remove_trailing_silence(component->dev, prtd->graph,
|
||||||
prtd->trailing_samples_drop);
|
metadata->value[0]);
|
||||||
break;
|
break;
|
||||||
case SNDRV_COMPRESS_ENCODER_DELAY:
|
case SNDRV_COMPRESS_ENCODER_DELAY:
|
||||||
prtd->initial_samples_drop = metadata->value[0];
|
|
||||||
q6apm_remove_initial_silence(component->dev, prtd->graph,
|
q6apm_remove_initial_silence(component->dev, prtd->graph,
|
||||||
prtd->initial_samples_drop);
|
metadata->value[0]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user