Re: Cannot start Pulse Audio when using ALSA plug-in as sound source

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

 



Maybe I will try to describe problem one more time to get everything together.
1. I am developing ALSA plugin based on external IO plug-in SDK.
2. Plug-in work with ALSA but when I try to start it Pulse Audio with pcm using this plug I get error:
I: [pulseaudio] (alsa-lib)dlmisc.c: Cannot open shared library /usr/lib/aarch64-linux-gnu/alsa-lib/libasound_module_pcm_iopdm.so
I: [pulseaudio] alsa-util.c: Error opening PCM device temp: No such device or address
E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=temp"): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.
3. As Russel Treleaven suggested I added `hint` field in `/usr/share/alsa/alsa.conf.d/iopdm.conf` file where I have configuration of my plug-in and when I list pcm's with hints it shows up.
4. Command `pasuspender -- speaker-test --nloops=1 --test=wav --channels=2 --device=temp` is not working because there is no Pulse Audio daemon working. It is because on Pulse Audio startup I get error from point 2.
5. Command ` speaker-test --nloops=1 --test=wav --channels=2 --device=temp` works as expected.
6. I would like to use Pulse Audio on top of my ALSA device because I am using Amazon Alexa which use Pulse Audio.

I am looking forward for any help!

Regards,

Krzysztof Cieniawski

pt., 9 sie 2019 o 16:51 Krzysztof Cieniawski <kcieniawski@xxxxxxxxx> napisał(a):
Yes it was hardware problem now `speaker-test` works as expected.

pt., 9 sie 2019 o 16:48 Krzysztof Cieniawski <kcieniawski@xxxxxxxxx> napisał(a):
Calling `pasuspender -- speaker-test --nloops=1 --test=wav --channels=2 --device=temp`  cause error:
`Connection failure: Connection refused
pa_context_connect() failed: Invalid argument`
With command  `speaker-test --nloops=1 --test=wav --channels=2 --device=temp` no sound is given to headphones just quiet white noise but it may be hardware fault (cable). Command work without errors.

pt., 9 sie 2019 o 16:26 Russell Treleaven <rtreleaven@xxxxxxxxxxxx> napisał(a):
Ok cool.
One more sanity test.
`pasuspender -- speaker-test --nloops=1 --test=wav --channels=2 --device=temp`
Works as expected?


On Fri, Aug 9, 2019 at 10:23 AM Krzysztof Cieniawski <kcieniawski@xxxxxxxxx> wrote:
I have added `hint` field in `/usr/share/alsa/alsa.conf.d/iopdm.conf` file where I have configuration of my plug-in and when I list pcm's with hints it shows up.


pt., 9 sie 2019 o 15:56 Russell Treleaven <rtreleaven@xxxxxxxxxxxx> napisał(a):
`aplay -L` lists pcm's with hints.
If you add a hint to your pcm does it show up in the output of `aplay -L` ?

On Fri, Aug 9, 2019 at 9:32 AM Krzysztof Cieniawski <kcieniawski@xxxxxxxxx> wrote:

Hello!

I am developing ALSA plug-in based on ALSA PCM External Plugin SDK. Plug-in is source plug and has to convert PDM signal from microphone input to PCM used by Linux. I have succeeded to compile it using cmake and I have copied it to ALSA lib directory. I have updated .asoundrc file and make right PCM connection. I am able to record sound using this plug-in with arecord command. Unfortunatelly when I start PulseAudio server I got error message:

I: [pulseaudio] (alsa-lib)dlmisc.c: Cannot open shared library /usr/lib/aarch64-linux-gnu/alsa-lib/libasound_module_pcm_iopdm.so
I: [pulseaudio] alsa-util.c: Error opening PCM device temp: No such device or address
E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=temp"): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.

I would like to use PulseAudio on top of my device because I am using Amazon Alexa which use PulseAudio. How to get things right? Where is the problem? If there is other solution available I would be grateful for it to.

On the path given in this error message there is this plug-in.

I would be very grateful for any help!

Regards,

Krzysztof Cieniawski

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


--
Sincerely,

Russell Treleaven

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


--
Sincerely,

Russell Treleaven

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux