On Saturday, 5 December 2020 12:22:05 GMT Ralph Corderoy wrote:
> As it says, is the device in use?  Is there anything else running which
> would decide to use the default audio device?

If there is, I didn't start it.

A thought has just occurred to me.  I'm wondering if the Adafruit Bonnet grabs 
the interface as soon as the system boots and hangs on to it after that.  It 
would make sense because the speakers sometimes click part way through the 
boot sequence.

If that is the case it would explain why I can't grab it any other way.

> Are you aware of
> https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/instructions
> ?  I don't know if it's applicable to your AdaFruit device.

I don't think it is because the Bonnet interfaces to the Pi via I2C not USB.

Thanks for pointing it out.

> Also, have you edited /usr/share/alsa/alsa.conf?  Does it still contain
> ‘pcm.front cards.pcm.front’?  Does the error stop appearing if you

Yes it does.

> change that to ‘pcm.front cards.pcm.default’?

The error changes to:

ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM 
cards.pcm.front.default

:-)
 
> BTW, ‘aplay -L’ will list the PCMs, and

This gives me:

pi@minster-music:~/Music/Playlist1 $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
speakerbonnet
dmixer
softvol
default
sysdefault:CARD=sndrpihifiberry
    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
    Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
    Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
    Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
    Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
    Hardware device with all software conversions

> https://www.alsa-project.org/wiki/Asoundrc#Global_view_of_ALSA_config_file_f
> ramework.2C_executive_summary describes how the configuration files tie
> together.

Thanks.  I'll have a look at that.

-- 



                Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-01-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to