On Tue, Jul 12, 2011 at 11:04:38PM +0800, Dong Aisheng wrote:
The driver only supports playback firstly. For recording, as we have to use two saif instances to implement full duplex (playback & recording) due to hardware limitation, we need to figure out a good design to fit in ASoC.
Signed-off-by: Dong Aisheng b29396@freescale.com
Which version of the codec do you have? I have:
[ 0.370000] sgtl5000 0-000a: sgtl5000 revision 17 [ 0.370000] sgtl5000 0-000a: asoc: failed to probe CODEC sgtl5000.0-000a: -22 [ 0.380000] asoc: failed to instantiate card mxs_sgtl5000: -22
The failure is because CONFIG_REGULATOR is not set and it thus fails in the codec-driver:
#else /* CONFIG_REGULATOR */ static int ldo_regulator_register(struct snd_soc_codec *codec, struct regulator_init_data *init_data, int voltage) { return -EINVAL; }
(I can patch it to load properly, but well...)
Proper regulator support for mxs is not in mainline yet. Is that planned? How do you do it?
Regards,
Wolfram