18 Dec
2013
18 Dec
'13
7:59 p.m.
On Thu, Dec 12, 2013 at 06:44:45PM +0800, Nicolin Chen wrote:
+/**
- fsl_ssi_set_dai_tdm_slot - set TDM slot number
- Note: This function can be only called when using SSI as DAI master
- */
+static int fsl_ssi_set_dai_tdm_slot(struct snd_soc_dai *cpu_dai, u32 tx_mask,
u32 rx_mask, int slots, int slot_width)
+{
- struct fsl_ssi_private *ssi_private = snd_soc_dai_get_drvdata(cpu_dai);
- struct ccsr_ssi __iomem *ssi = ssi_private->ssi;
- u32 val;
I'm a bit concernred about what this is for and why it's required - is it something that machine drivers have to call and if it is shouldn't the driver be defaulting to a sensible configuration?