Unverified Commit b80d5a0c authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown
Browse files

ASoC: amd: acp: Add I2S TDM support for acp7.0 platform

parent b24df4fa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mas
		}
		break;
	case ACP63_DEV:
	case ACP70_DEV:
		switch (slots) {
		case 1 ... 31:
			no_of_slots = slots;
@@ -167,6 +168,7 @@ static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mas
					FRM_LEN | (slots << 15) | (slot_len << 18);
			break;
		case ACP63_DEV:
		case ACP70_DEV:
			if (tx_mask && stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
				adata->tdm_tx_fmt[stream->dai_id - 1] =
						FRM_LEN | (slots << 13) | (slot_len << 18);