mbox series

[0/2] ASoC: pcm3168a: Enable multiple digital port usage

Message ID 20190620092656.14759-1-peter.ujfalusi@ti.com (mailing list archive)
Headers show
Series ASoC: pcm3168a: Enable multiple digital port usage | expand

Message

Peter Ujfalusi June 20, 2019, 9:26 a.m. UTC
Hi,

On my board the pcm3168a's DIN1/2/3/4 and DOUT1/2/3 is connected to separate
McASP serializers.
I can run the audio in DIN1/DOUT1 mode (DSP_A, and switching between TDM and
normal mode), but I need to run the codec in multi DIN/DOUT mode which was not
possible as the driver is hardwired to DIN1/DOUT1 mode.

Use the set_tdm_slots we get information on the number of slots per FS so we can
use this to decide if we need to use multiple digital ports in parallel or to
use single ones in TDM mode.

The default mode remains DIN1/DOUT1.

Regards,
Peter
---
Peter Ujfalusi (2):
  ASoC: pcm3168a: Rename min_frame_size to slot_width
  ASoC: pcm3168a: Add support for multi DIN/DOUT with TDM slots
    parameter

 sound/soc/codecs/pcm3168a.c | 41 ++++++++++++++++++++++++++-----------
 1 file changed, 29 insertions(+), 12 deletions(-)