Hi Matt,

with the aplay -l command, I get the following response:

card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector au                       dio wm8731-hifi-0 []

  Subdevices: 1/1

  Subdevice #0: subdevice #0


with the amixer command, I get these response. The difference is Mono playback=Off instead on "On".

Simple mixer control 'Master',0

  Capabilities: pvolume

  Playback channels: Front Left - Front Right

  Limits: Playback 0 - 127

  Mono:

  Front Left: Playback 90 [71%] [-31.00dB]

  Front Right: Playback 90 [71%] [-31.00dB]

Simple mixer control 'Master Playback ZC',0

  Capabilities: pswitch

  Playback channels: Front Left - Front Right

  Mono:

  Front Left: Playback [off]

  Front Right: Playback [off]

Simple mixer control 'Sidetone',0

  Capabilities: pvolume pvolume-joined

  Playback channels: Mono

  Limits: Playback 0 - 3

  Mono: Playback 2 [67%] [-9.00dB]

Simple mixer control 'Line',0

  Capabilities: cswitch

  Capture channels: Front Left - Front Right

  Front Left: Capture [off]

  Front Right: Capture [off]

Simple mixer control 'Mic',0

  Capabilities: cswitch cswitch-joined

  Capture channels: Mono

  Mono: Capture [off]

Simple mixer control 'Mic Boost',0

  Capabilities: volume volume-joined

  Playback channels: Mono

  Capture channels: Mono

  Limits: 0 - 1

  Mono: 0 [0%] [0.00dB]

Simple mixer control 'Playback Deemphasis',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]

Simple mixer control 'Capture',0

  Capabilities: cvolume

  Capture channels: Front Left - Front Right

  Limits: Capture 0 - 31

  Front Left: Capture 0 [0%] [-34.50dB]

  Front Right: Capture 0 [0%] [-34.50dB]

Simple mixer control 'ADC High Pass Filter',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [on]

Simple mixer control 'Input Mux',0

  Capabilities: enum

  Items: 'Line In' 'Mic'

  Item0: 'Line In'

Simple mixer control 'Output Mixer HiFi',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]

Simple mixer control 'Output Mixer Line Bypass',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]

Simple mixer control 'Output Mixer Mic Sidetone',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]

Simple mixer control 'Store DC Offset',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]



On Tue, Feb 18, 2020 at 10:37 AM Matt <matt@audioinjector.net> wrote:

Hi

On 18/2/20 12:16 pm, Colin Ngu via People wrote:

Hi,

I'm am running Retropie on my pi zero, and I would like to route the sound output using the Audioinjector HAT.  But no success so far.


Sounds like fun, I have a MAME arcade hardware breakout from the '90s !


I have modified config.txt with following command;
dtparam=i2c_arm=on

dtparam=i2s=on

dtparam=spi=on

dtparam=audio=off
dtoverlay=audioinjector-wm8731-audio

Typically the config.txt file only needs the following (dtparam=audio=off is probably ok) :

#dtparam=audio=on

dtoverlay=audioinjector-wm8731-audio

To be sure, you can enable i2c and i2s but may not be necessary :

dtparam=i2c_arm=on
dtparam=i2s=on


In the retropie settings menu, I have set the following;

Audio Card: SYSDEFAULT

Audio Device: MASTER

This is setting that has does not show any error.. But still no sound.

I have also tried the hat on raspberry pi4 running on rabian buster. The config.txt file is modified, and Raspbian seems to be able to detect the soundcard. But still not getting any sound.


Ok this is good, indicates it isn't a hardware issue. But we need to dig deeper.

For starters, can you run raspbian and do the following ...

Do you see the sound card when you type in :

aplay -l

Have you enabled the mixer appropriately ? Did you set the "Output Mixer HiFi" switch to on ? This will allow audio output on the sound card. You can use the alsamixer command to toggle it with a user interface.

To check, when I type :

amixer

I get the following :

Simple mixer control 'Output Mixer HiFi',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]


Would this be hardware issue? How do I confirm it?

Thanks in advance

Colin



    
-- 
Checkout the community email list :
https://lists.audioinjector.net/mailman/listinfo/people

--
People mailing list
People@lists.audioinjector.net
https://lists.audioinjector.net/mailman/listinfo/people