Commit Graph

1796 Commits

Author SHA1 Message Date
openharmony_ci
ec8467949c
!20 alsa三方库README文件版本号修改
Some checks failed
Build alsa-utils / fedora_latest_build (push) Has been cancelled
Build alsa-utils / ubuntu_last_build (push) Has been cancelled
Merge pull request !20 from 许学海/master
2024-11-06 02:31:10 +00:00
许学海
d974518b1c
update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-11-05 09:29:40 +00:00
openharmony_ci
c72fcc343a
!19 alsa-utils代码同步
Merge pull request !19 from 许学海/master
2024-07-25 08:53:05 +00:00
许学海
5bba5f2b51
update OAT.xml.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-07-25 08:29:32 +00:00
openharmony_ci
8981f4df72
!18 LGPL类协议软件需要制作开源包
Merge pull request !18 from 许学海/master
2024-06-17 08:57:01 +00:00
许学海
0d6e7bcdef
update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-17 08:18:51 +00:00
许学海
661d588975
update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-17 03:49:38 +00:00
openharmony_ci
504912944f
!17 fix: alsa-utils opensource statement
Merge pull request !17 from whoselittlelion/master
2024-06-13 01:16:00 +00:00
whoselittlelion
9880eac832 fix: repair alsa utils opensource statement
Signed-off-by: whoselittlelion <humin16@huawei.com>
2024-06-12 21:29:20 +08:00
openharmony_ci
a210d84aad
!16 fix: alsa-utils opensource statement
Merge pull request !16 from whoselittlelion/master
2024-06-12 09:59:35 +00:00
whoselittlelion
214d702ec6 fix: repair openSource statement
Signed-off-by: whoselittlelion <humin16@huawei.com>
2024-06-12 16:51:16 +08:00
openharmony_ci
e895403807
!15 更新alsa版本
Merge pull request !15 from 许学海/master
2024-06-07 02:34:31 +00:00
许学海
bb28125c25
update README.OpenSource.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-06-05 09:30:04 +00:00
openharmony_ci
d29624502e
!14 更新alsa-utils v1.2.11版本
Merge pull request !14 from 许学海/master
2024-06-04 14:04:09 +00:00
许学海
aa29a991ec
update BUILD.gn.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-05-25 03:43:11 +00:00
许学海
02dfd568eb
update alsa-utils
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2024-05-24 09:35:19 +00:00
xuxuehai
381018c570 commit msg
Signed-off-by: xuxuehai <xuxuehai2@huawei.com>
2024-05-24 17:25:37 +08:00
xuxuehai
624a3e8926 update alsa-utils-1.2.11
Signed-off-by: xuxuehai <xuxuehai2@huawei.com>
2024-05-22 16:37:50 +08:00
openharmony_ci
3153c18b6d
!11 修改license file路径
Merge pull request !11 from 许学海/master
2023-12-14 08:29:38 +00:00
许学海
52334ff34c
update BUILD.gn.
Signed-off-by: 许学海 <xuxuehai2@huawei.com>
2023-12-13 06:38:08 +00:00
openharmony_ci
3cd5dc1adb
!9 【SBOM数据治理】【合规】修改OAT配置项
Merge pull request !9 from mayongzhi/master
2023-07-25 12:42:34 +00:00
m00804696
699fe195f1 commit oat
Signed-off-by: m00804696 <mayongzhi1@huawei.com>
2023-07-06 15:26:38 +08:00
openharmony_ci
cee3a2234e
!8 fix: Modify the subsystem and part name
Merge pull request !8 from AllenRiemann/alsa_dev
2022-10-17 06:46:18 +00:00
vb6174
aa5325b7d9 fix: Modify the subsystem and part name
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-10-11 10:54:30 +08:00
openharmony_ci
be17d482c4
!7 modify audio part name
Merge pull request !7 from crescenthe/master
2022-06-23 10:27:43 +00:00
crescent
6c90f8b4aa modify audio part name
Signed-off-by: crescent <sunhehe@huawei.com>
2022-06-22 06:28:52 +00:00
openharmony_ci
ccbe12fde5
!6 task:add README_zh
Merge pull request !6 from vb6174/master
2022-06-18 03:59:22 +00:00
vb6174
b367aa49c7 task: add README_zh.md
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-06-09 03:02:40 +00:00
vb6174
b169f0f587
!5 add OAT.xml and update README.OpenSource
Merge pull request !5 from vb6174/master
2022-06-02 04:06:19 +00:00
vb6174
72f134b681 add OAT.xml and README.OpenSource
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-06-02 03:39:46 +00:00
vb6174
6411b8ea34
!4 add README.OpenSource for alsa-utils
Merge pull request !4 from vb6174/master
2022-06-01 06:58:23 +00:00
vb6174
768b38fb3b add README.OpenSource
Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2022-05-31 12:08:12 +00:00
openharmony_sig_ci
975a763415
!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: 23198a72cd
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