topology: byt/cht: Add virtual widgets

Add the required virtual widgets to the BYT codec topology
to suppress the errors seen due to the dapm routes set up
in the machine driver and move them to the common header.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2019-12-04 09:59:53 -08:00 committed by Liam Girdwood
parent 19ae126962
commit f587993c75
3 changed files with 12 additions and 7 deletions

View File

@ -34,3 +34,9 @@ VIRTUAL_WIDGET(codec_out0, output, 1)
VIRTUAL_WIDGET(codec_out1, output, 2) VIRTUAL_WIDGET(codec_out1, output, 2)
VIRTUAL_WIDGET(codec_in0, input, 3) VIRTUAL_WIDGET(codec_in0, input, 3)
VIRTUAL_WIDGET(codec_in1, input, 4) VIRTUAL_WIDGET(codec_in1, input, 4)
VIRTUAL_WIDGET(ssp2 Rx, input, 5)
VIRTUAL_WIDGET(ssp2 Tx, output, 6)
VIRTUAL_WIDGET(ssp0 Tx, output, 7)
VIRTUAL_WIDGET(ssp0 Rx, input, 8)
VIRTUAL_WIDGET(modem_out, output, 9)
VIRTUAL_WIDGET(modem_in, input, 10)

View File

@ -34,3 +34,9 @@ VIRTUAL_WIDGET(codec_out0, output, 1)
VIRTUAL_WIDGET(codec_out1, output, 2) VIRTUAL_WIDGET(codec_out1, output, 2)
VIRTUAL_WIDGET(codec_in0, input, 3) VIRTUAL_WIDGET(codec_in0, input, 3)
VIRTUAL_WIDGET(codec_in1, input, 4) VIRTUAL_WIDGET(codec_in1, input, 4)
VIRTUAL_WIDGET(ssp2 Rx, input, 5)
VIRTUAL_WIDGET(ssp2 Tx, output, 6)
VIRTUAL_WIDGET(ssp0 Tx, output, 7)
VIRTUAL_WIDGET(ssp0 Rx, input, 8)
VIRTUAL_WIDGET(modem_out, output, 9)
VIRTUAL_WIDGET(modem_in, input, 10)

View File

@ -93,10 +93,3 @@ DAI_CONFIG(SSP, SSP_NUM, 0, SSP2-Codec,
SSP_CLOCK(fsync, 48000, codec_slave), SSP_CLOCK(fsync, 48000, codec_slave),
SSP_TDM(2, 25, 3, 3), SSP_TDM(2, 25, 3, 3),
SSP_CONFIG_DATA(SSP, SSP_NUM, 24))) SSP_CONFIG_DATA(SSP, SSP_NUM, 24)))
VIRTUAL_WIDGET(ssp2 Rx, out_drv, 1)
VIRTUAL_WIDGET(ssp2 Tx, out_drv, 2)
VIRTUAL_WIDGET(ssp0 Tx, out_drv, 3)
VIRTUAL_WIDGET(ssp0 Rx, out_drv, 4)
VIRTUAL_DAPM_ROUTE_IN(modem_in, SSP, 0, IN, 0)
VIRTUAL_DAPM_ROUTE_OUT(modem_out, SSP, 0, OUT, 1)