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

Commit 5397ecb3 authored by Sudheer Papothi's avatar Sudheer Papothi Committed by Saravana Kannan
Browse files

ANDROID: GKI: SoC: msm: Add compressed TX and passthrough support



There is use case that the HDMI input goes through MI2S
TX interface to ADSP. Add compressed TX support for
this use case.
Add support for compressed bitstream passthrough over HDMI
for DD/DDP contents.
Use compressed driver to support passthrough.

Change-Id: I92d0f301d44cc71c89de07cd60a4d20ce6f7913e
Signed-off-by: default avatarSubhash Chandra Bose Naripeddy <snariped@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
Bug: 151372815
(cherry picked from commit ebb7ffe4)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 03333fc8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -122,6 +122,18 @@ struct snd_compr_codec_caps {
	struct snd_codec_desc descriptor[MAX_NUM_CODEC_DESCRIPTORS];
} __attribute__((packed, aligned(4)));

/**
 * struct snd_compr_audio_info: compressed input audio information
 * @frame_size: legth of the encoded frame with valid data
 * @reserved: reserved for furture use
 */
struct snd_compr_audio_info {
	__u32 frame_size;
	__u32 reserved[15];
} __attribute__((packed, aligned(4)));

#define SND_COMPR_AUDIO_INFO

/**
 * enum sndrv_compress_encoder
 * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the
+5 −1
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ struct snd_codec_desc {
 * @align: Block alignment in bytes of an audio sample.
 *		Only required for PCM or IEC formats.
 * @options: encoder-specific settings
 * @compr_passthr: compressed bitstream passthrough
 * @reserved: reserved for future use
 */

@@ -429,7 +430,10 @@ struct snd_codec {
	__u32 format;
	__u32 align;
	union snd_codec_options options;
	__u32 reserved[3];
	__u32 compr_passthr;
	__u32 reserved[2];
} __attribute__((packed, aligned(4)));

#define SND_CODEC_COMPRESS_PASSTHROUGH

#endif