admin 管理员组

文章数量: 1184232

***** 出现 HDMI 无声音输出问题


问题: 发现系统在连接 HDMI 接口输出时,只有图像出现,没有声音


分析: HDMI 接口可同时传送音频和影音信号。接上 HDMI 输出后,系统有两个声卡,一


个是背后输出的,即 REALTEK 的,另外一个就是 HDMI 的。要想从 HDMI 输出声音,


就要把系统的默认声卡设置为 HDMI


解决方法:


  1. 查看系统所有的声卡设备,即 aplay-l ,显示有:


****List of PLAYBACK Hardware Devices ****

card0 :Generic [HD-Audio Generic], device3 :HDMI 0 [HDMI 0]

Subdevices: 0/1

Subdevice #0: subdevice#0

card1 :SB [HDA ATI SB], device0 :ALC269VB Analog [ALC269VB Analog]

Subdevices: 1/1

Subdevice #0: subdevice#0


以上可知:有两个声卡设备, card0 card1


    1. 修改配置文件

修改 /hdisk/etc/ 目录下的 asound.conf.hdmi 文件,如下:

pcm.!default{

type plug

slave.pcm "dmixer"


}


pcm.dmixer{

type dmix

ipc_key 1024

slave {

pcm"hw:0,3"


}

bindings {

0 0

1 1

}


}


ctl.dmixer{

type hw

card0

}

系统在启动过程中会读取 asound.conf 文件,从而确定使用哪个声卡设备,所以要


HDMI 输出,先将目录下的 asound.conf (该文件是选择声卡 card1 ,即 realtek 的声


卡)文件备份,再将 asound.conf.hdmi 更名为 asound.conf


3. 修改了配置文件后,还要解除 HDMI 的静音。

>alsamixer

使用左右键移到 "S/PDIF1" 区域,按下“ m” 键即可出现 "OO" ,这样就可以解除静


音。 注:可用命令来解除静音 amixercset numid=4,iface=MIXER,name='IEC958


PlaybackSwitc' on

4. 存储 alsamixer 的设定,输入

>alsactl store


5. 重启系统即可。



本文标签: 出现 卡设备 文件