Commit f155181d authored by Akshu Agrawal's avatar Akshu Agrawal Committed by Mark Brown

ASoC: amd: Use single dai for da7219 playback and capture

BT I2S is a bi-directional dai, we will use the same
cpu dai for playback and capture.

TEST=aplay -D hw:0,0 -vv <file>
arecord -D hw:0,0 -f dat -d 5 -vv <file>
Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 17aa9521
...@@ -124,8 +124,8 @@ static struct snd_soc_ops cz_da7219_cap_ops = { ...@@ -124,8 +124,8 @@ static struct snd_soc_ops cz_da7219_cap_ops = {
static struct snd_soc_dai_link cz_dai_7219_98357[] = { static struct snd_soc_dai_link cz_dai_7219_98357[] = {
{ {
.name = "amd-da7219-play", .name = "amd-da7219-play-cap",
.stream_name = "Playback", .stream_name = "Playback and Capture",
.platform_name = "acp_audio_dma.0.auto", .platform_name = "acp_audio_dma.0.auto",
.cpu_dai_name = "designware-i2s.3.auto", .cpu_dai_name = "designware-i2s.3.auto",
.codec_dai_name = "da7219-hifi", .codec_dai_name = "da7219-hifi",
...@@ -134,16 +134,6 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { ...@@ -134,16 +134,6 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
| SND_SOC_DAIFMT_CBM_CFM, | SND_SOC_DAIFMT_CBM_CFM,
.init = cz_da7219_init, .init = cz_da7219_init,
.dpcm_playback = 1, .dpcm_playback = 1,
},
{
.name = "amd-da7219-cap",
.stream_name = "Capture",
.platform_name = "acp_audio_dma.0.auto",
.cpu_dai_name = "designware-i2s.4.auto",
.codec_dai_name = "da7219-hifi",
.codec_name = "i2c-DLGS7219:00",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
| SND_SOC_DAIFMT_CBM_CFM,
.dpcm_capture = 1, .dpcm_capture = 1,
.ops = &cz_da7219_cap_ops, .ops = &cz_da7219_cap_ops,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment