summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm3168a.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2019-08-12 12:52:26 +0300
committerMark Brown <broonie@kernel.org>2019-08-12 16:08:36 +0300
commit6fa4e0cae684d268d309d1b1f929d52e3df5649c (patch)
treed026959cfdc0846fe1f30ea32c4cb55c484becf3 /sound/soc/codecs/pcm3168a.c
parentabe51c351827e0086dad079dfe02918fecdf4830 (diff)
downloadlinux-6fa4e0cae684d268d309d1b1f929d52e3df5649c.tar.xz
ASoC: pcm3168a: Allow reconfiguration of tdm_slots and slot_width
When using right_j format and the codec is slave it can support 16bit format, but only if slot_width == 16, in the same DAI mode the 24 bit audio can work with 24 or 32 slot_width. Because of this, the codec and CPU needs to be reconfigured when the sample format changes. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20190812095226.18870-3-peter.ujfalusi@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm3168a.c')
-rw-r--r--sound/soc/codecs/pcm3168a.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index 75fa8e9ee894..50ed86d45c26 100644
--- a/sound/soc/codecs/pcm3168a.c
+++ b/sound/soc/codecs/pcm3168a.c
@@ -402,18 +402,6 @@ static int pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
return -EINVAL;
}
- if (io_params->tdm_slots && io_params->tdm_slots != slots) {
- dev_err(component->dev, "Not matching slots %d vs %d\n",
- io_params->tdm_slots, slots);
- return -EINVAL;
- }
-
- if (io_params->slot_width && io_params->slot_width != slot_width) {
- dev_err(component->dev, "Not matching slot_width %d vs %d\n",
- io_params->slot_width, slot_width);
- return -EINVAL;
- }
-
io_params->tdm_slots = slots;
io_params->slot_width = slot_width;
/* Ignore the not relevant mask for the DAI/direction */