Re: [alsa-devel] ALSA SOC Driver (mxs-wm8753)
Hi there
I am attempting to configure a Wolfson WM8753 on a Ka-Ro TX28S, I was wondering if you had any success managing this and if you could give me some pointers. Currently, I think my device tree may be wrong. I am getting this message on bootup:
mxs-wm8753 sounds.12: ASoC: CODEC DAI wm8753 not registered
Any help would be greatly appreciated Many Thanks Kevin Startup A.W. Communication Systems Ltd. email: kevin@awcsl.commailto:kevin@awcsl.com Tel: +44(0)1697 748717 Fax: +44(0)1697 748778
A.W. Communication Systems Ltd VAT No. GB 827 4389 00 Registered No. 4891652 Registered Office Crook Barn, The Crook, Roweltown, Carlisle, UK
On Tue, Jul 15, 2014 at 09:14:31AM +0000, Kevin Startup wrote:
Hi there
I am attempting to configure a Wolfson WM8753 on a Ka-Ro TX28S, I was wondering if you had any success managing this and if you could give me some pointers. Currently, I think my device tree may be wrong. I am getting this message on bootup:
mxs-wm8753 sounds.12: ASoC: CODEC DAI wm8753 not registered
It does indeed sound like your DT is wrong. "wm8753" is not the name of any of the DAIs on the device. The two DAIs are called "wm8753-hifi" and "wm8753-voice".
Thanks, Charles
That's great info, thanks very much. My DT looks like this, inside sound{} I have:
compatible = "fs,imx28-tx28-wm8753", "fsl,mxs-audio-wm8753"; model = "wm8753"; saif-controllers = <&saif0 &saif1>; audio-controllers = <&i2c0>; audio-code = <&wm8753>;
Inside i2c0{} I have:
wm8753: wm8753@1a { Compatible = "wlf,wm8753"; reg = <0x1a>;
I have tried changing model to "wm8753-voice" but still get the same error.
Am I changing it in the wrong place? Or do I need another setting?
I'm very much a beginner at this DT stiff and also configuring and using sound devices so any info you can supply will be of great help.
Many Thanks Kevin Startup A.W. Communication Systems Ltd. email: kevin@awcsl.com Tel: +44(0)1697 748717 Fax: +44(0)1697 748778
A.W. Communication Systems Ltd VAT No. GB 827 4389 00 Registered No. 4891652 Registered Office Crook Barn, The Crook, Roweltown, Carlisle, UK
-----Original Message----- From: Charles Keepax [mailto:ckeepax@opensource.wolfsonmicro.com] Sent: 18 July 2014 09:44 To: Kevin Startup Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA SOC Driver (mxs-wm8753)
On Tue, Jul 15, 2014 at 09:14:31AM +0000, Kevin Startup wrote:
Hi there
I am attempting to configure a Wolfson WM8753 on a Ka-Ro TX28S, I was wondering if you had any success managing this and if you could give me some pointers. Currently, I think my device tree may be wrong. I am getting this message on bootup:
mxs-wm8753 sounds.12: ASoC: CODEC DAI wm8753 not registered
It does indeed sound like your DT is wrong. "wm8753" is not the name of any of the DAIs on the device. The two DAIs are called "wm8753-hifi" and "wm8753-voice".
Thanks, Charles
On Fri, Jul 18, 2014 at 10:14:16AM +0000, Kevin Startup wrote:
That's great info, thanks very much. My DT looks like this, inside sound{} I have:
compatible = "fs,imx28-tx28-wm8753", "fsl,mxs-audio-wm8753"; model = "wm8753"; saif-controllers = <&saif0 &saif1>; audio-controllers = <&i2c0>; audio-code = <&wm8753>;
Inside i2c0{} I have:
wm8753: wm8753@1a { Compatible = "wlf,wm8753"; reg = <0x1a>;
I have tried changing model to "wm8753-voice" but still get the same error.
Am I changing it in the wrong place? Or do I need another setting?
I'm very much a beginner at this DT stiff and also configuring and using sound devices so any info you can supply will be of great help.
How exactly the DT needs to be specified depends on the machine driver, as it will be what parses the sound node. I would assume that you are writing this as well? Whatever in there is setting the codec_dai_name on the dai_link seems to be setting the wrong value.
Thanks, Charles
Hi Charles
Thanks very much, the pointers you gave me have helped a lot. I have changed the reference to .codec_dai_name to "wm8753-hifi" in the mxs-wm8753.c program which has made my CPU recognise the WM8753 as a valid ALSA device! This makes me very happy as I have been trying to get this to happen for several weeks now!
I still don't seem to be able to send sound to the device though. I am now receiving this message:
mxs-i2c 80058000.i2c: PIO: Failed to finish WRITE cmd!
This happens a dozen times or so on bootup and any time that I try to write to one of the PCM devices .... I wonder if you could give me any more pointers?
Many Thanks Kevin
Kevin Startup A.W. Communication Systems Ltd. email: kevin@awcsl.com Tel: +44(0)1697 748717 Fax: +44(0)1697 748778
A.W. Communication Systems Ltd VAT No. GB 827 4389 00 Registered No. 4891652 Registered Office Crook Barn, The Crook, Roweltown, Carlisle, UK
-----Original Message----- From: Charles Keepax [mailto:ckeepax@opensource.wolfsonmicro.com] Sent: 18 July 2014 11:53 To: Kevin Startup Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA SOC Driver (mxs-wm8753)
On Fri, Jul 18, 2014 at 10:14:16AM +0000, Kevin Startup wrote:
That's great info, thanks very much. My DT looks like this, inside sound{} I have:
compatible = "fs,imx28-tx28-wm8753", "fsl,mxs-audio-wm8753"; model = "wm8753"; saif-controllers = <&saif0 &saif1>; audio-controllers = <&i2c0>; audio-code = <&wm8753>;
Inside i2c0{} I have:
wm8753: wm8753@1a { Compatible = "wlf,wm8753"; reg = <0x1a>;
I have tried changing model to "wm8753-voice" but still get the same error.
Am I changing it in the wrong place? Or do I need another setting?
I'm very much a beginner at this DT stiff and also configuring and using sound devices so any info you can supply will be of great help.
How exactly the DT needs to be specified depends on the machine driver, as it will be what parses the sound node. I would assume that you are writing this as well? Whatever in there is setting the codec_dai_name on the dai_link seems to be setting the wrong value.
Thanks, Charles
On Fri, Jul 18, 2014 at 01:02:41PM +0000, Kevin Startup wrote:
Hi Charles
Thanks very much, the pointers you gave me have helped a lot. I have changed the reference to .codec_dai_name to "wm8753-hifi" in the mxs-wm8753.c program which has made my CPU recognise the WM8753 as a valid ALSA device! This makes me very happy as I have been trying to get this to happen for several weeks now!
I still don't seem to be able to send sound to the device though. I am now receiving this message:
mxs-i2c 80058000.i2c: PIO: Failed to finish WRITE cmd!
This happens a dozen times or so on bootup and any time that I try to write to one of the PCM devices .... I wonder if you could give me any more pointers?
Many Thanks Kevin
Looks like probably the i2c transactions are not being acked, afraid I don't know much about the i2c driver in question so not really sure. I assume this is the i2c link to the CODEC, so I would check the CODECs reset lines and supplies to make sure it has everything it needs to respond.
Thanks, Charles
Hi Charles
Thanks, we've started having a look at this but still not sure what the issue is, I'm hoping to employ some help from the i.MX manufacturer's support (it's quite expensive though!) but what is worrying us at the moment is that one of our suppliers is marking the WM8753 as "Obsolete" ? I wonder if you knew what the lifetime for manufacturing this chip might be from Wolfson themselves?
Cheerz Kevin
Kevin Startup A.W. Communication Systems Ltd. email: kevin@awcsl.com Tel: +44(0)1697 748717 Fax: +44(0)1697 748778
A.W. Communication Systems Ltd VAT No. GB 827 4389 00 Registered No. 4891652 Registered Office Crook Barn, The Crook, Roweltown, Carlisle, UK
-----Original Message----- From: Charles Keepax [mailto:ckeepax@opensource.wolfsonmicro.com] Sent: 18 July 2014 15:29 To: Kevin Startup Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA SOC Driver (mxs-wm8753)
On Fri, Jul 18, 2014 at 01:02:41PM +0000, Kevin Startup wrote:
Hi Charles
Thanks very much, the pointers you gave me have helped a lot. I have changed the reference to .codec_dai_name to "wm8753-hifi" in the mxs-wm8753.c program which has made my CPU recognise the WM8753 as a valid ALSA device! This makes me very happy as I have been trying to get this to happen for several weeks now!
I still don't seem to be able to send sound to the device though. I am now receiving this message:
mxs-i2c 80058000.i2c: PIO: Failed to finish WRITE cmd!
This happens a dozen times or so on bootup and any time that I try to write to one of the PCM devices .... I wonder if you could give me any more pointers?
Many Thanks Kevin
Looks like probably the i2c transactions are not being acked, afraid I don't know much about the i2c driver in question so not really sure. I assume this is the i2c link to the CODEC, so I would check the CODECs reset lines and supplies to make sure it has everything it needs to respond.
Thanks, Charles
participants (2)
-
Charles Keepax
-
Kevin Startup