Skip to contentSkip to conversation

Integrate WM8974 codec with AM1808 processor

DISCUSSION Sangilikumar 1 participant 1 message Jul 8, 2014

lore
Share & tools
lore
#0 lore raw

Hello Engineers

I'm working with TI's AM1808 ARM9 processor. My design in based on
OMAP-L138 LCDK board. Here i replaced the TLV320AIC310 codec with WM8974 mono codec.
Added the codec driver in board file and registered the sound card by

static struct snd_soc_dai_link da850_evm_dai = {
	.name = "TLV320AIC3X",
	.stream_name = "AIC3X",
	.cpu_dai_name= "davinci-mcasp.0",
	.codec_dai_name = "wm8974-hifi",
	.codec_name = "wm8974-codec.1-001a",
	.platform_name = "davinci-pcm-audio",
	.init = evm_aic3x_init,
	.ops = &evm_ops,
};

But got some errors

Sound card registered successfully but i got some errors

wm8974-codec 1-001a: Failed to add route HPLOUT->Headphone Jack wm8974-codec 1-001a: dapm: unknown pin MONO_LOUT wm8974-codec 1-001a: dapm: unknown pin HPLCOM wm8974-codec 1-001a: dapm: unknown pin HPRCOM
asoc: wm8974-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: DA850/OMAP-L138 EVM
TCP cubic registered
....

ALSA: Restoring mixer settings...
Configuring network interfaces... Found hardware: "DA850_OMAP-L138" "" "" "" ""
Hardware is initialized using a generic method /usr/sbin/alsactl: set_control:1267: failed to obtain info for control #1 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #2 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #3 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #4 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #5 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #6 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #7 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #8 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #9 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #10 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #11 (No such file or directory)
/usr/sbin/alsactl: set_control:1267: failed to obtain info for control #12 (No such file or directory)
davinci_mdio davinci_mdio.0: resetting idled controller

root@omapl138-lcdk:/aud# speaker-test

speaker-test 1.0.24.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz) Buffer size range from 128 to 32768
Period size range asoc: machine hw_params failed from 8 to 2048
Using max buffer size 32768
Periods = 4
Unable to set hw params for playback: Invalid argument Setting of hwparams failed: Invalid argument root@omapl138-lcdk:/aud#

Please let me know what are the changes i need to do in Linux files and drivers.