Just got a Pi Zero up and running Raspbian Lite.
Basically you build an image with a wpa_supplicant.conf file in /boot
and also an empty ssh file to enable ssh
Well it saves having to buy Micro HDMI cables!
and you don’t even need a mains PSU … .
Now trying to add the audioinjector card.
# Uncomment some or all of these to enable the optional hardware interfaces dtparam=i2c_arm=on dtparam=i2s=on dtparam=spi=on # Uncomment this to enable the lirc-rpi module #dtoverlay=lirc-rpi dtoverlay=i2s-mmap # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) # dtparam=audio=on # Soundcard Config dtoverlay=audioinjector-wm8731-audio
And there we have it
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
It’s amazing how quickly you forget this stuff. . .
Mind you …
aplay Deathwish.wav Playing WAVE 'Deathwish.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Followed by . …
aplay: pcm_write:2011: write error: Input/output error
So a quick visit to the audio injector forum . . . .
Turning on Audio Mixer
In this case, as “Output Mixer HiFi” is not enabled, ALSA will not playback and has a write error.
To fix, open alsamixer from the command line and use the right/left arrows to highlight the “Output Mixer HiFi” control. Once highlighted press “m” to mute or enable this control.
And we have Music!!!