ASoC: core: Add support for no host mode

Add support for hostless PCM mode to support usecases
where PCM is not consumed by host.

Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
Banajit Goswami 2014-08-23 15:33:14 -07:00 committed by David Keitel
parent 3cf2122061
commit 2fd1d08935

View file

@ -362,6 +362,10 @@
#define SND_SOC_COMP_ORDER_LATE 1 #define SND_SOC_COMP_ORDER_LATE 1
#define SND_SOC_COMP_ORDER_LAST 2 #define SND_SOC_COMP_ORDER_LAST 2
/* DAI Link Host Mode Support */
#define SND_SOC_DAI_LINK_NO_HOST 0x1
#define SND_SOC_DAI_LINK_OPT_HOST 0x2
/* /*
* Bias levels * Bias levels
* *
@ -738,6 +742,7 @@ struct snd_soc_pcm_stream {
unsigned int channels_min; /* min channels */ unsigned int channels_min; /* min channels */
unsigned int channels_max; /* max channels */ unsigned int channels_max; /* max channels */
unsigned int sig_bits; /* number of bits of content */ unsigned int sig_bits; /* number of bits of content */
const char *aif_name; /* DAPM AIF widget name */
}; };
/* SoC audio ops */ /* SoC audio ops */
@ -1039,6 +1044,9 @@ struct snd_soc_dai_link {
/* This DAI link can route to other DAI links at runtime (Frontend)*/ /* This DAI link can route to other DAI links at runtime (Frontend)*/
unsigned int dynamic:1; unsigned int dynamic:1;
/* This DAI can support no host IO (no pcm data is copied to from host) */
unsigned int no_host_mode:2;
/* DPCM capture and Playback support */ /* DPCM capture and Playback support */
unsigned int dpcm_capture:1; unsigned int dpcm_capture:1;
unsigned int dpcm_playback:1; unsigned int dpcm_playback:1;