asoc: support for audio over hdmi tx

Add support for audio over hdmi tx.

Change-Id: I4f2108fd14eb22ec4e226220787e0defe512bb5f
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Этот коммит содержится в:
Sanjana B
2020-01-20 19:31:18 +05:30
коммит произвёл Gerrit - the friendly Code Review server
родитель 127718f3d9
Коммит 7f953e1270
8 изменённых файлов: 271 добавлений и 21 удалений

Просмотреть файл

@@ -1045,6 +1045,7 @@ int afe_sizeof_cfg_cmd(u16 port_id)
ret_size = SIZEOF_CFG_CMD(afe_param_id_meta_i2s_cfg);
break;
case HDMI_RX:
case HDMI_RX_MS:
case DISPLAY_PORT_RX:
ret_size =
SIZEOF_CFG_CMD(afe_param_id_hdmi_multi_chan_audio_cfg);
@@ -5204,6 +5205,7 @@ static int __afe_port_start(u16 port_id, union afe_port_config *afe_config,
cfg_type = AFE_PARAM_ID_META_I2S_CONFIG;
break;
case HDMI_RX:
case HDMI_RX_MS:
case DISPLAY_PORT_RX:
cfg_type = AFE_PARAM_ID_HDMI_CONFIG;
break;
@@ -5453,6 +5455,7 @@ int afe_get_port_index(u16 port_id)
case MI2S_RX: return IDX_MI2S_RX;
case MI2S_TX: return IDX_MI2S_TX;
case HDMI_RX: return IDX_HDMI_RX;
case HDMI_RX_MS: return IDX_HDMI_RX_MS;
case DISPLAY_PORT_RX: return IDX_DISPLAY_PORT_RX;
case AFE_PORT_ID_PRIMARY_SPDIF_RX: return IDX_PRIMARY_SPDIF_RX;
case AFE_PORT_ID_PRIMARY_SPDIF_TX: return IDX_PRIMARY_SPDIF_TX;
@@ -5916,6 +5919,7 @@ int afe_open(u16 port_id,
cfg_type = AFE_PARAM_ID_META_I2S_CONFIG;
break;
case HDMI_RX:
case HDMI_RX_MS:
case DISPLAY_PORT_RX:
cfg_type = AFE_PARAM_ID_HDMI_CONFIG;
break;
@@ -7812,6 +7816,7 @@ int afe_validate_port(u16 port_id)
case MI2S_RX:
case MI2S_TX:
case HDMI_RX:
case HDMI_RX_MS:
case DISPLAY_PORT_RX:
case AFE_PORT_ID_PRIMARY_SPDIF_RX:
case AFE_PORT_ID_PRIMARY_SPDIF_TX: