imx6q-sabred add  bt sco function

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

imx6q-sabred add  bt sco function

1,214 Views
kingphome
Contributor I

Hi ,

  Our platform is imx6q-sabread ,using android 4.4.3 ,linux 3.10.53 ,codec wm8962 , and we want to add bt sco function .

at now , bluetooth can work ok with a2dp . 

  we add a bt sco card , and we test the pcm is ok ,while we made a call.  

#(tinyplay test.wav -D 1) and the remote phone can hear the sound of the 'test.wav' files.

  but we just have no idea what can we do ,if we want codec wm8962 and bluetooth sco work together ,

uplink : mic->codec->cpu aud3       ----    cpu aud4 -> bt pcm in -> local phone   ----------  remote phone spk

downlink as the same .

     bluetooth pcm hardware connection: 

MX6QDL_PAD_SD2_DAT0__AUD4_RXD  0x130b0     -- BT PCM_OUT

MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0      ----BT PCM_SYNC

MX6QDL_PAD_SD2_DAT2__AUD4_TXD  0x110b0     -- BT PCM_IN

MX6QDL_PAD_SD2_DAT3__AUD4_TXC  0x130b0              -- BT PCM_CLK

 

codec wm8962 -- aud3

 

 

sound {
compatible = "fsl,imx6q-sabresd-wm8962",
"fsl,imx-audio-wm8962";
model = "wm8962-audio";
cpu-dai = <&ssi2>;
audio-codec = <&codec>;
audio-routing =
"Headphone Jack", "HPOUTL",
"Headphone Jack", "HPOUTR",
"Ext Spk", "SPKOUTL",
"Ext Spk", "SPKOUTR",
"MICBIAS", "AMIC",
"IN3R", "MICBIAS",
"DMIC", "MICBIAS",
"DMICDAT", "DMIC";
mux-int-port = <2>;
mux-ext-port = <3>;
hp-det-gpios = <&gpio7 8 1>;
mic-det-gpios = <&gpio1 9 1>;
};

 

sound-btsco {

           compatible = "fsl,imx6q-audio-btsco",

 "fsl,imx-audio-btsco"; 

           model = "btsco-codec "; 

           ssi-controller = <&ssi1>;

           btsco-controller = <&btsco_codec>;

           mux-int-port = <4>;

                   mux-ext-port = <1>;

 

 and the file we created bt sco card is attached too.

 

 Did you already have patches to do such kinds of functions ,or pls help to check what's wrong.

'tinyalsa_hal.c' also need to modify ?

0 Kudos
3 Replies

613 Views
igorpadykov
NXP Employee
NXP Employee

Hi yu

please refer to

Bluetooth (Linux) 

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

0 Kudos

613 Views
kingphome
Contributor I

hi igor,

   Since linux driver of bluetooth is ok, and also we can get the bluetooth sco card work with 'pcmC1D0c',pcmC1D0p',

we just did not  know how to  let the bluetooth sco(pcm) work togeter with codec,

codec wm8962 and bluetooth sco work together ,

uplink : mic->codec->cpu aud3       ----    cpu aud4-> bt pcm in -> local phone   ----------  remote phone spk

  Maybe something about audmux ,or tinyalsa_hal or  others we need to check to let it work .

If freescale has such kind of experience or even patches, it will be great help to us.

   

 

root@sabresd_6dq:/ # ll /dev/snd

crw-rw---- system audio 116, 0 1970-01-01 00:00 controlC0
crw-rw---- system audio 116, 32 1970-01-01 00:00 controlC1
crw-rw---- system audio 116, 24 1970-01-01 00:00 pcmC0D0c
crw-rw---- system audio 116, 16 1970-01-01 00:00 pcmC0D0p
crw-rw---- system audio 116, 56 1970-01-01 00:00 pcmC1D0c
crw-rw---- system audio 116, 48 1970-01-01 00:00 pcmC1D0p
crw-rw---- system audio 116, 33 1970-01-01 00:00 timer

0 Kudos

613 Views
kingphome
Contributor I
0 Kudos