]> git.alsa-project.org Git - alsa-utils.git/commit
alsabat: add default device name for playback and capture
authorLu, Han <han.lu@intel.com>
Tue, 15 Mar 2016 03:18:52 +0000 (11:18 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Mar 2016 08:59:09 +0000 (09:59 +0100)
commit333cd85d7d15cdcb26fbc0ad688de31b496b94ed
treebd590db9108319a1187a2cddbd2029636bffac24
parentb5c06602306e89ae71c746b2db4d83d38cec7047
alsabat: add default device name for playback and capture

Add default name for the playback and capture devices, in case
they were not set by user through '-D', '-P' or '-C' options.
Previously, if no device be specified, the alsabat will start
a playback thread and a capture thread, and then exit the
threads with error log.
If only one of playback and capture is specified, the alsabat
will work on single line mode as before, where only one thread
(playback or capture) will be started.
The patch was tested on Ubuntu and Chrome OS.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
bat/alsa.c
bat/bat.c
bat/common.h