Audio Codec wm8960 drivers detection problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Audio Codec wm8960 drivers detection problem

Jump to solution
3,015 Views
vijay_jay5
Contributor II

HI,

  my self i am Vijay from India,I want small help regarding Audio codec drivers.we are using WM8960 audio codec for my project.we took reference of sabresd board(which contain wm8962 audio codec),we are using wm8960.c(Codec drivers) & imx-wm8960.c(platform drivers)  SO my doubt is how i can know whether audio codec is detected or not?i followed attached BSP document.

           I found that under /sys/asound/wm8962 is the driver for audio codec in sabresd file system. Is this method is correct or not?how can i switch Left input audio1 to left input audio2 from application's user space?which type of frame work i ave to use whether ALSA or TINYALSA?

pls give me some information on this, I am expecting positive answer from you.

Mail.ID: vijay.jay5@gmail.com

Labels (2)
0 Kudos
1 Solution
2,375 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vijay

you can check codec detection with aplay -l, it shows

registered sound cards.  Channels can be selected using

amixer, please check sect.23.5.2 7.1 Audio Codec Unit Test

attached Linux Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

6 Replies
2,375 Views
vijay_jay5
Contributor II

Hi igorpadykov,

         Thanks for your reply.As per your reply i can't get any attached Linux Manual. Pls can you share the Linux manual which contains  "sect.23.5.2 7.1 Audio Codec Unit Test"

0 Kudos
2,375 Views
vijay_jay5
Contributor II

Hi ,

          I want small info.I took sabresd reference, Audio COdec working fine( I can able to record & Listen audio),As per imx-wm8960(Machine drivers) routed Audio Codec(WM8960) to MIC(input1 ADC to store audio in Process) & Head_phone(Processor's DAC to output channel).

But As per my requirements i need to play Auxillory audio stream which connected to 2nd input channel & FM in 3rd input channel(Like below pic).

So how i can route it in imx-wm8960.c file like below.

static const struct snd_soc_dapm_route imx6_audio_map[] = {

    { "Headphone Jack",         NULL,           "HP_L"      },

    { "Headphone Jack",         NULL,           "HP_R"      },

    { "Speaker_L",              NULL,           "SPK_LP"    },

    { "Speaker_L",              NULL,           "SPK_LN"    },

    { "Speaker_R",              NULL,           "SPK_RP"    },

    { "Speaker_R",              NULL,           "SPK_RN"    },

    { "LINPUT1",                NULL,           "MICB"      },

    { "MICB",                   NULL,           "Mic Jack"  },

//    { "LINPUT3",                "LINPUT3 Switch",       "HP_L"   },

//    { "RINPUT3",                "RINPUT3 Switch",       "HP_R"   },

     

}

I am waiting for your reply. Thank you.

Screenshot from 2016-02-16 11_33_32.png

0 Kudos
2,375 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vijay

0 Kudos
2,375 Views
vijay_jay5
Contributor II

Very very thanks, It's so worthy for me.

On Thu, Jan 21, 2016 at 11:31 AM, igorpadykov <admin@community.freescale.com

0 Kudos
2,376 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vijay

you can check codec detection with aplay -l, it shows

registered sound cards.  Channels can be selected using

amixer, please check sect.23.5.2 7.1 Audio Codec Unit Test

attached Linux Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

2,375 Views
vijay_jay5
Contributor II

Hi igorpadykov,

         Thanks for your reply.As per your reply i can't get any attached Linux Manual. Pls can you share the Linux manual which contains  "sect.23.5.2 7.1 Audio Codec Unit Test

0 Kudos