Open Rippert opened 6 years ago
I think I have a solution for this. At least it has worked for the last few reboots.
With the USB-MIDI interface unplugged, I opened alsamixer, and then set everything up manually so that the Audio Injector was working. Then I entered:
sudo alsactl store
Now it seems that I can reboot with the USB-MIDI interface attached and the audio injector card keeps working.
The stereo card does not work with Jack or Carla (using direct alsa driver) when my RPI3 B is started with a USB MIDI interface attached. They both see the card, but alsa times out with no response when they try to access it.
When I run your setup script:
sudo alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore
I get these errors:
No state is present for card mio Found hardware: "USB-Audio" "USB Mixer" "USB2321:000a" "" "" Hardware is initialized using a generic method No state is present for card mio
Where "mio" is my USB MIDI interface.
If I remove (hot unplug) the USB interface, then the script works and the card is restored to functioning.
When the card is not functioning, it still shows up as being available:
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0
and:
aplay -L null Discard all samples (playback) or generate zero samples (capture) default:CARD=audioinjectorpi audioinjector-pi-soundcard, Default Audio Device sysdefault:CARD=audioinjectorpi audioinjector-pi-soundcard, Default Audio Device dmix:CARD=audioinjectorpi,DEV=0 audioinjector-pi-soundcard, Direct sample mixing device dsnoop:CARD=audioinjectorpi,DEV=0 audioinjector-pi-soundcard, Direct sample snooping device hw:CARD=audioinjectorpi,DEV=0 audioinjector-pi-soundcard, Direct hardware device without any conversions plughw:CARD=audioinjectorpi,DEV=0 audioinjector-pi-soundcard, Hardware device with all software conversions default:CARD=mio Default Audio Device sysdefault:CARD=mio Default Audio Device
So a workaround is to unplug the MIDI interface, boot the system, and then hot-plug it back in, or hot-unplug, re-run your script, and then hot-plug the interface.
I was hoping to use your card as part of an embedded audio/MIDI interface, but that won't work with this bug.