Creating a new DAI for wm8958 codec on imx6 kernel 4.9.17

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

Creating a new DAI for wm8958 codec on imx6 kernel 4.9.17

448 Views
prasannakulkarni
Contributor IV

Hi,

    Codec WM8958 is a audio hub which has 3 ports (AiF1, AiF2, AiF3). AiF1 port 1 is used for media playing, wherein it make use of ssi (I2S) interface to send/receive audio data from imx6 to codec. now I want to make use of second port AiF2 also for Bluetooth(BT) streaming. So for ALSA we need to show these two ports as two diff cards. for that dummy platform driver need to be written for new DAI..  So how I can make it? is there any reference? how to give info in dts file about this new DAI platform driver?          

Labels (2)
0 Kudos
1 Reply

395 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prasanna 

based on its datasheet WM8958 is designed for multiprocessor systems and

has completely separate digital interfaces. So one can consider it as having

two separate codecs, configuring second port AiF2 as WM8958_2 codec and use

Figure 7-1. ALSA SoC Software Architecture, sect.7.1.4.1 ASoC Driver Source Architecture

attached Linux Manual for creating second "WM8958_2" driver.

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

0 Kudos