打开r40m平台tinav2.1下的录音测试(失败)(分色排版)

来源:互联网 发布:js数组的romove 编辑:程序博客网 时间:2024/04/30 15:57

打开r40m平台tinav2.1下的录音测试(失败)

2017/10/27 15:22

版本:V1.0

 

 

开发板使用:BPI-M2U

 

 

1、原始编译r40平台的tinav2.1系统:

rootroot@cm-System-Product-Name:/home/wwt/r40$ tar zxvf r40_tinav2.1_leo_20170112.tar.gz 

rootroot@cm-System-Product-Name:/home/wwt/r40$ mv tina/ r40_tinav2.1

rootroot@cm-System-Product-Name:/home/wwt/r40$ cd r40_tinav2.1/

rootroot@cm-System-Product-Name:/home/wwt/r40/r40_tinav2.1$ source build/envsetup.sh

rootroot@cm-System-Product-Name:/home/wwt/r40/r40_tinav2.1$ lunch

     13. azalea_m2ultra-tina

Which would you like?13

rootroot@cm-System-Product-Name:/home/wwt/r40/r40_tinav2.1$ make -j12

rootroot@cm-System-Product-Name:/home/wwt/r40/r40_tinav2.1$ pack

 

 

 

 

2、录音测试根据:R40_Linux_V1.0_音频模块使用文档_V1.3.pdf

http://asource.allwinnertech.com:9080/OpenKM/frontend/index.jsp

R40

Software

Linux V1.0(Tina2.1)

document

R40_Linux_V1.0_音频模块使用文档_V1.3.pdf

 

在第19页:

9. 声卡信息查询

声卡信息查询方法如下所示:

/ # cd /proc/asound/ 

/proc/asound # cat pcm 

00-00: SUNXI-CODEC sndcodec-0 : : playback 1 : capture 1

对应 machine 层是: stream name codec_dai_name;播放录音;

/proc/asound # cat card 

card0/ cards

/proc/asound # cat cards 

 0 [audiocodec ]: audiocodec - audiocodec 

 audiocodec 声卡名称

 

/proc/asound # cd /sys/class/sound 

/sys/class/sound # ls 

card0

controlC0

pcmC0D0c

pcmC0D0p

timer

pcmCOD0c:表示 pcm 流 card 0 device 0 capture 录音接口;

pcmC0D0p:表示 pcm 流 card0 device 0 play 播放接口;

controlC0:表示 card0 控制接口;

 

/sys/class/sound # cat card0/id 

audiocodec

 

在第27页:可以看见

10.4.5. 录音测试

tina 平台录音命令:

root@TinaLinux:/tmp# arecord -D "hw:1,0" -r 48000 -c 2 -f "S16_LE" record.wav 

Recording WAVE 'record.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

^CAborted by signal Interrupt... (录制 10 多秒后用 ctrl+c 结束录音)

 

 

[    9.560131] insmod_device_driver

[    9.560131]

[    9.827916] android_work: sent uevent USB_STATE=CONNECTED

[   10.075724] android_usb gadget: high-speed config #1: android

[   10.082414] android_work: sent uevent USB_STATE=CONFIGURED

[   10.120059] gpu cooling callback set freq limit 360

[   14.420373] libphy: gmac0-0:01 - Link is Up - 1000/Full

 

 

 

BusyBox v1.24.1 () built-in shell (ash)

 

 _____  _              __     _

|_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _

  | |   _ |   ||   |  |  |__ | ||   || | ||_'_|

  | |  | || | || _ |  |_____||_||_|_||___||_,_|

  |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!

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

 Tina Linux (Neptune, 5861D22E)

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

root@TinaLinux:/# cd /tmp

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# cd /proc/asound/

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound# cat pcm

00-00: SUNXI-CODEC sun8iw11codec-0 :  : playback 1 : capture 1

root@TinaLinux:/proc/asound#

root@TinaLinux:/# cd /tmp

root@TinaLinux:/tmp# ll

drwxrwxrwt   10 root     root           280 Jan  1 08:00 .

drwxr-xr-x    1 root     root          1024 Nov 21  2017 ..

drwx------    2 root     root            40 Jan  1 08:00 .uci

-rw-r--r--    1 root     root             6 Jan  1 08:00 TZ

-rw-r--r--    1 root     root             5 Jan  1 08:00 booting_state

drwxr-xr-x    3 root     root            60 Jan  1 08:00 lib

drwxrwxrwx    2 root     root            40 Jan  1 08:00 lock

drwxr-xr-x    2 root     root            80 Jan  1 08:00 log

lrwxrwxrwx    1 root     root            21 Jan  1 08:00 resolv.conf -> /tmp/resolv.conf.auto

-rw-r--r--    1 root     root             0 Jan  1 08:00 resolv.conf.auto

drwxrwxrwx    3 root     root           180 Jan  1 08:00 run

drwxrwxrwt    2 root     root            40 Jan  1 08:00 shm

drwxrwxrwx    2 root     root            60 Jan  1 08:00 state

drwxr-xr-x    2 root     root            40 Jan  1 08:00 tmp

root@TinaLinux:/tmp#

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# arecord -D "hw:1,0" -r 48000 -c 2 -f "S16_LE" record.wav 

arecord: main:722: audio open error: No such file or directory

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# cd /proc/asound/ 

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound# ll

dr-xr-xr-x    6 root     root             0 Jan  1 08:02 .

dr-xr-xr-x  103 root     root             0 Jan  1  1970 ..

lrwxrwxrwx    1 root     root             5 Jan  1 08:02 audiocodec -> card0

dr-xr-xr-x    4 root     root             0 Jan  1 08:02 card0

dr-xr-xr-x    3 root     root             0 Jan  1 08:02 card1

-r--r--r--    1 root     root             0 Jan  1 08:02 cards

-r--r--r--    1 root     root             0 Jan  1 08:02 devices

dr-xr-xr-x    2 root     root             0 Jan  1 08:02 oss

-r--r--r--    1 root     root             0 Jan  1 08:02 pcm

dr-xr-xr-x    2 root     root             0 Jan  1 08:02 seq

lrwxrwxrwx    1 root     root             5 Jan  1 08:02 sndhdmi -> card1

-r--r--r--    1 root     root             0 Jan  1 08:02 timers

-r--r--r--    1 root     root             0 Jan  1 08:02 version

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound# cat card

card0/  card1/  cards

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound# cat cards

 0 [audiocodec     ]: audiocodec - audiocodec

                      audiocodec

 1 [sndhdmi        ]: sndhdmi - sndhdmi

                      sndhdmi

root@TinaLinux:/proc/asound#

root@TinaLinux:/proc/asound# cd /sys/class/sound/

root@TinaLinux:/sys/class/sound#

root@TinaLinux:/sys/class/sound# ll

drwxr-xr-x    2 root     root             0 Jan  1 08:00 .

drwxr-xr-x   51 root     root             0 Jan  1 08:00 ..

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 audio -> ../../devices/soc/sndcodec/sound/card0/audio

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 audio1 -> ../../devices/soc/sndhdmi/sound/card1/audio1

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 card0 -> ../../devices/soc/sndcodec/sound/card0

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 card1 -> ../../devices/soc/sndhdmi/sound/card1

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 controlC0 -> ../../devices/soc/sndcodec/sound/card0/controlC0

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 controlC1 -> ../../devices/soc/sndhdmi/sound/card1/controlC1

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 dsp -> ../../devices/soc/sndcodec/sound/card0/dsp

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 dsp1 -> ../../devices/soc/sndhdmi/sound/card1/dsp1

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 mixer -> ../../devices/soc/sndcodec/sound/card0/mixer

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 mixer1 -> ../../devices/soc/sndhdmi/sound/card1/mixer1

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 pcmC0D0c -> ../../devices/soc/sndcodec/sound/card0/pcmC0D0c

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 pcmC0D0p -> ../../devices/soc/sndcodec/sound/card0/pcmC0D0p

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 pcmC1D0p -> ../../devices/soc/sndhdmi/sound/card1/pcmC1D0p

lrwxrwxrwx    1 root     root             0 Jan  1 08:00 timer -> ../../devices/virtual/sound/timer

root@TinaLinux:/sys/class/sound#

root@TinaLinux:/sys/class/sound# cd card0/

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0#

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0# ll

drwxr-xr-x   10 root     root             0 Jan  1 08:00 .

drwxr-xr-x    3 root     root             0 Jan  1 08:00 ..

drwxr-xr-x    3 root     root             0 Jan  1 08:03 audio

drwxr-xr-x    3 root     root             0 Jan  1 08:00 controlC0

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 device -> ../../../sndcodec

drwxr-xr-x    3 root     root             0 Jan  1 08:03 dsp

-rw-r--r--    1 root     root          4096 Jan  1 08:03 id

drwxr-xr-x    6 root     root             0 Jan  1 08:00 input5

drwxr-xr-x    3 root     root             0 Jan  1 08:03 mixer

-r--r--r--    1 root     root          4096 Jan  1 08:03 number

drwxr-xr-x    3 root     root             0 Jan  1 08:00 pcmC0D0c

drwxr-xr-x    3 root     root             0 Jan  1 08:00 pcmC0D0p

drwxr-xr-x    2 root     root             0 Jan  1 08:03 power

lrwxrwxrwx    1 root     root             0 Jan  1 08:03 subsystem -> ../../../../../class/sound

-rw-r--r--    1 root     root          4096 Jan  1 08:03 uevent

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0#

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0# cat id 

audiocodec

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0#

root@TinaLinux:/sys/devices/soc/sndcodec/sound/card0# cd /tmp

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# arecord -D "hw:0,0" -r 48000 -c 2 -f "S16_LE" record.wav

Recording WAVE 'record.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

[  257.250119] capture write error (DMA or IRQ trouble?)

arecord: pcm_read:2032: read error: I/O error

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# arecord -D "hw:0,1" -r 48000 -c 2 -f "S16_LE" record.wav

arecord: main:722: audio open error: No such file or directory

root@TinaLinux:/tmp#

 

 

 

 

3、

尝试关闭HDMI声卡:

rootroot@cm-System-Product-Name:/home/wwt/ap6212a1_bpim2u_ov5640_spi01$ make menuconfig

Kernel modules  ---

Video Support  --->

(默认没有选中)

< > kmod-sunxi-hdmi....................................... sunxi-hdmi support

 

 

rootroot@cm-System-Product-Name:/home/wwt/ap6212a1_bpim2u_ov5640_spi01$ make kernel_menuconfig

Device Drivers  --->

<*> Sound card support  --->

--- Sound card support

<*>   Advanced Linux Sound Architecture  --->

<*>   ALSA for SoC audio support  --->

<*>   ASoC support for SUNXI  --->

<*>   ASoC support for hdmiaudio. 

(修改为:)

< >   ASoC support for hdmiaudio.

编译刷机之后:

root@TinaLinux:/tmp#

root@TinaLinux:/tmp# cat /proc/asound/cards 

 0 [audiocodec     ]: audiocodec - audiocodec

                      audiocodec

root@TinaLinux:/tmp#

 

HDMI数字声卡关闭之后还是没有声音!

 

 

 

 

4、对照Android的sys_config.fex修改:

tinav2.1:

;--------------------------------------------------------------------------------

; NOTE :Make sure spdif_used = 0x1,sndspdif_used = 0x1,

;         if register the sound card spdif.

;--------------------------------------------------------------------------------

[spdif]

spdif_used      = 0

[sndspdif]

sndspdif_used   = 0

;----------------------------------------------------------------------------------

; NOTE :Make sure audiohdmi_used = 0x1,sndhdmi_used = 0x1,

;         if register the sound card hdmi.

;---------------------------------------------------------------------------------

[audiohdmi]

audiohdmi_used = 1

 

[sndhdmi]

sndhdmi_used = 1

 

;--------------------------------------------------------------------------------

;allwinner,pcm_lrck_period :16/32/64/128/256

;allwinner,pcm_lrckr_period :no use

;allwinner,slot_width_select :16bits/20bits/24bits/32bits

;allwinner,pcm_lsb_first :0: msb first; 1: lsb first

;allwinner,tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law

;allwinner,rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law

;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use

;   2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use

;   3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use

;   4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use

;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use

;    2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).

;    3:SND_SOC_DAIFMT_LEFT_J(left justfied format)

;    4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use

;    5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)

;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use

;   2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)

;   3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use

;   4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)

;allwinner,frametype :0: short frame = 1 clock width;  1: long frame = 2 clock width

;allwinner,tdm_config :0:pcm 1:i2s

;allwinner,mclk_div :0: not output(normal setting this) 1/2/4/6/8/12/16/24/32/48/64/96/128/176/192:

; setting mclk as input clock to external codec, freq is pll_audio/mclk_div

;allwinner,daudio0_used :0:not use 1:use

;-------------------------------------------------------------------------------

; NOTE :Make sure daudio0mach_used = 0x1,daudio0_used = 0x1,

;         if register the sound card DAUDIO0.

;--------------------------------------------------------------------------------

[snddaudio0]

snddaudio0_used = 0

;-----------------------------------------------------------------------------

[daudio0]

pcm_lrck_period =   0x20

pcm_lrckr_period =   0x01

slot_width_select =   0x10

pcm_lsb_first =   0x0

tx_data_mode =   0x0

rx_data_mode =   0x0

daudio_master =   0x04

audio_format =   0x01

signal_inversion =   0x01

frametype =   0x0

tdm_config =   0x01

mclk_div = 0x0

daudio0_used = 0

 

;--------------------------------------------------------------------------------

; NOTE :Make sure daudio1mach_used = 0x1,daudio1_used = 0x1,

;         if register the sound card DAUDIO1.

;--------------------------------------------------------------------------------

[snddaudio1]

snddaudio1_used = 0

;-----------------------------------------------------------------------------

[daudio1]

pcm_lrck_period =   0x20

pcm_lrckr_period =   0x01

slot_width_select =   0x10

pcm_lsb_first =   0x0

tx_data_mode =   0x0

rx_data_mode =   0x0

daudio_master =   0x04

audio_format =   0x01

signal_inversion =   0x01

frametype =   0x0

tdm_config =   0x01

mclk_div = 0x0

daudio1_used = 0

;----------------------------------------------------------------------------------------------------------

;--------------------------------------------------------------------------------------

;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step

;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step

;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/step

;allwinner,maingain : mainmic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step

;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step

;allwinner,adcagc_cfg : 1:use adcagc 0:no use

;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use

;allwinner,adchpf_cfg : 1:use adchpf 0:no use

;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use

;allwinner,dachpf_cfg : 1:use adchpf 0:no use

;allwinner,aif2config : 1:use aif2 0:no use

;allwinner,aif3config : 1:use aif3 0:no use

;--------------------------------------------------------------------------------

; NOTE :Make sure audiocodec_machine_used = 0x1,sun50i2s_used = 0x1

;         sun50codec_used = 0x1,if register the sound card audiocodec.

;---------------------------------------------------------------------------------

[sndcodec]

sndcodec_used = 0x1

jack_det_gpio = port:PH14<0><default><default><default>

;------------------------------------------------------------------------------

[codec]

codec_used = 0x1

headphonevol =0x28

spkervol =   0x1b

maingain =   0x4

hp_dirused = 0x1

adcagc_cfg =   0x0

adcdrc_cfg =   0x0

adchpf_cfg =   0x0

dacdrc_cfg =   0x0

dachpf_cfg =   0x0

;gpio-spk = port:PG11<2><1><default><default>

 

 

Android

;--------------------------------------------------------------------------------

; NOTE :Make sure spdif_used = 0x1,sndspdif_used = 0x1,

;         if register the sound card spdif.

;--------------------------------------------------------------------------------

[spdif]

spdif_used      = 0

[sndspdif]

sndspdif_used   = 0

;----------------------------------------------------------------------------------

; NOTE :Make sure audiohdmi_used = 0x1,sndhdmi_used = 0x1,

;         if register the sound card hdmi.

;---------------------------------------------------------------------------------

[audiohdmi]

audiohdmi_used = 1

 

[sndhdmi]

sndhdmi_used = 1

 

;--------------------------------------------------------------------------------

;allwinner,pcm_lrck_period :16/32/64/128/256

;allwinner,pcm_lrckr_period :no use

;allwinner,slot_width_select :16bits/20bits/24bits/32bits

;allwinner,pcm_lsb_first :0: msb first; 1: lsb first

;allwinner,tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law

;allwinner,rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law

;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use

;   2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use

;   3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use

;   4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use

;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use

;    2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).

;    3:SND_SOC_DAIFMT_LEFT_J(left justfied format)

;    4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use

;    5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)

;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use

;   2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)

;   3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use

;   4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)

;allwinner,frametype :0: short frame = 1 clock width;  1: long frame = 2 clock width

;allwinner,tdm_config :0:pcm 1:i2s

;allwinner,mclk_div :0: not output(normal setting this) 1/2/4/6/8/12/16/24/32/48/64/96/128/176/192:

; setting mclk as input clock to external codec, freq is pll_audio/mclk_div

;allwinner,daudio0_used :0:not use 1:use

;-------------------------------------------------------------------------------

; NOTE :Make sure daudio0mach_used = 0x1,daudio0_used = 0x1,

;         if register the sound card DAUDIO0.

;--------------------------------------------------------------------------------

[snddaudio0]

snddaudio0_used = 1

;-----------------------------------------------------------------------------

[daudio0]

pcm_lrck_period =   0x20

pcm_lrckr_period =   0x01

slot_width_select =   0x10

pcm_lsb_first =   0x0

tx_data_mode =   0x0

rx_data_mode =   0x0

daudio_master =   0x04

audio_format =   0x04

signal_inversion =   0x04

frametype =   0x0

tdm_config =   0x0

mclk_div = 0x0

daudio0_used = 1

 

;--------------------------------------------------------------------------------

; NOTE :Make sure daudio1mach_used = 0x1,daudio1_used = 0x1,

;         if register the sound card DAUDIO1.

;--------------------------------------------------------------------------------

[snddaudio1]

snddaudio1_used = 0

;-----------------------------------------------------------------------------

[daudio1]

pcm_lrck_period =   0x20

pcm_lrckr_period =   0x01

slot_width_select =   0x10

pcm_lsb_first =   0x0

tx_data_mode =   0x0

rx_data_mode =   0x0

daudio_master =   0x04

audio_format =   0x01

signal_inversion =   0x01

frametype =   0x0

tdm_config =   0x0

mclk_div = 0x0

daudio1_used = 0

;----------------------------------------------------------------------------------------------------------

;--------------------------------------------------------------------------------------

;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step

;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step

;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/step

;allwinner,maingain : mainmic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step

;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step

;allwinner,adcagc_cfg : 1:use adcagc 0:no use

;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use

;allwinner,adchpf_cfg : 1:use adchpf 0:no use

;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use

;allwinner,dachpf_cfg : 1:use adchpf 0:no use

;allwinner,aif2config : 1:use aif2 0:no use

;allwinner,aif3config : 1:use aif3 0:no use

;--------------------------------------------------------------------------------

; NOTE :Make sure audiocodec_machine_used = 0x1,sun50i2s_used = 0x1

;         sun50codec_used = 0x1,if register the sound card audiocodec.

;---------------------------------------------------------------------------------

[sndcodec]

sndcodec_used = 0x1

jack_det_gpio = port:PH14<0><default><default><default>

;------------------------------------------------------------------------------

[codec]

codec_used = 0x1

headphonevol =0x28

spkervol =   0x1b

maingain =   0x7

hp_dirused = 0x1

adcagc_cfg =   0x0

adcdrc_cfg =   0x0

adchpf_cfg =   0x0

dacdrc_cfg =   0x0

dachpf_cfg =   0x0

;gpio-spk = port:PG11<2><1><default><default>

 

 

阅读全文
0 0
原创粉丝点击