[alsa-devel] [PATCH] ASoC: Automatically set TDM if needed on pxa-ssp and allow frame width override when using TDM.

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Jun 10 16:47:14 CEST 2009

On Wed, Jun 10, 2009 at 11:39:54AM -0300, Daniel Ribeiro wrote:
> Em Qua, 2009-06-10 às 13:18 +0100, Mark Brown escreveu:

> > This is wrong, the WM9081 is a DAC only part so it should be paying
> > attention to the RX mask, not the TX one.  We also need to handle the
> > sample size here.

> Ok, but I dont know how to handle slot_width for wm9081. Is a FIXME
> comment here enough for a first version? Its hard for me to get this
> working correctly on wm9081 as I dont have such hardware and PCAP2 only
> supports 16bits slots.

The sample size code from the hw_params() function should be copied in
here and the sample size remembered in the wm9081_priv structure.  Then
in hw_params() the sample size would get ignored if one had been
configured via set_tdm_slot().  A size of zero should be supported there
to allow dropping of TDM mode.

More information about the Alsa-devel mailing list