Commit Graph

1792 Commits

Author SHA1 Message Date
openharmony_ci 188ee0e1fd !18 LGPL类协议软件需要制作开源包
Merge pull request !18 from 许学海/master
2024-06-17 08:57:01 +00:00
许学海 7a48f592ed update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-17 08:18:51 +00:00
许学海 185009a513 update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-17 03:49:38 +00:00
openharmony_ci 84f77acecd !17 fix: alsa-utils opensource statement
Merge pull request !17 from whoselittlelion/master
2024-06-13 01:16:00 +00:00
whoselittlelion a3b6feb14c fix: repair alsa utils opensource statement
Signed-off-by: whoselittlelion <humin16@huawei.com>
2024-06-12 21:29:20 +08:00
openharmony_ci dc989c8395 !16 fix: alsa-utils opensource statement
Merge pull request !16 from whoselittlelion/master
2024-06-12 09:59:35 +00:00
whoselittlelion 687b6978ac fix: repair openSource statement
Signed-off-by: whoselittlelion <humin16@huawei.com>
2024-06-12 16:51:16 +08:00
openharmony_ci 9475741530 !15 更新alsa版本
Merge pull request !15 from 许学海/master
2024-06-07 02:34:31 +00:00
许学海 171c682c3c update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-05 09:30:04 +00:00
openharmony_ci 4e77405aae !14 更新alsa-utils v1.2.11版本
Merge pull request !14 from 许学海/master
2024-06-04 14:04:09 +00:00
许学海 777d3e828d update BUILD.gn.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-05-25 03:43:11 +00:00
许学海 33ef3a4a04 update alsa-utils
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-05-24 09:35:19 +00:00
xuxuehai 799518f6b2 commit msg
Signed-off-by: xuxuehai <xuxuehai2@huawei.com>
2024-05-24 17:25:37 +08:00
xuxuehai 4e80219ea0 update alsa-utils-1.2.11
Signed-off-by: xuxuehai <xuxuehai2@huawei.com>
2024-05-22 16:37:50 +08:00
openharmony_ci 30192bae49 !11 修改license file路径
Merge pull request !11 from 许学海/master
OpenHarmony-v4.1.4-Release OpenHarmony-v4.1.3-Release OpenHarmony-v4.1.2-Release OpenHarmony-v5.0-Beta1 weekly_20240115-v master-v OpenHarmony-v4.1.1-Release OpenHarmony-v4.1-Release OpenHarmony-v4.1-Beta1
2023-12-14 08:29:38 +00:00
许学海 56ca081ae9 update BUILD.gn.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2023-12-13 06:38:08 +00:00
openharmony_ci 2f0542f707 !9 【SBOM数据治理】【合规】修改OAT配置项
Merge pull request !9 from mayongzhi/master
OpenHarmony-v4.0.4-Release OpenHarmony-v4.0.3-Release OpenHarmony-v4.0.2-Release OpenHarmony-v4.0.1-Release OpenHarmony-v4.0-Release
2023-07-25 12:42:34 +00:00
m00804696 ca2fff3fef commit oat
Signed-off-by: m00804696 <mayongzhi1@huawei.com>
2023-07-06 15:26:38 +08:00
openharmony_ci e8878476ee !8 fix: Modify the subsystem and part name
Merge pull request !8 from AllenRiemann/alsa_dev
OpenHarmony-v4.0-Beta1 OpenHarmony-v3.2.4-Release OpenHarmony-v3.2.3-Release OpenHarmony-v4.0-Beta2 OpenHarmony-v3.2.2-Release OpenHarmony-v3.2.1-Release OpenHarmony-v3.2-Release OpenHarmony-v3.2-Beta5 OpenHarmony-v3.2-Beta4
2022-10-17 06:46:18 +00:00
vb6174 8b2c3162c2 fix: Modify the subsystem and part name
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-10-11 10:54:30 +08:00
openharmony_ci a2b6327866 !7 modify audio part name
Merge pull request !7 from crescenthe/master
OpenHarmony-v3.2-Beta3 OpenHarmony-v3.2-Beta2
2022-06-23 10:27:43 +00:00
crescent 7a5ee4b756 modify audio part name
Signed-off-by: crescent <sunhehe@huawei.com>
2022-06-22 06:28:52 +00:00
openharmony_ci 641aa62756 !6 task:add README_zh
Merge pull request !6 from vb6174/master
2022-06-18 03:59:22 +00:00
vb6174 46cc9c6e62 task: add README_zh.md
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-06-09 03:02:40 +00:00
vb6174 e1f909d8f6 !5 add OAT.xml and update README.OpenSource
Merge pull request !5 from vb6174/master
2022-06-02 04:06:19 +00:00
vb6174 db5f68b1e4 add OAT.xml and README.OpenSource
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-06-02 03:39:46 +00:00
vb6174 8e6779b876 !4 add README.OpenSource for alsa-utils
Merge pull request !4 from vb6174/master
2022-06-01 06:58:23 +00:00
vb6174 4b8b65d0bc add README.OpenSource
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-05-31 12:08:12 +00:00
openharmony_sig_ci ee42f2afd4 !3 Porting the third-party library alsa-utils
Merge pull request !3 from zenglifeng/master
2022-05-27 02:31:47 +00:00
zenglifeng 4c1b3b1d53 Porting the third-party library alsa-utils
Signed-off-by: zenglifeng <zenglifeng2@huawei.com>
2022-05-27 10:11:30 +08:00
Jaroslav Kysela e18913110b Release v1.2.6
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 11:17:28 +01:00
Jaroslav Kysela 52f5bea5e9 amidi: remove unused variable
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 11:02:10 +01:00
Jaroslav Kysela 15a5a16eb7 topology: fix compilation for older alsa-lib
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 11:00:02 +01:00
Jaroslav Kysela 66693b1a77 topology: change include path
Add support for relative (based on the path from the parsed
configuration file) and absolute include path without
ALSA_CONFIG_DIR environment variable usage. The dependency
on the alsa-lib config tree may be added on demand.

Link: https://github.com/alsa-project/alsa-utils/pull/117
Link: https://github.com/alsa-project/alsa-utils/issues/118
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 10:21:41 +01:00
Ranjani Sridharan ef3a96367e topology: pre-processor: Add support for conditional includes
Add a new keyword "IncludeByKey" that will be used to conditional
include configuration files based on the argument value supplied during
build time. For example:

IncludeByKey.DMIC_CH_COUNT {
	"[1-4]"	"include/platform/intel/dmic-generic.conf"
}

The above config will include the dmic-generic.conf file if the argument
value for DMIC_CH_COUNT is between 1 and 4.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 09:19:20 +01:00
Ranjani Sridharan da8f90c424 topology: Add option to pass pre-processor definitions
Add a -D switch to be able to pass pre-processor definitions that will
be used to expand arguments in the input config file. This will be
useful to generate multiple topology binaries from the same input config
file with different argument values.

For example: if we had a pipeline config as follows:

Object.Pipeline {
	volume-playback.1 {
		dynamic_pipeline $DYNAMIC_PIPELINE
	}
}

We can define the variable for DYNAMIC_PIPELINE as:

Define {
	DYNAMIC_PIPELINE 0
}

And when pre-processing the conf file pass "-D DYNAMIC_PIPELINE=1" to
override the default value for dynamic_pipeline attribute in the input
conf file.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-06 09:19:20 +01:00
Jaroslav Kysela c4e43384fc alsamixer: fix typo in man page (and/of -> and/or)
Fixes: https://github.com/alsa-project/alsa-utils/issues/110
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-03 14:55:07 +01:00
Jaroslav Kysela c6a9e53ca0 alsa-info.sh: Fix alsa-usbstream.tmp test
Fixes: https://github.com/alsa-project/alsa-utils/issues/115
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-03 14:52:52 +01:00
Jaroslav Kysela 257f3063fa alsactl: fix the check for additional elements
The driver may export only write-only elements. The previous
heuristics code do not handle this use case correctly.
Iterate through all elements and skip the write-only ones.

Fixes: https://github.com/alsa-project/alsa-utils/issues/122
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-12-03 11:09:57 +01:00
Pavel Hofman 3b1b6863e7 alsaloop: Support "Playback Pitch 1000000" rate shift
Linux 5.15 will introduce a new control element "Playback Pitch 1000000"
(commit 6fec018 ("usb: gadget: u_audio.c: Adding Playback Pitch ctl for
sync playback") which provides feedback mechanism for playback direction
of USB Audio Gadget. The control operates in the same way as the
existing control element "Capture Pitch 1000000".

This patch adds support for this feature.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-28 12:32:37 +02:00
Pavel Hofman 59464effec alsaloop: Renamed field capt_pitch to ctl_pitch
Renaming capt_pitch to ctl_pitch to respect the naming style of
snd_ctl_elem_value_t fields in loopback_handle. Also making the variable
name suitable for planned support of playback pitch.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-28 12:32:22 +02:00
Jaroslav Kysela af62c72e2d alsactl: suppress no device 'errors' for UCM
This patch adds --ucm-nodev (or -X) option to get those
messages back. The code works only with library 1.2.6+.

By default, these messages are suppressed:

  alsactl[xxx]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HDA Intel PCH...)
  alsactl[xxx]: alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6

Fixes: https://github.com/alsa-project/alsa-utils/issues/111
Link: https://lore.kernel.org/alsa-devel/20211027144008.27002-1-tiwai@suse.de/
Link: https://github.com/alsa-project/alsa-lib/commit/23198a72cd4f8f8759e650362b4adb485fc9fb12
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-28 12:16:11 +02:00
Takashi Iwai 5d4442b2cf alsamixer: Allow setting the default background color in config
The recent commit c867aa8a84 ("alsamixer: use background color
instead of COLOR_BLACK") changed the behavior of alsamixer to take the
system default background color instead of black.  This caused
problems on the terminal setups that have bright background colors,
e.g. yellow is very hard to read.

It could be "fixed" by setting up the color configurations in
~/.config/alsamixer.rc, but this needs to change the all colors in
every element, which is pretty cumbersome.  Instead, this patch
extends the config set command to allow user to specify the default
background color.  A user like me can create their own
~/.config/alsamixer.rc file containing the line

  set background black

and the old good black background is back again.

Note that, for achieving the above, we also had to shuffle the
function call order, to parse the config at first, then initialize
curses.  This shouldn't matter for other behavior.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-10-20 17:24:35 +02:00
Takashi Iwai 31820c5f23 alsamixer: Check the availability of mouse
Let's check the availiabiy via has_mouse().  Otherwise the program
aborts unexpectedly just focusing on my rxvt terminal :-(

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-10-20 17:24:30 +02:00
Pavel Hofman 0fd3022e82 alsaloop: fixed parsing value 'auto' of option 'sync'
The value 'auto' was not checked which resulted in using
SYNC_TYPE_NONE instead of SYNC_TYPE_AUTO.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-13 14:05:02 +02:00
Pavel Hofman 138e53aabb alsaloop: added option prateshift for PLAYSHIFT ctl elem used in PLAYSHIFT
If snd-aloop device is on playback side, the required sync mode is
PLAYSHIFT. That means Loopback ctl elem "PCM Rate Shift 100000" of the
corresponding capture side of the Loopback pipe must be controlled (by
a reciprocal).

ASCII name of the playback rate shift ctl elem is specified with newly
added option -x/--prateshift, e.g.:
  -P hw:Loopback,0 -S playshift \
  -x iface=PCM,name='PCM Rate Shift 100000',device=1

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-13 13:52:12 +02:00
Pavel Hofman e2b167c490 alsaloop: Adding openctl_elem debug log
When debugging what ctl elem was found and opened (if any) a debug log is
helpful.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-04 10:44:46 +02:00
Jaroslav Kysela 68473a41c6 amixer: print help and add doc for 'sevents' and 'events' commands
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-04 10:40:14 +02:00
Jaroslav Kysela 1a32420577 alsatplg: use standard include/asoundlib.h instead direct headers
BugLink: https://github.com/alsa-project/alsa-lib/pull/169
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-09-03 08:49:03 +02:00
folkert van heusden 9a8fcec5aa amidi: add timestamp option for dump
Added -T / --timestamp option (with parameter "realtime", "monotonic" or "raw") which prints
a timestamp before each received message when using the --dump mode.

Fixes: https://github.com/alsa-project/alsa-utils/pull/108
Signed-off-by: Folkert van Heusden <mail@vanheusden.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-08-24 12:05:52 +02:00