No sound : CA0106 , alsa and pulse audio

So what do we have here. Creative 5.1 channel CA0106 sound card is connected and not working.

What all could go wrong,

  1. your audio card itself is not detected.
  2. your audio driver loaded is not correct.
  3. pulse audio will not recognize your driver output.
  4. alsa mixer has problem recognizing the output

for most of trouble shooting below link is useful from Ubuntu community

https://help.ubuntu.com/community/SoundTroubleshooting

for Alsa mixer issue: refer below bug or jump to solution copied from the link as originally written by “LuizMagnoGaloDoido

https://ubuntuforums.org/showthread.php?t=1491560

Steps:
Install GNOME Alsa Mixer
sudo apt-get install gnome-alsamixer
Now open GNOME ALSA Mixer from Applications -> Sound & Video -> GNOME ALSA Mixer
Choose the tab: “CA0106…”
Turn on “Audigy Analog/Digital Output Jack”
=> Deselect IEC958

This help me, It may help you

Posted in LINUX, Ubuntu | Leave a comment

Beware : Android build environment can screw your machine

https://source.android.com/source/initializing.html

https://answers.launchpad.net/ubuntu/+source/lightdm/+question/197479

Posted in Uncategorized | Leave a comment

Cypress – cy8ckit-042-psoc-4-pioneer-kit

This is an amazing mix-mode PSoc. Very versatile and yet powerful.

Coming from programming background to write your code the PSoc creator is a pain to learn but once  we get hold of it. it more fun to finish your project but leaves the details to the PSoc creator. This has its own pros and cons.

Pros:

  1. you get to the POC stage faster.
  2. Need not worry much about underlying device drivers. concentrate on you application part.

Cons:

  1. you loose the hold on the hardware.
  2. you don’t know what could be the limitation of the Soc

need more exploration:

References:

http://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-psoc-4-pioneer-kit

Similar issues I am facing:

http://www.cypress.com/forum/psoc-4-architecture/can-miniprog3-program-cy8c4247lqi-bl483

 

Posted in Uncategorized | Leave a comment

AES encryption examples

1. AES 128 encryption & decryption on linux and windows.
2. using http://stackoverflow.com/questions/14152192/build-native-c-for-use-as-net-library, to call the invoking

https://msdn.microsoft.com/en-us/library/aa288466%28v=vs.71%29.aspx
https://msdn.microsoft.com/en-us/library/ms973807.aspx

openssl-aes128-bit encryption:
http://openssl-net.sourceforge.net/
http://www.firmcodes.com/how-do-aes-128-bit-cbc-mode-encryption-c-programming-code-openssl/

Posted in Uncategorized | Leave a comment

TI MSP430 build tools, Free RTOS …..

One of my projects needed me to explore into MSP430 so this is what I start from.

try to download everything from the TI website. easy to start with.

Installing compiler :

sudo apt-get update
sudo apt-get install msp430mcu msp430-libc mspdebug gcc-msp430 gdb-msp430

Next would be CCS- this will make life better later:

  • sudo apt-get update
  • sudo apt-get install ia32-libs libgnomeui-0:i386 libusb-1.0-0-dev:i386
  • rest do as it says in the “README_FIRST.txt” file.

wiki: http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#Ubuntu_12.04_64bit

Reference:

http://www.ti.com/tool/msp430-gcc-opensource

http://karuppuswamy.com/wordpress/2010/10/14/setup-build-and-debug-environment-for-msp430-mcus-using-mspgcc-and-mspdebug-in-ubuntu-linux/

http://processors.wiki.ti.com/index.php/Using_MSP430-GCC_with_CCSv6

http://www.freertos.org/portmspgcc.html

usage and code details:

http://www.simplyembedded.org/

Posted in Uncategorized | Leave a comment

vboxdrv: Unknown symbol mcount (err 0)

if you come across this error here is what you have to do

me@me-desktop:~$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2) 
me@me-desktop:~$ dmesg | grep gcc
[ 0.000000] Linux version 3.13.0-62-generic (buildd@lgw01-26) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #102~precise1-Ubuntu SMP Wed Aug 12 14:09:54 UTC 2015 (Ubuntu 3.13.0-62.102~precise1-generic 3.13.11-ckt24)

if  you find that gcc version is mismatched between kernel and what you have on the machine, like how I have “gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2)” and “(gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)”

then next would be to install gcc version same as kernel.

but if you already have this version installed and you find that it is not default like

me@me-desktop:/usr/bin$ ls /usr/bin/g++
g++      g++-4.4  g++-4.6  g++.bak  
me@me-desktop:/usr/bin$ ls /usr/bin/gcc
gcc      gcc-4.4  gcc-4.6  gcc.bak

then delete the old link and create new symbolic links

me@me-desktop:/usr/bin$ sudo rm -rf gcc
me@me-desktop:/usr/bin$ sudo ln -s gcc-4.6 gcc
me@me-desktop:/usr/bin$ ls -l gcc
lrwxrwxrwx 1 root root 7 Sep  4 00:11 gcc -> gcc-4.6

me@me-desktop:/usr/bin$ sudo rm -rf g++
me@me-desktop:/usr/bin$ sudo ln -s g++-4.6 g++
me@me-desktop:/usr/bin$ ls -l g++
lrwxrwxrwx 1 root root 7 Sep  4 00:12 g++ -> g++-4.6

 

after this run below command

me@me-desktop:/usr/bin$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.

Wolah you have solved this issue.

References:

https://www.virtualbox.org/ticket/12467

http://askubuntu.com/questions/26498/choose-gcc-and-g-version

Posted in Ubuntu | Leave a comment

Liquid funds – what, how and why?

Still to understand

 

http://www.fundsindia.com/blog/mutual-funds/liquid-funds-invest/751

http://www.fundsindia.com/blog/advisory/should-you-choose-the-dividend-option-or-the-growth-option/1757

Posted in Uncategorized | Leave a comment