Raspberry Pi 4 Mode...
 
Notifications
Clear all

Raspberry Pi 4 Model B Audio

6 Posts
5 Users
3 Reactions
1,655 Views
chrisbuy
(@chrisbuy)
Member
Joined: 6 years ago
Posts: 71
Topic starter  

Who got audio working for the Raspberry Pi 4 Model B?

Originally I got during installing the I2S_AUDIO_KERNEL_MODULE...

qbo@qbo:/tmp/rpi-i2s-audio$ sudo make install
make -C /lib/modules/4.19.58-v7l+/build M=/tmp/rpi-i2s-audio modules modules_install
make[1]: Map '/usr/src/linux-headers-4.19.58-v7l+' gets entered
Building modules, stage 2.
MODPOST 1 modules
INSTALL /tmp/rpi-i2s-audio/my_loader.ko
DEPMOD 4.19.58-v7l+
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Map '/usr/src/linux-headers-4.19.58-v7l+' is exited

So I recompiled myself the kernel in order to get a valid System.map. The error is gone but NO AUDIO!

When I run ' aplay -l', I still get...

* List of PLAYBACK Hardware Devices *
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
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
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

And I run 'arecord -l', I am getting...

* List of CAPTURE Hardware Devices *

What am I doing wrong? Does anybody know?

lsmod shows my_loader...

 

--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com


   
Quote
chrisbuy
(@chrisbuy)
Member
Joined: 6 years ago
Posts: 71
Topic starter  

When I start under Python 3, I get the following error messages...

launching PiFaceFast
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
/opt/qbo/PiFaceFast.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Mode: Dialogflow
Traceback (most recent call last):
File "/opt/qbo/PiFaceFast.py", line 47, in <module>
talk = QBOtalk()
File "/opt/qbo/assistants/QboTalk.py", line 29, in __init__
with self.m as source:
AttributeError: 'QBOtalk' object has no attribute 'm'

--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com


   
ReplyQuote
(@evvylodish)
New Member
Joined: 5 years ago
Posts: 1
 

Hi.....i think the changes for Pi that are not yet merged into the official kernel release are all very clean and stable. The default kernel is right now 4.14.z, but you can also try out the current 4.18 release kernel together with the Pi changes from.


   
ReplyQuote
(@greybeard81)
Eminent Member
Joined: 6 years ago
Posts: 20
 

I would like to find the information on the open-source hardware and software for qBO.  I want to change the voice to a recognizable natural voice.  I would like to amplify it so I can demonstrate it to a group.  Help!


   
ReplyQuote
Qbo Robot
(@nonogrub)
Member Admin
Joined: 8 years ago
Posts: 185
 

Hi!.

Just finished an Amplifier for Q.bo.
Here it is during its final play test, after going thru a myriad of tests and burn-in. We will announce very soon. 😊


   
ReplyQuote
(@romeo)
Member
Joined: 6 years ago
Posts: 76
 

https://www.amazon.com/ROBOTICS-EDUCATION-CODING-English-version/dp/B0BRMT29KC/ref=sr_1_1?crid=3HLX2FOV83UZV&keywords=qbo+coding+for+stem&qid=1679435736&s=books&sprefix=qbo+coding+for+stem%2Cstripbooks-intl-ship%2C195&sr=1-1

I advise you to read my textbook to implement Q.BO STEM or Q.BO One at the latest version, with which you can also make it play with chat-gpt.


   
ReplyQuote
Share: