Conflict i2c-dev and snd-bcm2835 Conflict - Raspberry Pi Forums


i have problem appears odd conflict between i2c-dev , snd-bcm2835
occurs when trying play multiple sound files (in case mp3's) simultaneously using 2 or more terminals ssh mac across ethernet.

background
final application (a model amusement park 11yo son's school project) require multiple short sound effects being played simultaneously multiple channel control of lighting , motors using adafruit 16 ch pwm
doing smd soldering (about 1000 resistors , leds) , model making, doing background programming (by seat of pants) , timing , pattern configuring - great project , form basis of in school rpi sessions

"snd-bcm2835" in /etc/modules config works fine
both "snd-bcm2835" , "i2c-dev" there problems

eg first , command work fine , play ok, second or third instance receive
mpg123 smooth.mp3
[module.c:142] error: failed open module jack: file not found
[module.c:142] error: failed open module portaudio: file not found
[pulse.c:84] error: failed open pulse audio output: connection refused
[nas.c:220] error: not open default nas server
[module.c:142] error: failed open module openal: file not found
[audio.c:180] error: unable find working output module in list: alsa,oss,jack,portaudio,pulse,nas,openal
[audio.c:532] error: failed open audio output module
[mpg123.c:897] error: failed initialize output, goodbye.

if have "snd-bcm2835"in /etc/modules , manually " sudo modprobe i2c-dev" can both play multiple mp3 files , detect pwm using "sudo i2cdetect -y 1"

have tried various players mpg123 being main 1 , omxplayer , fiddled 2 others.
works on revb 256mb , 512mb versions
of yesterday have updated , upgraded latest software , firmware revisions
using class10, 16gb sd card - expanded root partition
seems same either hdmi audio out or std audio out.
files have tried range 11khz 44khz encoded, 20kb 5mb file size - problem same seeming indicate encoding , file size arent related.

if same above called python3 script running them background processes rpi hangs requiring power cycle restore - m sure code trying kill previous background process.

should add separate problem having trouble using python3 , controlling pwm - there doesnt appear smbus module/library !

hoping can help

thanks

rally

ps project has handed in week !



raspberrypi



Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums