JvanKatwijk / dab-cmdline

DAB decoding library with example of its use
GNU General Public License v2.0
57 stars 29 forks source link

ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave #13

Closed sjdean closed 6 years ago

sjdean commented 7 years ago

So far I've not had any problems with Audio, in that PulseAudio works fine for A2DP Bluetooth, Hands Free, local music playback, web browsing, and also rtl_fm.

However both example-1 and example-2 give me the following. Any thoughts?

Im looking to build a CarPC, so hoping I can build up on this. Looking to build a Python front end in KODI and hopefully get a channel scan and tuning setup. Hopefully borrow some bits from your Qt version at some point :-)

First thing though, is getting some audio from the thing!

Simon

pi@master:~/Downloads/dab-cmdline-master/example-1/build $ ./dab_cmdline -M 1 -B "BAND III" -C 12C -P "Radio 4" -G 80 -A default dab_cmdline, Copyright 2017 J van Katwijk, Lazy Chair ComputingALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline Hostapis: 2 Api 0 is ALSA Api 1 is OSS selecting device default device bcm2835 ALSA: - (hw:0,0) seems available as 0 device bcm2835 ALSA: IEC958/HDMI (hw:0,1) seems available as 1 device sysdefault seems available as 2 device pulse seems available as 3 ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave . . . ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735 Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767 device default seems available as 5 Suggested size for outputbuffer = 1280 Segmentation fault

JvanKatwijk commented 7 years ago

It does not look like an output problem. What device did you specify?

2017-07-31 22:27 GMT+02:00 sjdean notifications@github.com:

So far I've not had any problems with Audio, in that PulseAudio works fine for A2DP Bluetooth, Hands Free, local music playback, web browsing, and also rtl_fm.

However both example-1 and example-2 give me the following. Any thoughts?

Im looking to build a CarPC, so hoping I can build up on this. Looking to build a Python front end in KODI and hopefully get a channel scan and tuning setup. Hopefully borrow some bits from your Qt version at some point :-)

First thing though, is getting some audio from the thing!

Simon

pi@master:~/Downloads/dab-cmdline-master/example-1/build $ ./dab_cmdline -M 1 -B "BAND III" -C 12C -P "Radio 4" -G 80 -A default dab_cmdline, Copyright 2017 J van Katwijk, Lazy Chair ComputingALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline Hostapis: 2 Api 0 is ALSA Api 1 is OSS selecting device default device bcm2835 ALSA: - (hw:0,0) seems available as 0 device bcm2835 ALSA: IEC958/HDMI (hw:0,1) seems available as 1 device sysdefault seems available as 2 device pulse seems available as 3 ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave . . . ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735 Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767 device default seems available as 5 Suggested size for outputbuffer = 1280 Segmentation fault

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwIxW4fs49jq5dzabv7gpaSMto9Neks5sTjjNgaJpZM4Oo4i5 .

-- Jan van Katwijk

+31 (0)15 3698980 +31 (0) 628260355

sjdean commented 7 years ago

Not quite sure how to specify the device. Tried -A default, bcm2835 and pulse with same results. The Qt-DAB works fine and that goes to default.

On 31 Jul 2017 9:52 pm, "JvanKatwijk" notifications@github.com wrote:

It does not look like an output problem. What device did you specify?

2017-07-31 22:27 GMT+02:00 sjdean notifications@github.com:

So far I've not had any problems with Audio, in that PulseAudio works fine for A2DP Bluetooth, Hands Free, local music playback, web browsing, and also rtl_fm.

However both example-1 and example-2 give me the following. Any thoughts?

Im looking to build a CarPC, so hoping I can build up on this. Looking to build a Python front end in KODI and hopefully get a channel scan and tuning setup. Hopefully borrow some bits from your Qt version at some point :-)

First thing though, is getting some audio from the thing!

Simon

pi@master:~/Downloads/dab-cmdline-master/example-1/build $ ./dab_cmdline -M 1 -B "BAND III" -C 12C -P "Radio 4" -G 80 -A default dab_cmdline, Copyright 2017 J van Katwijk, Lazy Chair ComputingALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline Hostapis: 2 Api 0 is ALSA Api 1 is OSS selecting device default device bcm2835 ALSA: - (hw:0,0) seems available as 0 device bcm2835 ALSA: IEC958/HDMI (hw:0,1) seems available as 1 device sysdefault seems available as 2 device pulse seems available as 3 ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave . . . ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735 Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767 device default seems available as 5 Suggested size for outputbuffer = 1280 Segmentation fault

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/ AITzwIxW4fs49jq5dzabv7gpaSMto9Neks5sTjjNgaJpZM4Oo4i5 .

-- Jan van Katwijk

+31 (0)15 3698980 <+31%2015%20369%208980> +31 (0) 628260355 <+31%206%2028260355>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13#issuecomment-319192918, or mute the thread https://github.com/notifications/unsubscribe-auth/AWmm9COaCnVGIuHFAVAQiIrpwB1RW732ks5sTj6SgaJpZM4Oo4i5 .

JvanKatwijk commented 7 years ago

No I mean in generating the executable. mkdir build cd build cmake .. -DXXX=ON

The error you showed was more likely an error with the radio device than with the audio output

2017-08-01 0:10 GMT+02:00 sjdean notifications@github.com:

Not quite sure how to specify the device. Tried -A default, bcm2835 and pulse with same results. The Qt-DAB works fine and that goes to default.

On 31 Jul 2017 9:52 pm, "JvanKatwijk" notifications@github.com wrote:

It does not look like an output problem. What device did you specify?

2017-07-31 22:27 GMT+02:00 sjdean notifications@github.com:

So far I've not had any problems with Audio, in that PulseAudio works fine for A2DP Bluetooth, Hands Free, local music playback, web browsing, and also rtl_fm.

However both example-1 and example-2 give me the following. Any thoughts?

Im looking to build a CarPC, so hoping I can build up on this. Looking to build a Python front end in KODI and hopefully get a channel scan and tuning setup. Hopefully borrow some bits from your Qt version at some point :-)

First thing though, is getting some audio from the thing!

Simon

pi@master:~/Downloads/dab-cmdline-master/example-1/build $ ./dab_cmdline -M 1 -B "BAND III" -C 12C -P "Radio 4" -G 80 -A default dab_cmdline, Copyright 2017 J van Katwijk, Lazy Chair ComputingALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline Hostapis: 2 Api 0 is ALSA Api 1 is OSS selecting device default device bcm2835 ALSA: - (hw:0,0) seems available as 0 device bcm2835 ALSA: IEC958/HDMI (hw:0,1) seems available as 1 device sysdefault seems available as 2 device pulse seems available as 3 ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave . . . ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735 Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767 device default seems available as 5 Suggested size for outputbuffer = 1280 Segmentation fault

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/ AITzwIxW4fs49jq5dzabv7gpaSMto9Neks5sTjjNgaJpZM4Oo4i5 .

-- Jan van Katwijk

+31 (0)15 3698980 <+31%2015%20369%208980> <+31%2015%20369%208980> +31 (0) 628260355 <+31%206%2028260355> <+31%206%2028260355>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13#issuecomment- 319192918, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWmm9COaCnVGIuHFAVAQiIrpwB1RW732ks5sTj6SgaJpZM4Oo4i5 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/13#issuecomment-319211247, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwDkVn9zz3cwhoTbHKij22PlKaq_Yks5sTlDogaJpZM4Oo4i5 .

-- Jan van Katwijk

+31 (0)15 3698980 +31 (0) 628260355