Skip to content

Commit a77e6c1

Browse files
committed
ASoC: remove dpcm_xxx flags
Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>: Now, we don't need to use dpcm_playback/capture flags for DPCM since v6.11, and thus we can use playback/capture_only flags instead too for DPCM, which is same as non-DPCM. Let's remove dpcm_playback/capture flags, and use playback/capture_only flags instead. [Before] [After] dpcm_playback = 1; /* no setting is needed */ dpcm_capture = 1; dpcm_playback = 1; playback_only = 1; dpcm_capture = 0; dpcm_playback = 0; capture_only = 1; dpcm_capture = 1; And then, because no-one uses dpcm_xxx flags, we don't need to have the code for both DPCM and non-DPCM. These can be handled by same code.
2 parents 9c2e48e + a6ff857 commit a77e6c1

68 files changed

Lines changed: 318 additions & 584 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/sound/soc/dpcm.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,13 @@ FE DAI links are defined as follows :-
157157
.codec_dai_name = "snd-soc-dummy-dai",
158158
.dynamic = 1,
159159
.trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
160-
.dpcm_playback = 1,
161160
},
162161
.....< other FE and BE DAI links here >
163162
};
164163

165164
This FE DAI link is pretty similar to a regular DAI link except that we also
166-
set the DAI link to a DPCM FE with the ``dynamic = 1``. The supported FE stream
167-
directions should also be set with the ``dpcm_playback`` and ``dpcm_capture``
168-
flags. There is also an option to specify the ordering of the trigger call for
165+
set the DAI link to a DPCM FE with the ``dynamic = 1``.
166+
There is also an option to specify the ordering of the trigger call for
169167
each FE. This allows the ASoC core to trigger the DSP before or after the other
170168
components (as some DSPs have strong requirements for the ordering DAI/DSP
171169
start and stop sequences).
@@ -189,15 +187,12 @@ The BE DAIs are configured as follows :-
189187
.ignore_pmdown_time = 1,
190188
.be_hw_params_fixup = hswult_ssp0_fixup,
191189
.ops = &haswell_ops,
192-
.dpcm_playback = 1,
193-
.dpcm_capture = 1,
194190
},
195191
.....< other BE DAI links here >
196192
};
197193

198194
This BE DAI link connects DAI0 to the codec (in this case RT5460 AIF1). It sets
199-
the ``no_pcm`` flag to mark it has a BE and sets flags for supported stream
200-
directions using ``dpcm_playback`` and ``dpcm_capture`` above.
195+
the ``no_pcm`` flag to mark it has a BE.
201196

202197
The BE has also flags set for ignoring suspend and PM down time. This allows
203198
the BE to work in a hostless mode where the host CPU is not transferring data

include/sound/soc.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,6 @@ struct snd_soc_dai_link {
820820
/* This DAI link can route to other DAI links at runtime (Frontend)*/
821821
unsigned int dynamic:1;
822822

823-
/* REMOVE ME */
824-
/* DPCM capture and Playback support */
825-
unsigned int dpcm_capture:1;
826-
unsigned int dpcm_playback:1;
827-
828823
/* DPCM used FE & BE merged format */
829824
unsigned int dpcm_merged_format:1;
830825
/* DPCM used FE & BE merged channel */

sound/soc/amd/acp-da7219-max98357a.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
542542
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
543543
| SND_SOC_DAIFMT_CBP_CFP,
544544
.init = cz_da7219_init,
545-
.dpcm_playback = 1,
545+
.playback_only = 1,
546546
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
547547
.ops = &cz_da7219_play_ops,
548548
SND_SOC_DAILINK_REG(designware1, dlgs, platform),
@@ -552,7 +552,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
552552
.stream_name = "Capture",
553553
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
554554
| SND_SOC_DAIFMT_CBP_CFP,
555-
.dpcm_capture = 1,
555+
.capture_only = 1,
556556
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
557557
.ops = &cz_da7219_cap_ops,
558558
SND_SOC_DAILINK_REG(designware2, dlgs, platform),
@@ -562,7 +562,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
562562
.stream_name = "HiFi Playback",
563563
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
564564
| SND_SOC_DAIFMT_CBP_CFP,
565-
.dpcm_playback = 1,
565+
.playback_only = 1,
566566
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
567567
.ops = &cz_max_play_ops,
568568
SND_SOC_DAILINK_REG(designware3, mx, platform),
@@ -573,7 +573,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
573573
.stream_name = "DMIC0 Capture",
574574
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
575575
| SND_SOC_DAIFMT_CBP_CFP,
576-
.dpcm_capture = 1,
576+
.capture_only = 1,
577577
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
578578
.ops = &cz_dmic0_cap_ops,
579579
SND_SOC_DAILINK_REG(designware3, adau, platform),
@@ -584,7 +584,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = {
584584
.stream_name = "DMIC1 Capture",
585585
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
586586
| SND_SOC_DAIFMT_CBP_CFP,
587-
.dpcm_capture = 1,
587+
.capture_only = 1,
588588
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
589589
.ops = &cz_dmic1_cap_ops,
590590
SND_SOC_DAILINK_REG(designware2, adau, platform),
@@ -598,7 +598,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = {
598598
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
599599
| SND_SOC_DAIFMT_CBP_CFP,
600600
.init = cz_rt5682_init,
601-
.dpcm_playback = 1,
601+
.playback_only = 1,
602602
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
603603
.ops = &cz_rt5682_play_ops,
604604
SND_SOC_DAILINK_REG(designware1, rt5682, platform),
@@ -608,7 +608,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = {
608608
.stream_name = "Capture",
609609
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
610610
| SND_SOC_DAIFMT_CBP_CFP,
611-
.dpcm_capture = 1,
611+
.capture_only = 1,
612612
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
613613
.ops = &cz_rt5682_cap_ops,
614614
SND_SOC_DAILINK_REG(designware2, rt5682, platform),
@@ -618,7 +618,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = {
618618
.stream_name = "HiFi Playback",
619619
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
620620
| SND_SOC_DAIFMT_CBP_CFP,
621-
.dpcm_playback = 1,
621+
.playback_only = 1,
622622
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
623623
.ops = &cz_rt5682_max_play_ops,
624624
SND_SOC_DAILINK_REG(designware3, mx, platform),
@@ -629,7 +629,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = {
629629
.stream_name = "DMIC0 Capture",
630630
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
631631
| SND_SOC_DAIFMT_CBP_CFP,
632-
.dpcm_capture = 1,
632+
.capture_only = 1,
633633
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
634634
.ops = &cz_rt5682_dmic0_cap_ops,
635635
SND_SOC_DAILINK_REG(designware3, adau, platform),
@@ -640,7 +640,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = {
640640
.stream_name = "DMIC1 Capture",
641641
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
642642
| SND_SOC_DAIFMT_CBP_CFP,
643-
.dpcm_capture = 1,
643+
.capture_only = 1,
644644
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
645645
.ops = &cz_rt5682_dmic1_cap_ops,
646646
SND_SOC_DAILINK_REG(designware2, adau, platform),

sound/soc/amd/acp-es8336.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ static struct snd_soc_dai_link st_dai_es8336[] = {
150150
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
151151
| SND_SOC_DAIFMT_CBP_CFP,
152152
.trigger_stop = SND_SOC_TRIGGER_ORDER_LDC,
153-
.dpcm_capture = 1,
154-
.dpcm_playback = 1,
155153
.init = st_es8336_init,
156154
.ops = &st_es8336_ops,
157155
SND_SOC_DAILINK_REG(designware1, codec, platform),

sound/soc/amd/acp/acp-mach-common.c

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
14071407
links[i].num_cpus = ARRAY_SIZE(sof_sp);
14081408
links[i].platforms = sof_component;
14091409
links[i].num_platforms = ARRAY_SIZE(sof_component);
1410-
links[i].dpcm_playback = 1;
1411-
links[i].dpcm_capture = 1;
14121410
links[i].nonatomic = true;
14131411
links[i].no_pcm = 1;
14141412
if (!drv_data->hs_codec_id) {
@@ -1444,8 +1442,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
14441442
links[i].num_cpus = ARRAY_SIZE(sof_hs);
14451443
links[i].platforms = sof_component;
14461444
links[i].num_platforms = ARRAY_SIZE(sof_component);
1447-
links[i].dpcm_playback = 1;
1448-
links[i].dpcm_capture = 1;
14491445
links[i].nonatomic = true;
14501446
links[i].no_pcm = 1;
14511447
if (!drv_data->hs_codec_id) {
@@ -1480,7 +1476,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
14801476
}
14811477
links[i].platforms = sof_component;
14821478
links[i].num_platforms = ARRAY_SIZE(sof_component);
1483-
links[i].dpcm_playback = 1;
1479+
links[i].playback_only = 1;
14841480
links[i].nonatomic = true;
14851481
links[i].no_pcm = 1;
14861482
if (!drv_data->amp_codec_id) {
@@ -1512,7 +1508,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
15121508
links[i].num_cpus = ARRAY_SIZE(sof_hs_virtual);
15131509
links[i].platforms = sof_component;
15141510
links[i].num_platforms = ARRAY_SIZE(sof_component);
1515-
links[i].dpcm_playback = 1;
1511+
links[i].playback_only = 1;
15161512
links[i].nonatomic = true;
15171513
links[i].no_pcm = 1;
15181514
if (!drv_data->amp_codec_id) {
@@ -1527,7 +1523,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
15271523
links[i].init = acp_card_maxim_init;
15281524
}
15291525
if (drv_data->amp_codec_id == MAX98388) {
1530-
links[i].dpcm_capture = 1;
1526+
links[i].playback_only = 0;
15311527
links[i].codecs = max98388;
15321528
links[i].num_codecs = ARRAY_SIZE(max98388);
15331529
links[i].ops = &acp_max98388_ops;
@@ -1553,8 +1549,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
15531549
links[i].num_cpus = ARRAY_SIZE(sof_bt);
15541550
links[i].platforms = sof_component;
15551551
links[i].num_platforms = ARRAY_SIZE(sof_component);
1556-
links[i].dpcm_playback = 1;
1557-
links[i].dpcm_capture = 1;
15581552
links[i].nonatomic = true;
15591553
links[i].no_pcm = 1;
15601554
if (!drv_data->bt_codec_id) {
@@ -1575,7 +1569,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
15751569
links[i].num_cpus = ARRAY_SIZE(sof_dmic);
15761570
links[i].platforms = sof_component;
15771571
links[i].num_platforms = ARRAY_SIZE(sof_component);
1578-
links[i].dpcm_capture = 1;
1572+
links[i].capture_only = 1;
15791573
links[i].nonatomic = true;
15801574
links[i].no_pcm = 1;
15811575
}
@@ -1614,8 +1608,6 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
16141608
links[i].num_cpus = ARRAY_SIZE(i2s_sp);
16151609
links[i].platforms = platform_component;
16161610
links[i].num_platforms = ARRAY_SIZE(platform_component);
1617-
links[i].dpcm_playback = 1;
1618-
links[i].dpcm_capture = 1;
16191611
if (!drv_data->hs_codec_id) {
16201612
/* Use dummy codec if codec id not specified */
16211613
links[i].codecs = &snd_soc_dummy_dlc;
@@ -1663,8 +1655,6 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
16631655
break;
16641656
}
16651657

1666-
links[i].dpcm_playback = 1;
1667-
links[i].dpcm_capture = 1;
16681658
if (!drv_data->hs_codec_id) {
16691659
/* Use dummy codec if codec id not specified */
16701660
links[i].codecs = &snd_soc_dummy_dlc;
@@ -1692,7 +1682,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
16921682
links[i].num_cpus = ARRAY_SIZE(i2s_sp);
16931683
links[i].platforms = platform_component;
16941684
links[i].num_platforms = ARRAY_SIZE(platform_component);
1695-
links[i].dpcm_playback = 1;
1685+
links[i].playback_only = 1;
16961686
if (!drv_data->amp_codec_id) {
16971687
/* Use dummy codec if codec id not specified */
16981688
links[i].codecs = &snd_soc_dummy_dlc;
@@ -1735,7 +1725,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
17351725
break;
17361726
}
17371727

1738-
links[i].dpcm_playback = 1;
1728+
links[i].playback_only = 1;
17391729
if (!drv_data->amp_codec_id) {
17401730
/* Use dummy codec if codec id not specified */
17411731
links[i].codecs = &snd_soc_dummy_dlc;
@@ -1792,7 +1782,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
17921782
break;
17931783
}
17941784
links[i].ops = &acp_card_dmic_ops;
1795-
links[i].dpcm_capture = 1;
1785+
links[i].capture_only = 1;
17961786
}
17971787

17981788
card->dai_link = links;

sound/soc/amd/acp3x-rt5682-max9836.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ static struct snd_soc_dai_link acp3x_dai[] = {
317317
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
318318
| SND_SOC_DAIFMT_CBP_CFP,
319319
.init = acp3x_5682_init,
320-
.dpcm_playback = 1,
321-
.dpcm_capture = 1,
322320
.ops = &acp3x_5682_ops,
323321
SND_SOC_DAILINK_REG(acp3x_i2s, rt5682, platform),
324322
},
@@ -327,7 +325,7 @@ static struct snd_soc_dai_link acp3x_dai[] = {
327325
.stream_name = "HiFi Playback",
328326
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
329327
| SND_SOC_DAIFMT_CBC_CFC,
330-
.dpcm_playback = 1,
328+
.playback_only = 1,
331329
.ops = &acp3x_max_play_ops,
332330
.cpus = acp3x_bt,
333331
.num_cpus = ARRAY_SIZE(acp3x_bt),
@@ -339,7 +337,7 @@ static struct snd_soc_dai_link acp3x_dai[] = {
339337
.stream_name = "Capture DMIC0",
340338
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
341339
| SND_SOC_DAIFMT_CBC_CFC,
342-
.dpcm_capture = 1,
340+
.capture_only = 1,
343341
.ops = &acp3x_ec_cap0_ops,
344342
SND_SOC_DAILINK_REG(acp3x_bt, cros_ec, platform),
345343
},

sound/soc/amd/vangogh/acp5x-mach.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ static struct snd_soc_dai_link acp5x_8821_35l41_dai[] = {
276276
.dai_fmt = SND_SOC_DAIFMT_I2S |
277277
SND_SOC_DAIFMT_NB_NF |
278278
SND_SOC_DAIFMT_CBC_CFC,
279-
.dpcm_playback = 1,
280-
.dpcm_capture = 1,
281279
.ops = &acp5x_8821_ops,
282280
.init = acp5x_8821_init,
283281
SND_SOC_DAILINK_REG(acp5x_i2s, nau8821, platform),
@@ -288,7 +286,6 @@ static struct snd_soc_dai_link acp5x_8821_35l41_dai[] = {
288286
.dai_fmt = SND_SOC_DAIFMT_I2S |
289287
SND_SOC_DAIFMT_NB_NF |
290288
SND_SOC_DAIFMT_CBC_CFC,
291-
.dpcm_playback = 1,
292289
.playback_only = 1,
293290
.ops = &acp5x_cs35l41_play_ops,
294291
SND_SOC_DAILINK_REG(acp5x_bt, cs35l41, platform),
@@ -375,8 +372,6 @@ static struct snd_soc_dai_link acp5x_8821_98388_dai[] = {
375372
.dai_fmt = SND_SOC_DAIFMT_I2S |
376373
SND_SOC_DAIFMT_NB_NF |
377374
SND_SOC_DAIFMT_CBC_CFC,
378-
.dpcm_playback = 1,
379-
.dpcm_capture = 1,
380375
.ops = &acp5x_8821_ops,
381376
.init = acp5x_8821_init,
382377
SND_SOC_DAILINK_REG(acp5x_i2s, nau8821, platform),
@@ -387,7 +382,6 @@ static struct snd_soc_dai_link acp5x_8821_98388_dai[] = {
387382
.dai_fmt = SND_SOC_DAIFMT_I2S |
388383
SND_SOC_DAIFMT_NB_NF |
389384
SND_SOC_DAIFMT_CBC_CFC,
390-
.dpcm_playback = 1,
391385
.playback_only = 1,
392386
.ops = &acp5x_max98388_play_ops,
393387
SND_SOC_DAILINK_REG(acp5x_bt, max98388, platform),

sound/soc/fsl/fsl-asoc-card.c

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,13 @@ static const struct snd_soc_dai_link fsl_asoc_card_dai[] = {
317317
{
318318
.name = "HiFi-ASRC-FE",
319319
.stream_name = "HiFi-ASRC-FE",
320-
.dpcm_playback = 1,
321-
.dpcm_capture = 1,
322320
.dynamic = 1,
323321
},
324322
{
325323
.name = "HiFi-ASRC-BE",
326324
.stream_name = "HiFi-ASRC-BE",
327325
.be_hw_params_fixup = be_hw_params_fixup,
328326
.ops = &fsl_asoc_card_ops,
329-
.dpcm_playback = 1,
330-
.dpcm_capture = 1,
331327
.no_pcm = 1,
332328
},
333329
};
@@ -504,13 +500,13 @@ static int fsl_asoc_card_spdif_init(struct device_node *codec_np[],
504500
}
505501

506502
if (priv->dai_link[0].playback_only) {
507-
priv->dai_link[1].dpcm_capture = false;
508-
priv->dai_link[2].dpcm_capture = false;
503+
priv->dai_link[1].playback_only = true;
504+
priv->dai_link[2].playback_only = true;
509505
priv->card.dapm_routes = audio_map_tx;
510506
priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx);
511507
} else if (priv->dai_link[0].capture_only) {
512-
priv->dai_link[1].dpcm_playback = false;
513-
priv->dai_link[2].dpcm_playback = false;
508+
priv->dai_link[1].capture_only = true;
509+
priv->dai_link[2].capture_only = true;
514510
priv->card.dapm_routes = audio_map_rx;
515511
priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_rx);
516512
}
@@ -764,8 +760,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
764760
} else if (of_device_is_compatible(np, "fsl,imx-audio-tlv320aic31xx")) {
765761
codec_dai_name[0] = "tlv320dac31xx-hifi";
766762
priv->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS;
767-
priv->dai_link[1].dpcm_capture = 0;
768-
priv->dai_link[2].dpcm_capture = 0;
763+
priv->dai_link[1].playback_only = 1;
764+
priv->dai_link[2].playback_only = 1;
769765
priv->cpu_priv.sysclk_dir[TX] = SND_SOC_CLOCK_OUT;
770766
priv->cpu_priv.sysclk_dir[RX] = SND_SOC_CLOCK_OUT;
771767
priv->card.dapm_routes = audio_map_tx;
@@ -791,15 +787,15 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
791787
priv->dai_fmt = SND_SOC_DAIFMT_LEFT_J |
792788
SND_SOC_DAIFMT_CBC_CFC |
793789
SND_SOC_DAIFMT_NB_NF;
794-
priv->dai_link[1].dpcm_capture = 0;
795-
priv->dai_link[2].dpcm_capture = 0;
790+
priv->dai_link[1].playback_only = 1;
791+
priv->dai_link[2].playback_only = 1;
796792
priv->card.dapm_routes = audio_map_tx;
797793
priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx);
798794
} else if (of_device_is_compatible(np, "fsl,imx-audio-wm8524")) {
799795
codec_dai_name[0] = "wm8524-hifi";
800796
priv->dai_fmt |= SND_SOC_DAIFMT_CBC_CFC;
801-
priv->dai_link[1].dpcm_capture = 0;
802-
priv->dai_link[2].dpcm_capture = 0;
797+
priv->dai_link[1].playback_only = 1;
798+
priv->dai_link[2].playback_only = 1;
803799
priv->cpu_priv.slot_width = 32;
804800
priv->card.dapm_routes = audio_map_tx;
805801
priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx);

0 commit comments

Comments
 (0)