Commit Graph

6 Commits

Author SHA1 Message Date
mrg
35f210138a if opening the audio device fails, try opening again with write-only.
this allows my playback-only usb device to be listed and tested.
2016-03-05 22:10:39 +00:00
dholland
1a91378aae Pass WARNS=5. 2013-08-11 06:31:00 +00:00
jmcneill
d148107cd6 return an error if testing fails, and dump the device info before running tests 2010-09-03 19:20:37 +00:00
jmcneill
e90b0e0082 at the request of mrg, print the parent of audioN's device name 2010-09-02 02:17:35 +00:00
jmcneill
e405ac8d24 add support for testing audio devices. the usage of audiocfg changes:
audiocfg list
  audiocfg default [index]
  audiocfg test [index]

'list' shows the available audio devices, 'default' sets the default
audio device, and 'test' will play a tone for 2 seconds on each
channel. example:

  $ ./audiocfg list
  0: [*] audio0: ICH2 AC97 (2 playback channels)
  1: [ ] audio1: Pseudo Audio (2 playback channels)
  $ ./audiocfg test 0
  testing channel 0...
  testing channel 1...
  $
2010-09-01 09:04:16 +00:00
mrg
172ca3ccec add a simple app to maintain the symlinks for audio devices in /dev, so
that it's easy to change the "default" audio device.  eg:

# audiocfg
0: [*] audio0: HD Audio
1: [ ] audio1: HD Audio
2: [ ] audio2: Pseudo Audio
# audiocfg 1
setting default audio device to audio1
# audiocfg
0: [ ] audio0: HD Audio
1: [*] audio1: HD Audio
2: [ ] audio2: Pseudo Audio

written by jared.  thanks!

(there's a separate patch in the works to give "HD Audio" a better name.)


this is not enabled yet, but will be soon.

it also needs a manual page.  any takers?
2010-08-30 02:19:47 +00:00