tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mixerctl with no args



On Thu, Feb 23, 2017 at 04:34:40PM +0700, Robert Elz wrote:
> Maybe sysctl can help?   Doesn't look like it though, the only sign
> of audio I can see is in kern.drivers, but the presence of audio there
> (which I'd expect in any generic) doesn't actually mean any audio device
> (or pseudo-device) exists.
> 
> Does anyone have any suggestions?

Not sure this is good, but you get

   hw.${audioif}.{frequency,precision,channels}

sysctl nodes for each audio interface. So on no-audio machines

  sysctl hw | fgrep .frequency

should produce no output. Could test more fancy with "sysctl hw|awk"
probably.

Martin


Home | Main Index | Thread Index | Old Index