Skip to content

Commit b98dbaf

Browse files
singalsulgirdwood
authored andcommitted
Tools: Topology2: Prepare for 8-bit formats add to host copier
This patch adds the IPC4 sample type values to topology as preparation to later add U8, A-law, and mu-law support to host copier into e.g. nocodec topologies. The change requires also kernel support add for 8-bit formats. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 99c0b6b commit b98dbaf

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

tools/topology/topology2/include/common/common_definitions.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Define {
3434
SAMPLE_TYPE_SIGNED_INTEGER 2 # Signed Integer
3535
SAMPLE_TYPE_UNSIGNED_INTEGER 3 # Unsigned Integer
3636
SAMPLE_TYPE_FLOAT 4 # Float
37+
SAMPLE_TYPE_A_LAW 5 # A-law
38+
SAMPLE_TYPE_MU_LAW 6 # mu-law
3739

3840
# Copier type
3941
HDA_HOST_OUTPUT_CLASS 0 # HD/A host output (-> DSP)

tools/topology/topology2/include/common/input_audio_format.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Class.Base."input_audio_format" {
9898
$SAMPLE_TYPE_SIGNED_INTEGER
9999
$SAMPLE_TYPE_UNSIGNED_INTEGER
100100
$SAMPLE_TYPE_FLOAT
101+
$SAMPLE_TYPE_A_LAW
102+
$SAMPLE_TYPE_MU_LAW
101103
]
102104
}
103105
}

tools/topology/topology2/include/common/output_audio_format.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Class.Base."output_audio_format" {
103103
$SAMPLE_TYPE_SIGNED_INTEGER
104104
$SAMPLE_TYPE_UNSIGNED_INTEGER
105105
$SAMPLE_TYPE_FLOAT
106+
$SAMPLE_TYPE_A_LAW
107+
$SAMPLE_TYPE_MU_LAW
106108
]
107109
}
108110
}

0 commit comments

Comments
 (0)