mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra: Single cpu multi codec dai support
Add driver support for single cpu dai connected to multiple codec dai. Tested on Concord board with one DSPK cpu dai connected to two TAS2552 codec dai present on Super-io module connected to 40 pin header. Bug 3772918 Change-Id: I6cf33c2a4736dc27a44b5db136ebabe88f55ab65 Signed-off-by: Mohan Kumar <mkumard@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2795021 (cherry picked from commit 8e2485e8ff53581acb4aa6fae739114490c77238) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2815755 Reviewed-by: Sameer Pujar <spujar@nvidia.com> Reviewed-by: Sharad Gupta <sharadg@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
1cd9efe47d
commit
dc9fe67430
@@ -446,38 +446,6 @@ static struct snd_soc_dai_driver tegra186_dspk_dais[] = {
|
||||
.ops = &tegra186_dspk_dai_ops,
|
||||
.symmetric_rate = 1,
|
||||
},
|
||||
/* The second DAI is used when the output of the DSPK is connected
|
||||
* to two mono codecs. When the output of the DSPK is connected to
|
||||
* a single stereo codec, then only the first DAI should be used.
|
||||
*/
|
||||
{
|
||||
.name = "CIF2",
|
||||
.playback = {
|
||||
.stream_name = "CIF2-Playback",
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rates = SNDRV_PCM_RATE_8000_48000,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S32_LE,
|
||||
},
|
||||
},
|
||||
{
|
||||
.name = "DAP2",
|
||||
#if IS_ENABLED(CONFIG_TEGRA_DPCM)
|
||||
.playback = {
|
||||
.stream_name = "DAP2-Playback",
|
||||
#else
|
||||
.capture = {
|
||||
.stream_name = "DAP2-Capture",
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rates = SNDRV_PCM_RATE_8000_48000,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S32_LE,
|
||||
},
|
||||
.symmetric_rate = 1,
|
||||
},
|
||||
{
|
||||
.name = "DUMMY_SINK",
|
||||
.playback = {
|
||||
@@ -493,7 +461,6 @@ static struct snd_soc_dai_driver tegra186_dspk_dais[] = {
|
||||
|
||||
static const struct snd_soc_dapm_widget tegra186_dspk_widgets[] = {
|
||||
SND_SOC_DAPM_AIF_IN("RX", NULL, 0, TEGRA186_DSPK_ENABLE, 0, 0),
|
||||
SND_SOC_DAPM_AIF_OUT("DAP2 TX", NULL, 0, 0, 0, 0),
|
||||
SND_SOC_DAPM_SPK("SPK", NULL),
|
||||
};
|
||||
|
||||
@@ -507,8 +474,6 @@ static const struct snd_soc_dapm_route tegra186_dspk_routes[] = {
|
||||
#else
|
||||
{ "RX", NULL, "CIF-Playback" },
|
||||
{ "DAP-Capture", NULL, "RX" },
|
||||
{ "DAP2 TX", NULL, "CIF2-Playback" },
|
||||
{ "DAP2-Capture", NULL, "DAP2 TX" },
|
||||
{ "SPK", NULL, "Dummy-Playback" },
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user