Re: 4a-smixer ERROR & configration file

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

 



Dear Sitech,

May I assume that if you reached that step, it is that you solved or worked around the "malloc" issue you had ? If yes, would you mind sharing with us how you did ?

Now, about your new question:

The softmixer is failing while trying to open the read side of the snd-aloop device. With the little information we have here in your log, it is pretty hard to say why.

This is what you should have:

INFO: [API smixer] CreateOneStream, stream 2ch-generic-usb multimedia, source (null), sink full-stereo, mute 0
INFO: [API smixer] CreateOneStream: found loopdev 1,2

But you get this:

INFO: [API smixer] CreateOneStream: 2ch-generic-usb not found in loop, look in sources

This is really unexpected. With a null source given as an argument, the subdev "2" should automatically be opened. For information, "look in source" is a special fallback for the softmixer to directly read from hardware capture devices (microphones, radio ...), and this it not what you want here.

I suggest you have a look at the ApiLoopFindSubdev function (in alsa-api-loop.c) and try to understand how come it returns NULL.

Regards,
Thierry

On 08/17/2018 10:30 AM, Sitech wrote:
Hi,
When I wanna to use 4a to manager an external sound card and play some music, but i got some errors, i think must be some problem in my configuration files. So i hope friends to give me some advices, here is my log and attachment is my configuration file.

```log
Aug  8 08:28:30 raspberrypi3 daemon.info afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  INFO: [API smixer] MixerAttachVerb set RAMPS [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-mixer.c:608,MixerAttachVerb] Aug  8 08:28:30 raspberrypi3 daemon.info afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  INFO: [API smixer] MixerAttachVerb set STREAMS [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-mixer.c:618,MixerAttachVerb] Aug  8 08:28:30 raspberrypi3 daemon.info afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  INFO: [API smixer] ApiStreamAttach: 2ch-generic-usb prefix 2ch-usb [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-streams.c:508,ApiStreamAttach] Aug  8 08:28:30 raspberrypi3 daemon.notice afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  NOTICE: [API smixer] ApiPcmSetParams:multimedia format set to SND_PCM_FORMAT_S16_LE [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-pcm.c:401,ApiPcmSetPar Aug  8 08:28:30 raspberrypi3 daemon.notice afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  NOTICE: [API smixer] ApiPcmSetParams:multimedia access set to (null) [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-pcm.c:420,ApiPcmSetParams] Aug  8 08:28:30 raspberrypi3 daemon.info afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  INFO: [API smixer] CreateOneStream, stream 2ch-generic-usb multimedia, source (null), sink full-stereo, mute 0 [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa Aug  8 08:28:30 raspberrypi3 daemon.info afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  INFO: [API smixer] CreateOneStream: 2ch-generic-usb not found in loop, look in sources [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-streams.c:218,Creat Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: [API smixer] CreateOneStream: mixer=Alsa-Mixer stream=multimedia not found in loops/sources [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-streams Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: [API smixer] AttachOneStream: failed to create stream [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-streams.c:494,AttachOneStream] Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: [API smixer] AttachOneStream fail [/usr/src/debug/4a-softmixer/0.1+gitAUTOINC+ded8e37b50-r0/git/plugins/alsa/alsa-api-streams.c:502,AttachOneStream] Aug  8 08:28:30 raspberrypi3 daemon.warn afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  WARNING: [API 4a-hal-2ch-generic-usb] Api smixer and verb attach found, but this error was raised : 'invalid-syntax' with this info : 'ApiStreamAttach: mixer=Alsa-Mixer invalid stream= { "ui Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: [API 4a-hal-2ch-generic-usb] Error -10 during call to verb attach of smixer api with status 'invalid-syntax' and info 'ApiStreamAttach: mixer=Alsa-Mixer invalid stream= { "uid": "mult Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: [API 4a-hal-2ch-generic-usb] HalCtlsInitOneApi: Error -7 while attaching to mixer [/home/albert/files/agl/code/audio-4a-backup/4a-hal-generic/4a-hal/4a-hal-controllers/4a-hal-controll Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: Initialisation of service API 4a-hal-2ch-generic-usb failed (-4): Success [/home/albert/files/agl/code/app-framework-binder-2/src/afb-export.c:1702,afb_export_start] Aug  8 08:28:30 raspberrypi3 daemon.err afbd-agl-service-audio-4a@1.0-11d2ae9[538]:  ERROR: The api 4a-hal-2ch-generic-usb failed to start [/home/albert/files/agl/code/app-framework-binder-2/src/afb-apiset.c:799,start_api]
```

raspberrypi3:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: 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 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: Device [USB Audio Device], device 0: USB Audio [USB Audio]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: 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 2: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
   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

raspberrypi3:/dev/snd# ls ./* -al
crw-rw----  1 root audio 116,   0 Aug  8 08:28 ./controlC0
crw-rw----  1 root audio 116,  32 Aug  8 08:28 ./controlC1
crw-rw----  1 root audio 116,  64 Aug  8 08:28 ./controlC2
crw-rw----  1 root audio 116,  96 Aug  8 08:28 ./controlC3
crw-rw----  1 root audio 116,  24 Aug  8 08:28 ./pcmC0D0c
crw-rw----  1 root audio 116,  16 Aug  8 08:28 ./pcmC0D0p
crw-rw----  1 root audio 116,  25 Aug  8 08:28 ./pcmC0D1c
crw-rw----  1 root audio 116,  17 Aug  8 08:28 ./pcmC0D1p
crw-rw----  1 root audio 116,  56 Aug  8 08:28 ./pcmC1D0c
crw-rw----  1 root audio 116,  48 Aug  8 08:28 ./pcmC1D0p
crw-rw----  1 root audio 116,  80 Aug  8 08:28 ./pcmC2D0p
crw-rw----  1 root audio 116,  81 Aug  8 08:28 ./pcmC2D1p
crw-rw----  1 root audio 116, 112 Aug  8 08:28 ./pcmC3D0p
crw-rw----. 1 root audio 116,   1 Aug  8 08:28 ./seq
crw-rw----  1 root audio 116,  33 Aug  8 08:28 ./timer

./by-id:
total 0
drwxr-xr-x. 2 root root  60 Aug  8 08:28 .
drwxr-xr-x. 4 root root 380 Aug  8 08:28 ..
lrwxrwxrwx  1 root root  12 Aug  8 08:28 usb-C-Media_Electronics_Inc._USB_Audio_Device-00 -> ../controlC1

./by-path:
total 0
drwxr-xr-x. 2 root root 120 Aug  8 08:28 .
drwxr-xr-x. 4 root root 380 Aug  8 08:28 ..
lrwxrwxrwx. 1 root root  12 Aug  8 08:28 platform-3f902000.hdmi -> ../controlC3 lrwxrwxrwx  1 root root  12 Aug  8 08:28 platform-3f980000.usb-usb-0:1.3:1.0 -> ../controlC1 lrwxrwxrwx. 1 root root  12 Aug  8 08:28 platform-snd_aloop.0 -> ../controlC0
lrwxrwxrwx  1 root root  12 Aug  8 08:28 platform-soc:audio -> ../controlC2


raspberrypi3:/dev/snd# ls /proc/asound/ -al
total 0
dr-xr-xr-x   8 root root 0 Aug  8 08:54 .
dr-xr-xr-x 185 root root 0 Jan  1  1970 ..
lrwxrwxrwx   1 root root 5 Aug  8 08:54 ALSA -> card2
lrwxrwxrwx   1 root root 5 Aug  8 08:54 Device -> card1
lrwxrwxrwx   1 root root 5 Aug  8 08:54 Loopback -> card0
dr-xr-xr-x   6 root root 0 Aug  8 08:54 card0
dr-xr-xr-x   4 root root 0 Aug  8 08:54 card1
dr-xr-xr-x   4 root root 0 Aug  8 08:54 card2
dr-xr-xr-x   3 root root 0 Aug  8 08:54 card3
-r--r--r--   1 root root 0 Aug  8 08:54 cards
-r--r--r--   1 root root 0 Aug  8 08:54 devices
-r--r--r--   1 root root 0 Aug  8 08:54 hwdep
dr-xr-xr-x   2 root root 0 Aug  8 08:54 oss
-r--r--r--   1 root root 0 Aug  8 08:54 pcm
dr-xr-xr-x   2 root root 0 Aug  8 08:54 seq
-r--r--r--   1 root root 0 Aug  8 08:54 timers
lrwxrwxrwx   1 root root 5 Aug  8 08:54 vc4hdmi -> card3
-r--r--r--   1 root root 0 Aug  8 08:54 version
raspberrypi3:/dev/snd# cat /proc/asound/devices
   0: [ 0]   : control
  16: [ 0- 0]: digital audio playback
  17: [ 0- 1]: digital audio playback
  24: [ 0- 0]: digital audio capture
  25: [ 0- 1]: digital audio capture
  32: [ 1]   : control
  33:        : timer
  48: [ 1- 0]: digital audio playback
  56: [ 1- 0]: digital audio capture
  64: [ 2]   : control
  80: [ 2- 0]: digital audio playback
  81: [ 2- 1]: digital audio playback
  96: [ 3]   : control
112: [ 3- 0]: digital audio playback


Thanks,
Sitech


_______________________________________________
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