Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine sound card type with bash?

Tags:

linux

bash

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.

Edit: On my machine, I needed to use sudo to be able to use lspci and lsmod. @Quassnoi's answer using cat worked without extra privileges.

like image 858
Scottie T Avatar asked Dec 04 '22 16:12

Scottie T


2 Answers

lspci | grep -i audio
like image 200
Sean Bright Avatar answered Dec 06 '22 05:12

Sean Bright


cat /proc/asound/cards
like image 35
Quassnoi Avatar answered Dec 06 '22 05:12

Quassnoi