Re: mixerctl with no args

2017-02-23 Thread Robert Elz
Date:Thu, 23 Feb 2017 12:39:24 +0200 From:Andreas Gustafsson Message-ID: <22702.48092.78965.364...@guava.gson.org> | I suppose this is possible, but I think such cases would be rare enough | that there is no harm in skipping the tests on those. Sounds reasonable.

Re: mixerctl with no args

2017-02-23 Thread Andreas Gustafsson
Robert Elz wrote: > | (/dev/null > > Is it guaranteed that audio0 exists if any audio does? Including > with kernel configs that wire down devices to specific hardware? > That is, is it possible that audio1 might exist when audio0 doesn't? I suppose this is possible, but I think such cases

Re: mixerctl with no args

2017-02-23 Thread Robert Elz
Date:Thu, 23 Feb 2017 12:01:05 +0200 From:Andreas Gustafsson Message-ID: <22702.45793.582015.94...@guava.gson.org> | How about the following command? | (/dev/null Is it guaranteed that audio0 exists if any audio does? Including with kernel configs that wire d

Re: mixerctl with no args

2017-02-23 Thread Martin Husemann
On Thu, Feb 23, 2017 at 05:05:07PM +0700, Robert Elz wrote: > Is this new with the in-kernel audio mixer ? Yes, but Andreas' suggestion sounds even simpler. Martin

Re: mixerctl with no args

2017-02-23 Thread Robert Elz
Date:Thu, 23 Feb 2017 10:43:08 +0100 From:Martin Husemann Message-ID: <20170223094308.gb10...@mail.duskware.de> | Not sure this is good, but you get |hw.${audioif}.{frequency,precision,channels} Is this new with the in-kernel audio mixer ? If so that would e

Re: mixerctl with no args

2017-02-23 Thread Andreas Gustafsson
Robert Elz wrote: > I totally agree, and if you know a rational way that a shell script > (which is what the test is) can determine "no audio" I'll happily > change it that way. How about the following command? (/dev/null This should yield a zero exit status iff /dev/audio0 can be opened for r

Re: mixerctl with no args

2017-02-23 Thread Martin Husemann
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)

Re: mixerctl with no args

2017-02-23 Thread Robert Elz
Date:Thu, 23 Feb 2017 10:35:59 +0200 From:Andreas Gustafsson Message-ID: <22702.40687.501826.594...@guava.gson.org> | The criterion for skipping the tests should be "no audio", not | "running under qemu" I totally agree, and if you know a rational way that a shel

Re: mixerctl with no args

2017-02-23 Thread Andreas Gustafsson
Robert Elz wrote: > I noticed that the b5 mixerctl tests fail - seems to be because the > qemu kernel the tests are run under has no audio (and hence any open > of /dev/mixer* fails). That's fine, and I can (and am in the process > of) cause the tests that will fail to simply be skipped when runn

mixerctl with no args

2017-02-22 Thread Robert Elz
I noticed that the b5 mixerctl tests fail - seems to be because the qemu kernel the tests are run under has no audio (and hence any open of /dev/mixer* fails). That's fine, and I can (and am in the process of) cause the tests that will fail to simply be skipped when running under qemu. But one o