Commit Graph

10 Commits

Author SHA1 Message Date
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
59619cc632 print the version field from AUDIO_GETDEV if present 2010-09-02 02:08:30 +00:00
jmcneill
014a1e1b18 use htole16 to ensure that the pcm stream is slinear16_le on big endian hosts 2010-09-01 21:54:00 +00:00
wiz
7a2801201d Index argument is not optional, make it clearer in the usage. 2010-09-01 09:18:03 +00:00
wiz
600e381dfa Update for Jared's changes from a few minutes ago. 2010-09-01 09:17:31 +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
wiz
bd524aa578 Mention that audiocfg also controls /dev/audioctl, /dev/mixer, and /dev/sound.
Noted by mrg.
Bump date.
2010-09-01 07:50:33 +00:00
wiz
0b930dd75d Add man page. 2010-08-31 14:57:26 +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