英伟达tegra210 连接电视/hifi,默认声卡无法自动选择HDMI,只能手动选择(默认是模拟输出)

英伟达tegra210 连接电视/hifi,默认声卡无法自动选择HDMI,只能手动选择(默认是模拟输出)

问题描述:

英伟达tegra210 (板卡没有扬声器等设备)连接电视/hifi,屏幕音量有2个选项,hdmi和模拟输出,默认是模拟输出。查看板卡信息:

 aplay -l

card 0: tegrahda [tegra-hda], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 0: ADMAIF1 CIF ADMAIF1-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 1: ADMAIF2 CIF ADMAIF2-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 2: ADMAIF3 CIF ADMAIF3-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: tegrasndt210ref [tegra-snd-t210ref-mobile-rt565x], device 3: ADMAIF4 CIF ADMAIF4-3 []

>  ls
card0  cards    hwdep  tegrahda         timers
card1  devices  pcm    tegrasndt210ref  version

> cat cards
 0 [tegrahda       ]: tegra-hda - tegra-hda
                      tegra-hda at 0x70038000 irq 81
 1 [tegrasndt210ref]: tegra-snd-t210r - tegra-snd-t210ref-mobile-rt565x
                      tegra-snd-t210ref-mobile-rt565x

看alsa.conf文件,默认声卡应该选择hdmi,但是实际打开屏幕,默认是模拟输出。

参照网上方法,在asound.conf文件加入 defaults.pcm.card 0 defaults.pcm.device 3 defaults.ctl.card 0 。重启后打开音乐没有声音,手动选择hdmi,音乐有声音。试了几天,还是不能开机自动是hdmi。

请教一下,如何才你开机就是hdmi?

alsa.conf 配置文件怎么配的?