Re: afm-mediaplayer-binding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sitech,

Please have a look at the "playbacks" section in the .json file.
The playback device is identified by the /dev/snd/by-id entry

In the version in git, you have
/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00

which is one of the devices we support and that is used in our tests.

With aplay, it is listed as such:
card 2: Device [USB Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I am pretty sure that yours does not match this one, since on my side
the short name is "USB Sound Device" and on yours, it is "USB Audio Device"

Please check what you have in /dev/snd/by-id and try to put it in the .json

Cheers,
Thierry

On 08/10/2018 07:01 AM, Sitech wrote:

Hi friend,
Follow your advice, I buy a new simple usb sound card device, the device is ok, but still no sound, and the mail attachments is a picture of my platform, should i modify the "hal-4a-2ch-generic-usb.json" file? By the way, there are some log files, kernel.log & /var/log/messages.

1.
raspberrypi3:~/albert/log# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
   Subdevices: 7/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 3: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 []
   Subdevices: 1/1
   Subdevice #0: subdevice #0

2.
raspberrypi3:~/albert/log# ls /media/ -al
total 40140
drwxr-xr-x   2 root root     4096 Aug  8 08:30 .
drwxr-xr-x  18 root root     4096 Aug  8  2018 ..
-rw-r--r--.  1 root root 41094140 Aug  8 08:30 Tyga - Taste.wav

So, really hope more advices.
Cheers,
Sitech
------------------ Original ------------------
*From: * "Sitech"<developer_agl@xxxxxxx>;
*Date: * Tue, Aug 7, 2018 06:37 PM
*To: * "Fulup Ar Foll"<fulup.arfoll@xxxxxxx>; "automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx"<automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx>;
*Subject: * Re:  afm-mediaplayer-binding
Hello,
Very thanks for your apply! I will try to rebuild the project and remove pulseaudio.And as you said, I will try to fix the Rpi3 BSP problem.
Thanks.
------------------ Original ------------------
*From: * "Fulup Ar Foll"<fulup.arfoll@xxxxxxx>;
*Date: * Tue, Aug 7, 2018 05:46 PM
*To: * "Sitech"<developer_agl@xxxxxxx>; "automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx"<automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx>;
*Subject: * Re:  afm-mediaplayer-binding
Sitech

As Loic said when using AGL/FF the media player should not rely on
pulse. Your log clearly shows that you try to start pulse, when it
should not. This should be easy to fix by using latest version of FF.

This being said with Rpi3 and ever version if Linux you use, you should
face issues with the internal sound card. Alsa Mixer is broken and
unfortunately this issue does not depend on AGL, but is related to Rpi3 BSP.

Conclusion: 4A should work with AGL/FF on Rpi3 but only with an external
sound card.

Fulup

On 06/08/18 08:15, Sitech wrote:
 > Hi all,
 > When I use mediaplayer to play the audio file, at first, I can heard the
 > sound, but after one second, sound gone, and I check the log, the reason
 > is after this log, gstreamer couldn't read the audio streamer,as follow:
 >
 > Jun 14 04:32:20 raspberrypi3 daemon.info pulseaudio[379]: E:
 > [pulseaudio] module-router.c: updating source:ALSA#plug-in#[afb-daemon]
 > id=100
 > Jun 14 04:32:20 raspberrypi3 auth.notice dbus[280]: [system] Rejected
 > send message, 0 matched rules; type="method_return", sender=":1.20"
 > (uid=0 pid=379 comm="/usr/bin/pulseaudio --daemonize=no ")
 > interface="(unset)" member="(unset)" error name="(unset)"
 > requested_reply="0" d
 > Jun 14 04:32:20 raspberrypi3 auth.notice dbus[280]: [system] Rejected
 > send message, 0 matched rules; type="method_return", sender=":1.20"
 > (uid=0 pid=379 comm="/usr/bin/pulseaudio --daemonize=no ")
 > interface="(unset)" member="(unset)" error name="(unset)"
 > requested_reply="0" d
 > Jun 14 04:32:20 raspberrypi3 daemon.info pulseaudio[379]: E:
 > [pulseaudio] router-dbusif.c: source id = 100,source state = 1
 > Jun 14 04:32:20 raspberrypi3 auth.notice dbus[280]: [system] Rejected
 > send message, 0 matched rules; type="method_return", sender=":1.20"
 > (uid=0 pid=379 comm="/usr/bin/pulseaudio --daemonize=no ")
 > interface="(unset)" member="(unset)" error name="(unset)"
 > requested_reply="0" d
 >
 > and then, I check the code about pulseaudio, but I have no idea to debug
 > this problem. Does any friends meet this problem?
 >
 > Thanks
 >
 >
 > _______________________________________________
 > automotive-discussions mailing list
 > automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
 > https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions
 >



_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux