alsabat: test scripts and reference amixer config files
PATCH 2/2 alsabat: add amixer config files
In reply to [email protected]From: Focus Luo <[email protected]>
This patch includes the reference asound.state config files on Intel Skylake, Broadwell and Hsawell platforms
--- bat/tests/asound_state/asound.state.Broadwell | 439 ++++++++++++++++++++++++++ bat/tests/asound_state/asound.state.Haswell | 342 ++++++++++++++++++++ bat/tests/asound_state/asound.state.Skylake | 437 +++++++++++++++++++++++++ 3 files changed, 1218 insertions(+) create mode 100644 bat/tests/asound_state/asound.state.Broadwell create mode 100644 bat/tests/asound_state/asound.state.Haswell create mode 100644 bat/tests/asound_state/asound.state.Skylake
bat/tests/asound_state/asound.state.Broadwell new file +439 -0
@@ -0,0 +1,439 @@ +state.HDMI { + control.1 { + iface CARD + name 'HDMI/DP,pcm=3 Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.2 { + iface MIXER + name 'IEC958 Playback Con Mask' + value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.3 { + iface MIXER + name 'IEC958 Playback Pro Mask' + value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.4 { + iface MIXER + name 'IEC958 Playback Default' + value '0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.5 { + iface MIXER + name 'IEC958 Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.6 { + iface PCM + device 3 + name ELD + value '' + comment { + access 'read volatile' + type BYTES + count 0 + } + } + control.7 { + iface CARD + name 'HDMI/DP,pcm=7 Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.8 { + iface MIXER + name 'IEC958 Playback Con Mask' + index 1 + value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.9 { + iface MIXER + name 'IEC958 Playback Pro Mask' + index 1 + value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.10 { + iface MIXER + name 'IEC958 Playback Default' + index 1 + value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.11 { + iface MIXER + name 'IEC958 Playback Switch' + index 1 + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.12 { + iface PCM + device 7 + name ELD + value '100008006a10000100000000000000000469b12341535553205041323338091707000000' + comment { + access 'read volatile' + type BYTES + count 36 + } + } + control.13 { + iface CARD + name 'HDMI/DP,pcm=8 Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.14 { + iface MIXER + name 'IEC958 Playback Con Mask' + index 2 + value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.15 { + iface MIXER + name 'IEC958 Playback Pro Mask' + index 2 + value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.16 { + iface MIXER + name 'IEC958 Playback Default' + index 2 + value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.17 { + iface MIXER + name 'IEC958 Playback Switch' + index 2 + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.18 { + iface PCM + device 8 + name ELD + value '' + comment { + access 'read volatile' + type BYTES + count 0 + } + } + control.19 { + iface PCM + device 3 + name 'Playback Channel Map' + value.0 0 + value.1 0 + value.2 0 + value.3 0 + value.4 0 + value.5 0 + value.6 0 + value.7 0 + comment { + access 'read write' + type INTEGER + count 8 + range '0 - 36' + } + } + control.20 { + iface PCM + device 7 + name 'Playback Channel Map' + value.0 0 + value.1 0 + value.2 0 + value.3 0 + value.4 0 + value.5 0 + value.6 0 + value.7 0 + comment { + access 'read write' + type INTEGER + count 8 + range '0 - 36' + } + } + control.21 { + iface PCM + device 8 + name 'Playback Channel Map' + value.0 0 + value.1 0 + value.2 0 + value.3 0 + value.4 0 + value.5 0 + value.6 0 + value.7 0 + comment { + access 'read write' + type INTEGER + count 8 + range '0 - 36' + } + } +} +state.PCH { + control.1 { + iface MIXER + name 'Master Playback Volume' + value.0 41 + value.1 41 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 87' + dbmin -6525 + dbmax 0 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.2 { + iface MIXER + name 'Master Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.3 { + iface MIXER + name 'Loopback Mixing' + value Enabled + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 Disabled + item.1 Enabled + } + } + control.4 { + iface MIXER + name 'Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.5 { + iface MIXER + name 'Mic Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.6 { + iface MIXER + name 'Capture Volume' + value.0 21 + value.1 21 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 63' + dbmin -1725 + dbmax 3000 + dbvalue.0 -150 + dbvalue.1 -150 + } + } + control.7 { + iface MIXER + name 'Capture Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.8 { + iface MIXER + name 'Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3600 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.9 { + iface CARD + name 'Mic Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.10 { + iface CARD + name 'Headphone Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.11 { + iface PCM + name 'Playback Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.12 { + iface PCM + name 'Capture Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.13 { + iface MIXER + name 'PCM Playback Volume' + value.0 105 + value.1 105 + comment { + access 'read write user' + type INTEGER + count 2 + range '0 - 255' + tlv '0000000100000008ffffec1400000014' + dbmin -5100 + dbmax 0 + dbvalue.0 -3000 + dbvalue.1 -3000 + } + } + control.14 { + iface MIXER + name 'Digital Capture Volume' + value.0 60 + value.1 60 + comment { + access 'read write user' + type INTEGER + count 2 + range '0 - 120' + tlv '0000000100000008fffff44800000032' + dbmin -3000 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } +}
bat/tests/asound_state/asound.state.Haswell new file +342 -0
342 lines not on this page · raw message
bat/tests/asound_state/asound.state.Skylake new file +437 -0
437 lines not on this page · raw message
Signature · 1 line
1.9.1
cover alsabat: test scripts and reference amixer config files
From: Focus Luo <[email protected]>
The patch set supplies some automated test scripts and reference amixer config files for linux audio driver testing by using alsa-bat as test tool on Intel platforms.
The first patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog audio and display audio(HDMI/DP) interface.
The second patch supplies some amixer reference config file on Intel platforms.
Focus Luo (2):
alsabat: automation test scripts
alsabat: add amixer config files
bat/tests/README | 32 ++ bat/tests/alsabat_main.sh | 178 ++++++++++ bat/tests/analog_audio_playback_and_capture.sh | 84 +++++ bat/tests/asound_state/asound.state.Broadwell | 439 +++++++++++++++++++++++++ bat/tests/asound_state/asound.state.Haswell | 342 +++++++++++++++++++ bat/tests/asound_state/asound.state.Skylake | 437 ++++++++++++++++++++++++ bat/tests/dp_audio_playback.sh | 83 +++++ bat/tests/dp_audio_subdevice_number.sh | 68 ++++ bat/tests/hdmi_audio_playback.sh | 81 +++++ bat/tests/hdmi_audio_subdevice_number.sh | 65 ++++ bat/tests/map_test_case | 8 + 11 files changed, 1817 insertions(+) create mode 100644 bat/tests/README create mode 100755 bat/tests/alsabat_main.sh create mode 100755 bat/tests/analog_audio_playback_and_capture.sh create mode 100644 bat/tests/asound_state/asound.state.Broadwell create mode 100644 bat/tests/asound_state/asound.state.Haswell create mode 100644 bat/tests/asound_state/asound.state.Skylake create mode 100755 bat/tests/dp_audio_playback.sh create mode 100755 bat/tests/dp_audio_subdevice_number.sh create mode 100755 bat/tests/hdmi_audio_playback.sh create mode 100755 bat/tests/hdmi_audio_subdevice_number.sh create mode 100644 bat/tests/map_test_case
Signature · 1 line
1.9.1
PATCH 1/2 alsabat: automation test scripts
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.
--- bat/tests/README | 32 +++++ bat/tests/alsabat_main.sh | 178 +++++++++++++++++++++++++ bat/tests/analog_audio_playback_and_capture.sh | 84 ++++++++++++ bat/tests/dp_audio_playback.sh | 83 ++++++++++++ bat/tests/dp_audio_subdevice_number.sh | 68 ++++++++++ bat/tests/hdmi_audio_playback.sh | 81 +++++++++++ bat/tests/hdmi_audio_subdevice_number.sh | 65 +++++++++ bat/tests/map_test_case | 8 ++ 8 files changed, 599 insertions(+) create mode 100644 bat/tests/README create mode 100755 bat/tests/alsabat_main.sh create mode 100755 bat/tests/analog_audio_playback_and_capture.sh create mode 100755 bat/tests/dp_audio_playback.sh create mode 100755 bat/tests/dp_audio_subdevice_number.sh create mode 100755 bat/tests/hdmi_audio_playback.sh create mode 100755 bat/tests/hdmi_audio_subdevice_number.sh create mode 100644 bat/tests/map_test_case
bat/tests/README new file +32 -0
@@ -0,0 +1,32 @@ + + automated test scripts for linux audio driver + based on alsa-lib interface by using alsabat +=============================================================================== + +This package contains the test scripts for linux audio driver based on +alsa-lib interface by using alsabat. +It supports analog and display(HDMI/DP) audio test. +The package needs the alsa-utils, alsa-lib installed environment. + +alsabat_main.sh + - the main entrance test script, + it will call the other scripts to run the tests + (test result will save in the ./log/ folder) +analog_audio_playback_and_capture.sh + - analog audio test script (please to loopback the + analog audio output to analog audio input) +hdmi_audio_playback.sh + - hdmi audio test script (please to loopback the hdmi audio output + to analog audio input) +dp_audio_playback.sh + - dp audio test script (please to loopback the dp audio + output to analog audio input) +map_test_case + - to map the test suite/cases to a test script +asound_state/ + - some asound.state config reference files + based on different platforms + + Focus Luo <[email protected]> + Wang,Jinliang <[email protected]> + Zhang,Keqiao <[email protected]>
bat/tests/alsabat_main.sh new file +178 -0
178 lines not on this page · raw message
bat/tests/analog_audio_playback_and_capture.sh new file +84 -0
84 lines not on this page · raw message
bat/tests/dp_audio_playback.sh new file +83 -0
83 lines not on this page · raw message
bat/tests/dp_audio_subdevice_number.sh new file +68 -0
68 lines not on this page · raw message
bat/tests/hdmi_audio_playback.sh new file +81 -0
81 lines not on this page · raw message
bat/tests/hdmi_audio_subdevice_number.sh new file +65 -0
65 lines not on this page · raw message
bat/tests/map_test_case new file +8 -0
@@ -0,0 +1,8 @@ +# Analog audio basic test +verify_Analog_audio_playback_and_capture="$ABAT_TEST_PATH/analog_audio_playback_and_capture.sh" + +# Display audio basic test cases - for HDMI +verify_HDMI_audio_playback="$ABAT_TEST_PATH/hdmi_audio_playback.sh" + +# Display audio basic test cases - for DP +verify_DP_audio_playback="$ABAT_TEST_PATH/dp_audio_playback.sh"
Signature · 1 line
1.9.1
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 9 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.Signed-off-by Focus Luo <[email protected]>
You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
thanks,
Takashi
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 10 lines · Takashi Iwai
Quoted 8 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.
Quoted 5 lines
Quoted 1 line
Signed-off-by Focus Luo <[email protected]>You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
Where would be a good place to install the scripts ? I think the intention from Focus is that these are local scripts for use by devs and not really for everyone. They could perhaps go in ${prefix}/share/alsa/abat/tests ?
Thanks
Liam
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 14 lines · Liam Girdwood
Quoted 12 lines · Takashi Iwai
Quoted 9 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.Signed-off-by Focus Luo <[email protected]>
Quoted 8 lines
Quoted 3 lines
You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
Where would be a good place to install the scripts ? I think the intention from Focus is that these are local scripts for use by devs and not really for everyone. They could perhaps go in ${prefix}/share/alsa/abat/tests ?
Well, if this is merely an example, we don't have to install it, but just keep it in tarball, too.
Takashi
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 16 lines · Takashi Iwai
Quoted 14 lines · Liam Girdwood
Quoted 13 lines · Takashi Iwai
Quoted 8 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.Signed-off-by Focus Luo <[email protected]>You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
Quoted 6 lines
Quoted 4 lines
Where would be a good place to install the scripts ? I think the intention from Focus is that these are local scripts for use by devs and not really for everyone. They could perhaps go in ${prefix}/share/alsa/abat/tests ?
Well, if this is merely an example, we don't have to install it, but just keep it in tarball, too.
In future, we will continue to add/update some scripts in the the folder of "/alsa-utils/bat/tests" for alsabat. So would it be better to keep it as folder but not tarball?
Quoted 3 lines
Takashi
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 23 lines · focus.luo
Quoted 20 lines · Takashi Iwai
Quoted 18 lines · Liam Girdwood
Quoted 4 lines · Takashi Iwai
Quoted 2 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
Quoted 9 lines
Quoted 6 lines
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.Signed-off-by Focus Luo <[email protected]>You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
Where would be a good place to install the scripts ? I think the intention from Focus is that these are local scripts for use by devs and not really for everyone. They could perhaps go in ${prefix}/share/alsa/abat/tests ?
Quoted 5 lines
Quoted 2 lines
Well, if this is merely an example, we don't have to install it, but just keep it in tarball, too.
In future, we will continue to add/update some scripts in the the folder of "/alsa-utils/bat/tests" for alsabat. So would it be better to keep it as folder but not tarball?
No, I meant that your contents won't be included in alsa-utils release unless you add properly to Makefile.am. automake won't pack the unlisted files via "make dist".
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Re: [PATCH 1/2] alsabat: automation test scripts
Quoted 27 lines · Takashi Iwai
Quoted 25 lines · focus.luo
Quoted 22 lines · Takashi Iwai
Quoted 10 lines · Liam Girdwood
Quoted 9 lines · Takashi Iwai
Quoted 7 lines · On Mon, 08 Aug 2016 05:00:24 +0200, [email protected] wrote:
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Focus Luo <[email protected]>You need to modify Makefile.am, too. Otherwise these contents won't be included in the release.
Where would be a good place to install the scripts ? I think the intention from Focus is that these are local scripts for use by devs and not really for everyone. They could perhaps go in ${prefix}/share/alsa/abat/tests ?
Well, if this is merely an example, we don't have to install it, but just keep it in tarball, too.
Quoted 8 lines
Quoted 3 lines
In future, we will continue to add/update some scripts in the the folder of "/alsa-utils/bat/tests" for alsabat. So would it be better to keep it as folder but not tarball?
No, I meant that your contents won't be included in alsa-utils release unless you add properly to Makefile.am. automake won't pack the unlisted files via "make dist".
Focus, you will need to add the scripts using automake (to Makefile.am) e.g.
noinst_SCRIPTS = \ script1 \ script2
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel