Skip to content

Commit eafc94c

Browse files
committed
ASoC: SOF: Intel: hda: Add a virtual CPU DAI
Add a virtual CPU DAI for loopback capture for echo reference implementation. We can't use the snd-soc-dummy-dai because it is already used for the bluetooth DAI link. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 611d004 commit eafc94c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

sound/soc/sof/intel/hda-dai.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,14 @@ struct snd_soc_dai_driver skl_dai[] = {
866866
.channels_max = 4,
867867
},
868868
},
869+
{
870+
/* Virtual CPU DAI for Echo reference */
871+
.name = "Loopback Virtual Pin",
872+
.capture = {
873+
.channels_min = 1,
874+
.channels_max = 2,
875+
},
876+
},
869877
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
870878
{
871879
.name = "iDisp1 Pin",

sound/soc/sof/intel/hda.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@
418418
(HDA_DSP_BDL_SIZE / sizeof(struct sof_intel_dsp_bdl))
419419

420420
/* Number of DAIs */
421-
#define SOF_SKL_NUM_DAIS_NOCODEC 8
421+
#define SOF_SKL_NUM_DAIS_NOCODEC 9
422422

423423
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
424-
#define SOF_SKL_NUM_DAIS 15
424+
#define SOF_SKL_NUM_DAIS 16
425425
#else
426426
#define SOF_SKL_NUM_DAIS SOF_SKL_NUM_DAIS_NOCODEC
427427
#endif

0 commit comments

Comments
 (0)