Yan
Yan Just a simple man.

sound card 调试

sound card 调试

HDMI以及CVBS的sound card调试记录

查看sound card驱动注册是否成功

  • 切换到root用户
1
2
3
$ su
Password:
root@root#
  • 查看是否注册成功
1
2
3
root@root# cat /proc/asound/cards
 0 [AMLAUGESOUND   ]: AML-AUGESOUND - AML-AUGESOUND
                      AML-AUGESOUN

正常会打印出注册成功的声卡

  • 删除错误节点

注册失败,删除dts里面未使用的声卡节点.

测试HDMI以及CVBS声卡设备

  • 打印出声卡下的可用设备
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLAUGESOUND [AML-AUGESOUND], device 0: TDM-B-dummy-alsaPORT-i2s multicodec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: SPDIF-dummy-alsaPORT-spdif dummy-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 2: TDM-C-dummy dummy-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 3: SPDIF-B-dummy-alsaPORT-spdifb dummy-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  • 使用aplay调试声卡设备
1
2
$ aplay -Dhw:0,0 test.wav #CVBS是声卡0下的设备0
$ aplay -Dhw:0,1 test.wav #HDMI是声卡0下设备1

这里CVBSTDM-B-dummy-alsaPORT-i2s,HDMISPDIF-dummy-alsaPORT-spdif.

调整dts

  • 只使用HDMI,将HDMI相应的设备节点设置成@0.

  • 使用cvbsHDMI,CVBS节点为@0,HDMI节点为@1.

issues

如果有疑惑或错误,请提issues –> Issues