Hi, I am in the process of getting iMX6 working with wm8974 audio codec.
I am using fsl-release-bsp. I have set the pic control and appropriately corresponding to my custom board. I did this by looking at the sabresd schematics and worked out the device tree has to be changed for pic control in my custom hardware interface. The codec is slave on I2C and also slave on I2S clocks. I am core-image-base and on boot wm8974 probe give OK message. Few other messages are as shown below: WM8974 Probe OK imx-wm8974 sound.20: --------------->> Found AUDIO CODEC imx-wm8974 sound.20: wm8974 <-> 202c000.ssi mapping ok wm8974-supply: disabling regulator-dummy: disabling imx mcc test is registered. rtc-pcf85063 0-0051: setting system clock to 2015-10-20 07:41:20 UTC (1445326880) ALSA device list: #0: wm8974-audio kjournald starting. Commit interval 5 seconds EXT3-fs (mmcblk3p2): using internal journal EXT3-fs (mmcblk3p2): mounted filesystem with ordered data mode VFS: Mounted root (ext3 filesystem) on device 179:10. devtmpfs: mounted Freeing unused kernel memory: 296K (8085a000 - 808a4000) INIT: version 2.88 booting Starting udev udevd[183]: starting version 182 FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory bootlogd. ALSA: Restoring mixer settings... When I login and try to record video I get: root@imx6qdtibrd0192:~# arecord -f dat -d 20 -D hw:0,0 test.wav Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo arecord: pcm_read:2031: read error: Input/output error Can someone please guide here on where to start looking for fixing this issue? Regards, Harpreet Singh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daiane Angolini Sent: Friday, 16 October 2015 8:26 PM To: Harpreet Atwal Cc: [email protected] Subject: Re: [meta-freescale] alsa utils On Fri, Oct 16, 2015 at 3:05 AM, Harpreet Atwal <[email protected]> wrote: > Dear Daiane, > > Thanks for quick reply and your responses are really helpful. > > Do we have some documentation for changes one would need to do in existing > configuration files to introduce a custom board for the repo source? I don't understand what you mean by "repo source". But assuming you meat meta-fsl-arm-extra, it is a good idea to copy over the board which looks like yours (same SoC), and change it. Please, take a look on commit log/history and you will see it may be very straight forward: https://github.com/Freescale/meta-fsl-arm-extra Basically you have one patch for machine config file, one for adjusting u-boot-fslc and one for adjusting linux-fslc. So the real work is to get your board ported to u-boot and kernel. Daiane > > Regards, > Harpreet Singh > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Daiane Angolini > Sent: Thursday, 15 October 2015 7:29 PM > To: Harpreet Atwal > Cc: [email protected] > Subject: Re: [meta-freescale] alsa utils > > On Thu, Oct 15, 2015 at 12:31 AM, Harpreet Atwal <[email protected]> > wrote: >> Hi Friends, >> >> >> >> I just started working on iMx6 based target platform. >> >> >> >> I am using yocto to build binaries for the target platform. >> >> >> >> I am able to compile core-image-minimal. (but it does not contain >> alsa utils like aplay etc…) >> >> >> >> I have these layers in my sources folder. >> >> >> >> harpreet.atwal:~/fsl-release-bsp/sources$ ll >> >> total 52 >> >> drwxr-xr-x 13 harpreet.atwal domain^users 4096 Oct 13 17:44 ./ >> >> drwxr-xr-x 7 harpreet.atwal domain^users 4096 Oct 15 09:44 ../ >> >> drwxr-xr-x 4 harpreet.atwal domain^users 4096 Oct 6 12:34 base/ >> >> drwxr-xr-x 15 harpreet.atwal domain^users 4096 Oct 6 12:34 >> meta-fsl-arm/ >> >> drwxr-xr-x 7 harpreet.atwal domain^users 4096 Oct 6 12:34 >> meta-fsl-arm-extra/ >> >> drwxr-xr-x 4 harpreet.atwal domain^users 4096 Oct 6 12:34 >> meta-fsl-bsp-release/ >> >> drwxr-xr-x 8 harpreet.atwal domain^users 4096 Oct 6 12:34 >> meta-fsl-demos/ >> >> drwxr-xr-x 18 harpreet.atwal domain^users 4096 Oct 6 12:34 >> meta-openembedded/ >> >> drwxr-xr-x 7 harpreet.atwal domain^users 4096 Oct 6 12:34 meta-qt5/ >> >> drwxr-xr-x 11 harpreet.atwal domain^users 4096 Oct 6 12:34 poky/ >> > > Please, take a look at the documentation: > http://freescale.github.io/ > http://freescale.github.io/doc/release-notes/1.8/ > > >> >> >> >> >> I have tried using IMAGE_INSTALL_append = " alsa-utils" in >> build/conf/local.conf > > I would replace "core-image-minimal" by "core-image-base" and I would use > "CORE_IMAGE_EXTRA_INSTALL +=" instead of "IMAGE_INSTALL_append" > > core-image-minimal does not include firmware files, and I think they are > important for alsa-utils, as it is only a tool for audio which uses DMA > firmware. > >> >> >> >> But the build gets stuck and never exits. >> >> >> >> Anyone successfully able to compile alsa utilities in final image. >> Please guide me. > > In case you are using a Freescale reference board, you can download the > pre-built image http://ci.ossystems.com.br/public/fsl-community-bsp/ and have > a taste. > > > Daiane > >> >> >> >> Thanks in Advance. >> >> >> >> Harpreet >> >> Harpreet Atwal | Senior Embedded Software Engineer >> >> DTI Group Ltd | Transit Security & Surveillance >> >> 31 Affleck Road, Perth Airport, WA 6105, AU >> >> P | F +61 8 9479 1190 | [email protected] >> >> >> >> Visit our website www.dti.com.au >> >> The information contained in this email is confidential. If you >> receive this email in error, please inform DTI Group Ltd via the above >> contact details. >> If you are not the intended recipient, you may not use or disclose >> the information contained in this email or attachments. >> >> >> -- >> _______________________________________________ >> meta-freescale mailing list >> [email protected] >> https://lists.yoctoproject.org/listinfo/meta-freescale >> Harpreet Atwal | Senior Embedded Software Engineer DTI Group Ltd | Transit Security & Surveillance 31 Affleck Road, Perth Airport, WA 6105, AU P | F +61 8 9479 1190 | [email protected] Visit our website www.dti.com.au<http://www.dti.com.au> The information contained in this email is confidential. If you receive this email in error, please inform DTI Group Ltd via the above contact details. If you are not the intended recipient, you may not use or disclose the information contained in this email or attachments. -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
