Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b221c22 authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

ANDROID: GKI: SoC: pcm: Add fields to struct snd_pcm_ops and struct snd_soc_component_driver



These are required to resolve the ABI diffs
for these structs.

Test: make
Bug: 151372815
Signed-off-by: default avatarKenneth Westfield <kwestfie@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
Change-Id: Ic83229850787aaa07b5e1d0b22f3192afdd6e434
(cherry picked from commit 92064590)
[hridya: commit amended to only include ABI diff]
Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
parent a24ebd93
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -80,6 +80,9 @@ struct snd_pcm_ops {
			struct timespec *system_ts, struct timespec *audio_ts,
			struct snd_pcm_audio_tstamp_config *audio_tstamp_config,
			struct snd_pcm_audio_tstamp_report *audio_tstamp_report);
	int (*delay_blk)(struct snd_pcm_substream *substream);
	int (*wall_clock)(struct snd_pcm_substream *substream,
			struct timespec *audio_ts);
	int (*fill_silence)(struct snd_pcm_substream *substream, int channel,
			    unsigned long pos, unsigned long bytes);
	int (*copy_user)(struct snd_pcm_substream *substream, int channel,
+10 −0
Original line number Diff line number Diff line
@@ -807,6 +807,16 @@ struct snd_soc_component_driver {
	int (*set_bias_level)(struct snd_soc_component *component,
			      enum snd_soc_bias_level level);

	/*
	 * For platform-caused delay reporting, where the thread blocks waiting
	 * for the delay amount to be determined.  Defining this will cause the
	 * ASoC core to skip calling the delay callbacks for all components in
	 * the runtime.
	 * Optional.
	 */
	snd_pcm_sframes_t (*delay_blk)(struct snd_pcm_substream *substream,
			struct snd_soc_dai *dai);

	const struct snd_pcm_ops *ops;
	const struct snd_compr_ops *compr_ops;