Why Using ALSA Audio Capture Block in Raspberry Pi B+, I cannot open audio device: " 'hw:1,1': No such file or directory"? I need help. (Simulink - Matlab 2015a)

8 views (last 30 days)
Hello,
I'm trying to use the ALSA Audio Capture Block in Simulink in a Raspberry Pi Model B+, in Matlab R2015a, from the Simulink Support Package for Raspberry Pi, but when I try to select an audio device, it always says:
Cannot open audio device 'hw:1,1': No such file or directory.
I'm using a USB audio card, recognized by Matlab when I use:
h=raspberrypi; execute(h,'aplay -l', true)
And the output:
------------------------------
**** List of PLAYBACK Hardware Devices ****
card 0: 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 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
--------------------------------
I have tried using all the different combinations (hw:0,0; hw:0,1...)
Does anyone know how to fix this and use the block properly?
Thank you for any help.
Regards,
Juane
  5 Comments
Rinus Boone
Rinus Boone on 26 Feb 2016
Edited: Rinus Boone on 4 Mar 2016
Finally I found this thread. I think that I have the same problem because ALSA Audio Capture does not work for me too. I use 2015b. I hope that MATLAB can resolve this problem.

Sign in to comment.

Answers (0)

Categories

Find more on Raspberry Pi Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!