Re: [linux-sunxi] Re: i2s audio codec support for sun7i
On 8 April 2014 07:27, Puneet B punit...@gmail.com wrote: Hi CodeKipper, I compiled i2s codec as you suggest. It compiled successfully. but i am get struck in integrating alsa codec to i2s. Did you follow Jon's instructions? you're most probably missing the glue layer. If you're still using the codec that you've mentioned above then this is one example sound/soc/omap/rx51.c CK Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] Re: i2s audio codec support for sun7i
Thanks Code Kipper, I will go through this. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: i2s audio codec support for sun7i
Yes, I have i2s running on an A10 mars board. I just enabled the sunxi i2s in the kernel config, built the kernel and it worked. But the mars board has LED's on the I2S pins, so they are almost impossible to use as I2s. I hooked wires up to it for a test and it worked. It showed up in alsa, using aplay. I will have to look for my kernel, as I don't think I saved it, I am now trying to get I2S to work on an A20 olimex board, because it have the I2S brought out to a header. I have a kernel built and loaded, but the I2S does not show up in aplay, so I am trying to track down what I am missing. If I find my kernel log from the mares board, I will let you know. I do have the kernel .config if you want that. Dennis On Monday, April 7, 2014 10:48:48 PM UTC-6, Puneet B wrote: Hi Dennis, How you done i2s porting on A10? Can you share kernel log?. are you getting audio through i2s codec? You help will be greatly appreciable. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] Re: i2s audio codec support for sun7i
On 8 April 2014 14:34, Dennis Kerrisk dennisk8...@gmail.com wrote: Yes, I have i2s running on an A10 mars board. I just enabled the sunxi i2s in the kernel config, built the kernel and it worked. But the mars board has LED's on the I2S pins, so they are almost impossible to use as I2s. I hooked wires up to it for a test and it worked. It showed up in alsa, using aplay. I will have to look for my kernel, as I don't think I saved it, I am now trying to get I2S to work on an A20 olimex board, because it have the I2S brought out to a header. I have a kernel built and loaded, but the I2S does not show up in aplay, so I am trying to track down what I am missing. Hi Dennis, can you follow my instructions at the top of this thread?, if you don't see any object files then i2s isn't being build. Attaching your .config would also help. CK If I find my kernel log from the mares board, I will let you know. I do have the kernel .config if you want that. Dennis On Monday, April 7, 2014 10:48:48 PM UTC-6, Puneet B wrote: Hi Dennis, How you done i2s porting on A10? Can you share kernel log?. are you getting audio through i2s codec? You help will be greatly appreciable. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] Re: i2s audio codec support for sun7i
On 8 April 2014 15:25, Dennis Kerrisk dennisk8...@gmail.com wrote: I tried attaching my .config file, but it said it was not allowed. So here it is: # # Automatically generated make config: don't edit # Linux/arm 3.0.101-2 Kernel Configuration This looks very wrongwhat are you trying to build? 3.4.79 is the current version on linux-sunxi. There is no mention of sunxi in your .config. CK On Wednesday, February 19, 2014 5:05:28 AM UTC-7, Puneet B wrote: Hi i downloaded sunxi kernel 3.4 from below link. http://docs.cubieboard.org/tutorials/ct1/development/compiling_latest_kernel_for_cubietruck_cubieboard3 . i changed default configuration to sun7i_defconfig. but for sun7i there is no i2s codec support, it is for only sun4i and sun5i( i saw from menuconfig ). How to get i2s codec support in my A20 board. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] sunxi_mem driver ported to sunxi-3.4
Hi, some days ago, nove linked at the IRC channel a new armel release of libcedarv (http://dl.cubieboard.org/software/common/linux-codec-release-V1.2.rar) for Android and Sunxi kernels, along with some example code and doc. He also found an armhf version (http://dl.cubieboard.org/software/common/linux_codec_gnueabihf_20140327.tar.gz) for Android (it requires the ION memory allocator). Today I emailed Huang Benn from Cubietech asking for the sunxi-armhf version of libcedarv. He kindly sent me it (http://dl.cubieboard.org/software/common/A20-sunxi.rar), clarifying that it requires the 'sunxi-mem' driver from an Allwinner engineer. I found sunxi_mem here https://github.com/cubieboard2/linux-sunxi/tree/sunxi-3.3-cb2/drivers/char/sunxi_mem. It seems to be GPLv2+ code. I've ported it almost directly here https://github.com/juanfont/linux-sunxi/commit/e8937b50bc749cf1069b6881e0189831381d342b. I've tested it with the encoding examples from the linux-codec-release-V1.2 package and, although there are some color issues, the encoder appears to work. Is this code acceptable in the sunxi-3.4 branch? Should I proceed with a pull request? Greetings, Juan -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: i2s audio codec support for sun7i
Looks like I uploaded the wrong config. On Wednesday, February 19, 2014 5:05:28 AM UTC-7, Puneet B wrote: Hi i downloaded sunxi kernel 3.4 from below link. http://docs.cubieboard.org/tutorials/ct1/development/compiling_latest_kernel_for_cubietruck_cubieboard3 . i changed default configuration to sun7i_defconfig. but for sun7i there is no i2s codec support, it is for only sun4i and sun5i( i saw from menuconfig ). How to get i2s codec support in my A20 board. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] Re: i2s audio codec support for sun7i
On 8 April 2014 19:16, Dennis Kerrisk dennisk8...@gmail.com wrote: Here is the correct one. # # Automatically generated file; DO NOT EDIT. # Linux/arm 3.4.79 Kernel Configuration # chop CONFIG_SND_SOC=y CONFIG_SOUND_SUNXI=y CONFIG_SND_SUNXI_SOC_CODEC=y CONFIG_SND_SUNXI_SOC_HDMIAUDIO=y CONFIG_SND_SUNXI_SOC_SPDIF=m CONFIG_SND_SUNXI_SOC_I2S_INTERFACE=y CONFIG_SND_SOC_I2C_AND_SPI=y Hi Dennis, so here it looks like the required sound cards are being built into the kernel. This was originally compiled out of the sun7i builds and I'm not sure why. I'll have a look at the code tomorrow. I was wondering how you got i2s working on the A10, did you connect it to an external device or were just monitoring the pins? The next thing would be to look at the kernel logs to see what's happening as I don't have any i2s hardware to experiment myself with. CK ps: let's leave big file attachment to pastebin links. It was a bit difficult to search the reply in gmail. chop # CONFIG_CORDIC is not set Dennis On Wednesday, February 19, 2014 5:05:28 AM UTC-7, Puneet B wrote: Hi i downloaded sunxi kernel 3.4 from below link. http://docs.cubieboard.org/tutorials/ct1/development/ compiling_latest_kernel_for_cubietruck_cubieboard3. i changed default configuration to sun7i_defconfig. but for sun7i there is no i2s codec support, it is for only sun4i and sun5i( i saw from menuconfig ). How to get i2s codec support in my A20 board. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] Re: i2s audio codec support for sun7i
An easy way to get I2S hardware is via a TI eval board. For example TAS5760 is $99 http://www.ti.com/tool/tas5760xxevm Look around on the site the eval boards range from 1W to 300W. On Tue, Apr 8, 2014 at 3:54 PM, Code Kipper codekip...@gmail.com wrote: On 8 April 2014 19:16, Dennis Kerrisk dennisk8...@gmail.com wrote: Here is the correct one. # # Automatically generated file; DO NOT EDIT. # Linux/arm 3.4.79 Kernel Configuration # chop CONFIG_SND_SOC=y CONFIG_SOUND_SUNXI=y CONFIG_SND_SUNXI_SOC_CODEC=y CONFIG_SND_SUNXI_SOC_HDMIAUDIO=y CONFIG_SND_SUNXI_SOC_SPDIF=m CONFIG_SND_SUNXI_SOC_I2S_INTERFACE=y CONFIG_SND_SOC_I2C_AND_SPI=y Hi Dennis, so here it looks like the required sound cards are being built into the kernel. This was originally compiled out of the sun7i builds and I'm not sure why. I'll have a look at the code tomorrow. I was wondering how you got i2s working on the A10, did you connect it to an external device or were just monitoring the pins? The next thing would be to look at the kernel logs to see what's happening as I don't have any i2s hardware to experiment myself with. CK ps: let's leave big file attachment to pastebin links. It was a bit difficult to search the reply in gmail. chop # CONFIG_CORDIC is not set Dennis On Wednesday, February 19, 2014 5:05:28 AM UTC-7, Puneet B wrote: Hi i downloaded sunxi kernel 3.4 from below link. http://docs.cubieboard.org/tutorials/ct1/development/compiling_latest_kernel_for_cubietruck_cubieboard3. i changed default configuration to sun7i_defconfig. but for sun7i there is no i2s codec support, it is for only sun4i and sun5i( i saw from menuconfig ). How to get i2s codec support in my A20 board. Regards Punith -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Jon Smirl jonsm...@gmail.com -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] u-boot-sunxi merged with upstream v2014.04-rc3
Hi All, I've just merged v2014.04-rc3 into the u-boot-sunxi branch. I've added a few patches on top to get everything working again. While merging v2014.04-rc3 into our sunxi u-boot branch, I hit a problem where mmc would no longer work in the SPL. The problem is that the new mmc_create call forces use of HEAP memory, while in the SPL there may be no HEAP. For now I've created a small 2048 bytes HEAP in our SPL, I've send a mail to the u-boot list to discuss this. Regards, Hans -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] mmc changes in v2014.04-rc3 cause problems when using mmc in SPL
Hi, While merging v2014.04-rc3 into our sunxi u-boot branch, I hit a problem where mmc would no longer work in the SPL. The problem is that the new mmc_create call forces use of HEAP memory, while in the SPL there may be no HEAP. For now I've created a small 2048 bytes HEAP in our SPL, but if possible I would like to get rid of the need for a HEAP though, as we only have 24K of RAM for our SPL. Regards, Hans -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [U-Boot] mmc changes in v2014.04-rc3 cause problems when using mmc in SPL
On Wed, Apr 09, 2014 at 12:05:04AM +0200, Hans de Goede wrote: Hi, While merging v2014.04-rc3 into our sunxi u-boot branch, I hit a problem where mmc would no longer work in the SPL. The problem is that the new mmc_create call forces use of HEAP memory, while in the SPL there may be no HEAP. For now I've created a small 2048 bytes HEAP in our SPL, but if possible I would like to get rid of the need for a HEAP though, as we only have 24K of RAM for our SPL. 24K should still be enough to have a small malloc pool and the rest of SPL, especially since it sounds like you already didn't have FAT support in there (which has required malloc for ages and is why Pantelis didn't spot this as a problem I think). How close to the limit are we today in the sunxi platforms? Thanks! -- Tom signature.asc Description: Digital signature
[linux-sunxi] [PATCH 3.4] arm:sunxi:defconfig: Better ROOT_NFS support for sun4i and sun7i
This patch ensures that default configs allow multiple sun4i and sun7i devices boot and work nicely with the same NFS root. Tested with Cubietruck, Cubieboard2 and A10-Lime. ROOT_NFS is enabled in sun4i_defconfig. GMAC is enabled in sun7i_defconfig for Cubietruck support. Also different localversion identifiers are set for sun4i and sun7i to avoid a possible clash between the names of directories with kernel modules. Signed-off-by: Siarhei Siamashka siarhei.siamas...@gmail.com --- arch/arm/configs/sun4i_defconfig | 6 ++ arch/arm/configs/sun7i_defconfig | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/sun4i_defconfig b/arch/arm/configs/sun4i_defconfig index edcafc1..bc08315 100644 --- a/arch/arm/configs/sun4i_defconfig +++ b/arch/arm/configs/sun4i_defconfig @@ -1,4 +1,5 @@ CONFIG_EXPERIMENTAL=y +CONFIG_LOCALVERSION=-sun4i CONFIG_SYSVIPC=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y @@ -67,6 +68,10 @@ CONFIG_XFRM_USER=y CONFIG_NET_KEY=y CONFIG_INET=y CONFIG_IP_MULTICAST=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_IP_PNP_RARP=y CONFIG_NET_IPIP=y CONFIG_IP_MROUTE=y CONFIG_IP_PIMSM_V1=y @@ -284,6 +289,7 @@ CONFIG_CONFIGFS_FS=y CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_NFS_V4=y +CONFIG_ROOT_NFS=y CONFIG_CIFS=y CONFIG_NLS_DEFAULT=utf8 CONFIG_NLS_CODEPAGE_437=y diff --git a/arch/arm/configs/sun7i_defconfig b/arch/arm/configs/sun7i_defconfig index c585d7a..6f75e7b 100644 --- a/arch/arm/configs/sun7i_defconfig +++ b/arch/arm/configs/sun7i_defconfig @@ -1,4 +1,5 @@ CONFIG_EXPERIMENTAL=y +CONFIG_LOCALVERSION=-sun7i CONFIG_SYSVIPC=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y @@ -469,7 +470,7 @@ CONFIG_NETCONSOLE=y CONFIG_NETCONSOLE_DYNAMIC=y CONFIG_TUN=m CONFIG_SUNXI_EMAC=y -CONFIG_PHYLIB=y +CONFIG_SUNXI_GMAC=y CONFIG_MICREL_KS8995MA=m CONFIG_PLIP=m CONFIG_PPP=y -- 1.8.3.2 -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] [PATCH 3.4] arm:sunxi:defconfig: Use performance cpufreq governor by default
A rather popular problem reported by new users on irc is very laggy performance out of the box. The default 'ondemand' governor is too slow to react on increased demand for processing power without extra tuning. The extra tuning needs extra efforts from the users. Not to mention that they have to be aware that such tuning might be necessary. One more reason not to use the 'ondemand' governor by default is that the power saving provided by it is not particularly good: https://www.mail-archive.com/linux-sunxi@googlegroups.com/msg00492.html https://www.mail-archive.com/linux-sunxi@googlegroups.com/msg00678.html http://www.cubieforums.com/index.php/topic,1413.msg8745.html#msg8745 It basically wastes a lot of performance for almost nothing. The most important defconfigs are sun4i_defconfig, sun5i_defconfig and sun7i_defconfig because they are mentioned in http://linux-sunxi.org/Linux_Kernel#Compilation Right now sun5i_defconfig does not even enable cpufreq and does not have any problems in the first place. This patch changes sun4i and sun7i defconfigs to have the following set of cpufreq governors: 1. 'performance' (default) 2. 'userspace' (for benchmarking purposes) 3. 'interactive' (a replacement for 'ondemand' with more sane default behavior) Signed-off-by: Siarhei Siamashka siarhei.siamas...@gmail.com --- arch/arm/configs/sun4i_defconfig | 5 ++--- arch/arm/configs/sun7i_defconfig | 12 +--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/arch/arm/configs/sun4i_defconfig b/arch/arm/configs/sun4i_defconfig index 4e6f9fc..edcafc1 100644 --- a/arch/arm/configs/sun4i_defconfig +++ b/arch/arm/configs/sun4i_defconfig @@ -14,7 +14,6 @@ CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y -CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_BLK_CGROUP=y CONFIG_RELAY=y @@ -52,8 +51,8 @@ CONFIG_COMPACTION=y CONFIG_KSM=y CONFIG_CMDLINE=mem=448M@0x4000 console=ttyS0,115200 CONFIG_CPU_FREQ=y -CONFIG_CPU_FREQ_STAT=m -CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_INTERACTIVE=y CONFIG_CPU_FREQ_DVFS=y CONFIG_CPU_IDLE=y CONFIG_VFP=y diff --git a/arch/arm/configs/sun7i_defconfig b/arch/arm/configs/sun7i_defconfig index 455ebcc..c585d7a 100644 --- a/arch/arm/configs/sun7i_defconfig +++ b/arch/arm/configs/sun7i_defconfig @@ -16,15 +16,11 @@ CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y -CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_MEM_RES_CTLR=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y CONFIG_CGROUP_MEM_RES_CTLR_KMEM=y CONFIG_CGROUP_PERF=y -CONFIG_CGROUP_SCHED=y -CONFIG_CFS_BANDWIDTH=y -CONFIG_RT_GROUP_SCHED=y CONFIG_BLK_CGROUP=y CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y @@ -67,14 +63,8 @@ CONFIG_KSM=y CONFIG_CMDLINE=console=ttyS0,115200 root=/dev/mmc0p1 rw init=/init loglevel=8 CONFIG_KEXEC=y CONFIG_CPU_FREQ=y -CONFIG_CPU_FREQ_STAT=m -CONFIG_CPU_FREQ_DEFAULT_GOV_FANTASY=y -CONFIG_CPU_FREQ_GOV_PERFORMANCE=y -CONFIG_CPU_FREQ_GOV_POWERSAVE=m -CONFIG_CPU_FREQ_GOV_USERSPACE=m -CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_INTERACTIVE=y -CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_CPU_FREQ_USR_EVNT_NOTIFY=y CONFIG_CPU_FREQ_DVFS=y CONFIG_CPU_IDLE=y -- 1.8.3.2 -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 3.4] arm:sunxi:defconfig: Use performance cpufreq governor by default
On Wed, 9 Apr 2014 05:47:25 +0300 Siarhei Siamashka siarhei.siamas...@gmail.com wrote: A rather popular problem reported by new users on irc is very laggy performance out of the box. The default 'ondemand' governor is too slow to react on increased demand for processing power without extra tuning. The extra tuning needs extra efforts from the users. Not to mention that they have to be aware that such tuning might be necessary. All good points here. Right now sun5i_defconfig does not even enable cpufreq and does not have any problems in the first place. This patch changes sun4i and sun7i defconfigs to have the following set of cpufreq governors: 1. 'performance' (default) 2. 'userspace' (for benchmarking purposes) 3. 'interactive' (a replacement for 'ondemand' with more sane default behavior) Replacement? What are the mainlining plans for it, then? IOW still not convinced it is a good idea to push an out-of-tree obscure governor invented likely because someone didn't know they can tune 'ondemand'. Smells of custom Android romz and all that stuff to me, i.e. not the right way of doing things in the Linux land. If someone wants more power saving, after your patch they will need to make a conscious effort to switch to ondemand, and in the process of doing so they can also configure it to their liking just as easily. -- With respect, Roman signature.asc Description: PGP signature