Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mediatek: mt8188: DPCM used FE and BE merged parameters

To ensure that DPCM takes into account the backend hardware limitations
when user space queries the hw_params of a device, we need to add
dpcm_merged_format, dpcm_merged_chan, and dpcm_merged_rate to the FE
dai_links.

This patch includes only stereo FE dai_links, since multi-channel FEs
may be reserved for specific purposes. Therefore, it may not be
appropriate to consider BE conditions.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20230706064123.29790-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Trevor Wu and committed by
Mark Brown
30019d22 4edc07fc

+15
+15
sound/soc/mediatek/mt8188/mt8188-mt6359.c
··· 723 723 }, 724 724 .dynamic = 1, 725 725 .dpcm_playback = 1, 726 + .dpcm_merged_chan = 1, 727 + .dpcm_merged_rate = 1, 728 + .dpcm_merged_format = 1, 726 729 SND_SOC_DAILINK_REG(playback2), 727 730 }, 728 731 [DAI_LINK_DL3_FE] = { ··· 737 734 }, 738 735 .dynamic = 1, 739 736 .dpcm_playback = 1, 737 + .dpcm_merged_chan = 1, 738 + .dpcm_merged_rate = 1, 739 + .dpcm_merged_format = 1, 740 740 SND_SOC_DAILINK_REG(playback3), 741 741 }, 742 742 [DAI_LINK_DL6_FE] = { ··· 751 745 }, 752 746 .dynamic = 1, 753 747 .dpcm_playback = 1, 748 + .dpcm_merged_chan = 1, 749 + .dpcm_merged_rate = 1, 750 + .dpcm_merged_format = 1, 754 751 SND_SOC_DAILINK_REG(playback6), 755 752 }, 756 753 [DAI_LINK_DL7_FE] = { ··· 842 833 }, 843 834 .dynamic = 1, 844 835 .dpcm_capture = 1, 836 + .dpcm_merged_chan = 1, 837 + .dpcm_merged_rate = 1, 838 + .dpcm_merged_format = 1, 845 839 SND_SOC_DAILINK_REG(capture4), 846 840 }, 847 841 [DAI_LINK_UL5_FE] = { ··· 856 844 }, 857 845 .dynamic = 1, 858 846 .dpcm_capture = 1, 847 + .dpcm_merged_chan = 1, 848 + .dpcm_merged_rate = 1, 849 + .dpcm_merged_format = 1, 859 850 SND_SOC_DAILINK_REG(capture5), 860 851 }, 861 852 [DAI_LINK_UL6_FE] = {