ASoC: pcm3168a: Allow all channels in case of parallel DIN/DOUT setup
Subsystems (3)
PATCH 1/1 ASoC: pcm3168a: Allow all channels in case of parallel DIN/DOUT setup
If multi DIN/DOUT mode is selected (tdm_slots == 2) then configure the channel constraint to allow all channels.
--- sound/soc/codecs/pcm3168a.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/codecs/pcm3168a.c +4 -0
@@ -599,6 +599,10 @@ static int pcm3168a_startup(struct snd_pcm_substream *substream,SNDRV_PCM_HW_PARAM_SAMPLE_BITS , sample_min, 32); +/* Allow all channels in multi DIN/DOUT mode */ +if (pcm3168a->tdm_slots ==2 ) + channel_max = channel_maxs[tx]; +snd_pcm_hw_constraint_minmax (substream->runtime,SNDRV_PCM_HW_PARAM_CHANNELS ,2 , channel_max);
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Mark Brown
maintainerApplied "ASoC: pcm3168a: Allow all channels in case of parallel DIN/DOUT setup" to the asoc tree
The patch
ASoC: pcm3168a: Allow all channels in case of parallel DIN/DOUT setup
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
f2c8b57014038ae064a0f918f939af510f0aed02Mon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Thu, 25 Jul 2019 11:33:21 +0300
Subject: [PATCH] ASoC: pcm3168a: Allow all channels in case of parallel
DIN/DOUT setup
If multi DIN/DOUT mode is selected (tdm_slots == 2) then configure the channel constraint to allow all channels.
--- sound/soc/codecs/pcm3168a.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/codecs/pcm3168a.c +4 -0
@@ -599,6 +599,10 @@ static int pcm3168a_startup(struct snd_pcm_substream *substream,SNDRV_PCM_HW_PARAM_SAMPLE_BITS , sample_min, 32); +/* Allow all channels in multi DIN/DOUT mode */ +if (pcm3168a->tdm_slots ==2 ) + channel_max = channel_maxs[tx]; +snd_pcm_hw_constraint_minmax (substream->runtime,SNDRV_PCM_HW_PARAM_CHANNELS ,2 , channel_max);
Signature · 1 line
2.20.1