title: How do I determine sound card type with bash?
body: <p>In bash, how do I determine what sound card is installed?  I'm trying to create a plugin for Rhythmbox, and I'd like to test for this in a configuration script.</p>
  
  <p><strong>Edit:</strong>
  On my machine, I needed to use <code>sudo</code> to be able to use <code>lspci</code> and <code>lsmod</code>.  @<a href="https://stackoverflow.com/questions/517522/how-do-i-determine-sound-card-type-with-bash/517549#517549">Quassnoi</a>'s answer using <code>cat</code> worked without extra privileges.</p>