Commit Graph

27 Commits

Author SHA1 Message Date
dholland
c58ad948af Add missing HISTORY and AUTHORS. Bump date.
Noticed by qjsgkem on freenode.
2020-10-19 21:46:15 +00:00
isaki
3dbad28612 Revert about index number changes. It breaks its usage and output format.
Pointed out by mrg@.
2019-08-24 07:39:42 +00:00
isaki
52ec5b0764 Create a waveform in hardware native sample rate which is more efficient. 2019-08-24 06:32:25 +00:00
isaki
0c69e485a6 AUDIO_GETBUFINFO is more efficient for this purpose. 2019-08-24 06:16:27 +00:00
isaki
04ea388fd4 Fix markup. index of list command is optional. 2019-08-24 06:13:01 +00:00
isaki
8452326aba Make the same code that appears repeatedly a function. 2019-08-24 06:11:10 +00:00
isaki
16e140802c Use err(3)/warn(3) instead of perror(3)/fprintf(stderr,...).
Use getprogname(3) for usage().
2019-08-24 06:00:49 +00:00
isaki
2116fa4f0a Check mode argument earlier. 2019-08-24 05:51:06 +00:00
isaki
cb1e8d26ed Use device unit number for index.
The index number was too confusing such as
 0: [ ] audio1 @ wss0
 1: [*] audio0 @ yds0
in my PC for example.  Here is new format:
 [*] audio0 @ yds0
 [ ] audio1 @ wss0
In this style, devices are always listed in order of unit number
and 0 always means audio0, 1 always means audio1.
2019-08-24 05:45:24 +00:00
isaki
ab49aa4fd6 Revert to use single descriptor for "audiocfg test" as before. 2019-08-24 04:04:10 +00:00
isaki
923f5af2bd Rename some members in adev for clarity. No functional changes intended. 2019-08-24 03:28:37 +00:00
isaki
5e4788ee0a Fix assertion of "audiocfg list <n>" when n is an illegal index. 2019-08-22 14:40:14 +00:00
wiz
adb7f5e61d Improve wording, bump date. 2019-05-09 09:34:58 +00:00
isaki
0b88ff9914 Update respond to isaki-audio2 branch.
- Extend list command to display supported hardware formats.
- Add set command to set hardware format.
- Use correct /dev/audioctl instead of /dev/audio.
2019-05-08 14:36:12 +00:00
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
joerg
2c7fa37363 Add more __dead. 2013-08-12 14:03:18 +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
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