Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e765e0f4 authored by Yamit Mehta's avatar Yamit Mehta
Browse files

ASoC: codecs: Add tasha mad port id for i2s



This change defines mad port_id for i2s interface
to implement SVA for cpe mode.

CRs-Fixed: 1064526
Change-Id: I9cb53c75fe7f868fbf98f72a7ff9c56370df7709
Signed-off-by: default avatarYamit Mehta <ymehta@codeaurora.org>
parent 60e10194
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3233,6 +3233,11 @@ static int tasha_codec_get_mad_port_id(struct snd_soc_codec *codec,
	if (!tasha_p)
		return -EINVAL;

	if (tasha_p->intf_type == WCD9XXX_INTERFACE_TYPE_I2C) {
		*port_id = WCD_CPE_AFE_OUT_PORT_4;
		return 0;
	}

	dai = &tasha_p->dai[AIF4_MAD_TX];
	list_for_each_entry(ch, &dai->wcd9xxx_ch_list, list) {
		if (ch->port == TASHA_TX12)