Skip to content

Commit 4bd6564

Browse files
committed
base_fw: advertise BESPOKE codec for MFCC compress capture
Register SND_AUDIOCODEC_BESPOKE capture in codec info TLV when CONFIG_COMP_MFCC is enabled so the kernel detects compress capture support via IPC4_SOF_CODEC_INFO. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 69b8d59 commit 4bd6564

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/audio/base_fw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ static void get_codec_info(struct sof_tlv **tuple)
100100
codec_info.items[codec_info.count++] =
101101
SET_CODEC_INFO_ITEM(SND_AUDIOCODEC_VORBIS, SOF_IPC_STREAM_PLAYBACK);
102102
#endif
103+
#ifdef CONFIG_COMP_MFCC
104+
codec_info.items[codec_info.count++] =
105+
SET_CODEC_INFO_ITEM(SND_AUDIOCODEC_BESPOKE, SOF_IPC_STREAM_CAPTURE);
106+
#endif
103107

104108
if (!codec_info.count)
105109
return;

0 commit comments

Comments
 (0)