The NetBSD Project

CVS log for src/usr.bin/audiocfg/main.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / audiocfg

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Sat Apr 1 12:41:02 2023 UTC (11 months ago) by mlelstv
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +5 -3 lines
Diff to previous 1.16 (colored)

Also report precision from hwinfo.

Revision 1.7.26.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:40 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.7.26.1: +46 -39 lines
Diff to previous 1.7.26.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sun Sep 29 07:34:09 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.8.2.2: +24 -27 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Pull up following revision(s) (requested by isaki in ticket #267):

	usr.bin/audiocfg/dtmf.c: revision 1.4
	usr.bin/audiocfg/main.c: revision 1.14 (via patch)
	usr.bin/audiocfg/audiodev.c: revision 1.12

Use err(3)/warn(3) instead of perror(3)/fprintf(stderr,...).
Use getprogname(3) for usage().

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Sat Sep 28 07:41:18 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.8.2.1: +13 -14 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)

Pull up following revision(s) (requested by isaki in ticket #262):

	usr.bin/audiocfg/main.c: revision 1.10
	usr.bin/audiocfg/main.c: revision 1.11
	usr.bin/audiocfg/audiodev.c: revision 1.8
	usr.bin/audiocfg/audiodev.h: revision 1.6
	usr.bin/audiocfg/audiodev.c: revision 1.9
	usr.bin/audiocfg/audiodev.h: revision 1.7

Rename some members in adev for clarity.  No functional changes intended.

Revert to use single descriptor for "audiocfg test" as before.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sat Sep 28 07:25:53 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Pull up following revision(s) (requested by isaki in ticket #258):

	usr.bin/audiocfg/main.c: revision 1.9

Fix assertion of "audiocfg list <n>" when n is an illegal index.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 24 07:39:42 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.15: +58 -37 lines
Diff to previous 1.15 (colored)

Revert about index number changes.  It breaks its usage and output format.
Pointed out by mrg@.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 24 06:11:10 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.14: +27 -48 lines
Diff to previous 1.14 (colored)

Make the same code that appears repeatedly a function.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 24 06:00:49 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.13: +25 -28 lines
Diff to previous 1.13 (colored)

Use err(3)/warn(3) instead of perror(3)/fprintf(stderr,...).
Use getprogname(3) for usage().

Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 24 05:51:06 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

Check mode argument earlier.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 24 05:45:25 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.11: +12 -9 lines
Diff to previous 1.11 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 24 04:04:10 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.10: +3 -8 lines
Diff to previous 1.10 (colored)

Revert to use single descriptor for "audiocfg test" as before.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Aug 24 03:28:37 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.9: +12 -8 lines
Diff to previous 1.9 (colored)

Rename some members in adev for clarity.  No functional changes intended.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 22 14:40:14 2019 UTC (4 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Fix assertion of "audiocfg list <n>" when n is an illegal index.

Revision 1.7.26.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:17 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.7: +138 -6 lines
Diff to previous 1.7 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 8 14:36:12 2019 UTC (4 years, 9 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.7: +138 -6 lines
Diff to previous 1.7 (colored)

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.

Revision 1.6.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:56 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:42 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 12 14:03:18 2013 UTC (10 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Add more __dead.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 3 19:20:37 2010 UTC (13 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.5: +25 -14 lines
Diff to previous 1.5 (colored)

return an error if testing fails, and dump the device info before running tests

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 2 02:17:35 2010 UTC (13 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

at the request of mrg, print the parent of audioN's device name

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 2 02:08:30 2010 UTC (13 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +7 -4 lines
Diff to previous 1.3 (colored)

print the version field from AUDIO_GETDEV if present

Revision 1.3 / (download) - annotate - [select for diffs], Wed Sep 1 09:18:03 2010 UTC (13 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Index argument is not optional, make it clearer in the usage.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 1 09:04:16 2010 UTC (13 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +34 -13 lines
Diff to previous 1.1 (colored)

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...
  $

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Aug 30 02:19:47 2010 UTC (13 years, 6 months ago) by mrg
Branch: jmcneill
CVS Tags: audiocfg1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

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?

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 30 02:19:47 2010 UTC (13 years, 6 months ago) by mrg
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>