]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fsl: p1022ds: tell the WM8776 codec driver that it's the master
authorTimur Tabi <timur@freescale.com>
Fri, 16 Mar 2012 21:32:52 +0000 (16:32 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 17 Mar 2012 21:11:16 +0000 (21:11 +0000)
commit70ac07bb633dee75ac554195b9a4d69adfa7803c
tree1b418b9421d4681ca852d420c461f5cd550caed8
parent588fb705d560cd76d435382fb25bea7349672d80
ASoC: fsl: p1022ds: tell the WM8776 codec driver that it's the master

The WM8776 codec driver requires the machine driver to set one of the
SND_SOC_DAIFMT_CBx_xxx values.  The P1022DS machine driver should be setting
SND_SOC_DAIFMT_CBM_CFM, but since that value was zero, no one noticed.

Commit 75d9ac46 ("ASoC: Allow DAI formats to be specified in the
dai_link"), however, changed the value of SND_SOC_DAIFMT_CBM_CFM from zero
to a non-zero value, which means that it now needs to be specifically set
by the machine driver.

We also set SND_SOC_DAIFMT_NB_NF, for the same reason.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/fsl/p1022_ds.c