question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When looking at my logs with pm2 logs MagicMirror I can see lot of this kind of errors: 0|MagicMir | ALSA lib pcm.c:8389:(snd_pcm_set_params) Channels count (1) not available for PLAYBACK: Invalid argument

I am using usb sound card (Blackstorm Spectrum 5.1) on my raspberry pi and it is working fine. Alexa can hear me and I can hear her. But that log is pretty alarming 🤔

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
henrikracommented, Mar 16, 2018

Wow did not notice that this is still open. I fixed this long time ago 😄 Thanks for the help

0reactions
E3V3Acommented, Mar 16, 2018

@henrikra What is the output of these?

cat /proc/asound/modules
cat /proc/asound/cards
amixer

I think the problem is that THAT config still doesn’t set the device plug default correctly.

Try this:

pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}

ctl.!default {
        type hw
        card 1
}

and restart alsa server with: sudo /etc/init.d/alsa-utils restart.

Read more comments on GitHub >

github_iconTop Results From Across the Web

the C library reference: Error handling - ALSA project
A function of this type is called by the ALSA library when an error occurs. This function usually shows the message on the...
Read more >
Advanced Linux Sound Architecture/Troubleshooting - ArchWiki
More info is available in the ALSA documentation. Error 'Unknown hardware' appears after kernel update. The following messages may be displayed during ALSA's ......
Read more >
Error in alsa - Rust - Docs.rs
ALSA error. Most ALSA functions can return a negative error code. If so, then that error code is wrapped into this Error struct....
Read more >
Configuring Sound on Linux/ALSA/Troubleshooting - Wikibooks
If you encounter the following error it simply means you are targeting a non-existent or erroneous device: $ cat /dev/urandom | aplay ALSA...
Read more >
Payment error - Alsa
Steps to take and solutions if an error occurs when purchasing tickets on the Alsa website. Our help centre is there for all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found