ANDROID: ASoC: core- Add vendor data fields to support hostless DAI

Allow DAI's to be hostless so that no PCM data is sent between DAI
and CPU. This allows for power savings as there is no DMA or CPU
interaction required

vendor hooks will be developed using this fields to enable
hostless

Bug: 234791256

Signed-off-by: Raghu Bankapur <quic_rbankapu@quicinc.com>
Change-Id: Ib926c4e76e9f76d54f3c1402dba676adc49bcf7c
This commit is contained in:
Raghu Bankapur 2022-06-15 22:11:41 +05:30 committed by Carlos Llamas
parent 8255004dae
commit 6575ef0cd7
2 changed files with 3 additions and 1 deletions

View File

@ -486,6 +486,7 @@ struct snd_pcm_substream {
/* misc flags */
unsigned int hw_opened: 1;
unsigned int managed_buffer_alloc:1;
ANDROID_VENDOR_DATA(1);
ANDROID_KABI_RESERVE(1);
};

View File

@ -597,6 +597,7 @@ struct snd_soc_pcm_stream {
unsigned int channels_min; /* min channels */
unsigned int channels_max; /* max channels */
unsigned int sig_bits; /* number of bits of content */
ANDROID_VENDOR_DATA(1);
};
/* SoC audio ops */
@ -732,7 +733,7 @@ struct snd_soc_dai_link {
#ifdef CONFIG_SND_SOC_TOPOLOGY
struct snd_soc_dobj dobj; /* For topology */
#endif
ANDROID_VENDOR_DATA(1);
ANDROID_KABI_RESERVE(1);
};