imx6 hdmi audio Hardware Device is not present in user space after kernel detected.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 hdmi audio Hardware Device is not present in user space after kernel detected.

3,022件の閲覧回数
YamilGarcia
Contributor III

I'm trying imx6 using Nitrogen6X board from boundary device to evaluate the multimedia capabilities of imx6, the rootfs was created by linuxlink tool from timesys.

When I use hdmi output as the audio device for gstreamer, gst-launch tool prompt the error showed below:

Playback open error on device 'hw:1,0': No such file or directory

When I check the playback hardware devices present in my board, the hdmi audio is not present as shown below:

# aplay -l

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

card 0: sgtl5000audio [sgtl5000-audio], device 0: HiFi sgtl5000-0 []

  Subdevices: 1/1

  Subdevice #0: subdevice #0

#

But the kernel detected the hardware correctly when bootup, a portion of kernel output is shown below:

asoc: sgtl5000 <-> imx-ssi.1 mapping ok

imx_3stack asoc driver

asoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping ok

ALSA device list:

  #0: sgtl5000-audio

  #1: imx-hdmi-soc

In user space I check that devices for audio were created correctly, as shown below:

# cat /proc/asound/cards

0 [sgtl5000audio  ]:  - sgtl5000-audio

                      sgtl5000-audio

1 [imxhdmisoc     ]:  - imx-hdmi-soc

                      imx-hdmi-soc

#

The kernel does not have any problem because I tryied with another rootfs and the hdmi audio device worked fine, but I would like to use this new rootfs which have support for many codecs.

Can someone help me to figure out what happen?

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

1,260件の閲覧回数
zhaozhao
Contributor III

Hi Yamil

     suppose your hdmi setting is :  

               HDMI        : /dev/fb2 <-----> /dev/video18


     you can try this:

                             $  echo 0 > /sys/class/graphics/fb2/blank

                              $  echo 1 > /sys/class/graphics/fb2/blank

     your hdmi audio output may be ok now.

1,260件の閲覧回数
francoisrey
Contributor III

I have the same problem, I use a rfs created by Timesys. Have you solve your problem ?

0 件の賞賛
返信

1,260件の閲覧回数
bingking88
Contributor I

  #1: imx-hdmi-soc, Is valid only when you use local HDMI!

0 件の賞賛
返信

1,260件の閲覧回数
fengwei
NXP Employee
NXP Employee

"aplay -l" behavior is mostly controlled by alsa-lib.

What's the difference between alsa-lib in old and new root fs? libasound2.so version at /usr/lib? alsa configurations at /usr/share/alsa?

0 件の賞賛
返信

1,260件の閲覧回数
YamilGarcia
Contributor III


The old rootfs was created by freescale LTIB L3.0.15_12.04.01 tool using alsa-lib-1.0.24.1.This rootfs works fine and always show both audio devices (sgtl5000-audio and hdmi-audio).

New rootfs was created by Timesys factory-20121015 tool using alsa-lib-1.0.25, but it only shows sgtl5000-audio devices.

0 件の賞賛
返信