summaryrefslogtreecommitdiff
path: root/alsa-info
Commit message (Collapse)AuthorAgeFilesLines
* alsa-info.sh: increase version to 0.5.3Jaroslav Kysela2023-05-031-161/+161
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: uname - reduce execs by four, and eliminate a logic bugwileyhy2023-05-031-5/+3
| | | | | | | | | | | | | | | | Per `info uname`, `uname` always prints its data in the same order. Also, "note that A && B || C is not if-then-else. C may run when A is true." https://www.shellcheck.net/wiki/SC2015 set -x; read -r KERNEL_VERSION < <(uname -v); smp=x; \ [[ "$KERNEL_VERSION" = *SMP* ]] && \ { smp=y; readonly smp; false;} || smp=n; set - ... https://github.com/koalaman/shellcheck Fixes: https://github.com/alsa-project/alsa-utils/pull/207 From: wileyhy @ github Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: Update `test` '-a' and '-o' to '&&' and '||'wileyhy2023-05-031-3/+3
| | | | | | | | | | | | | | | | lines 50, 103: in two compound ['s, replace '-a' with '] && [' SC2166 – Prefer `[ p ] && [ q ]` as `[ p -a q ]` is not well defined. SC2107 – Instead of `[ a && b ]`, use `[ a ] && [ b ]`. line 45: in a compound test command, change '-o' to '|| test' SC1139 – Use `||` instead of `-o` between test commands. SC2109 – Instead of `[ a || b ]`, use `[ a ] || [ b ]`. ... https://github.com/koalaman/shellcheck Fixes: https://github.com/alsa-project/alsa-utils/pull/206 From: wileyhy @ github Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: print ctl-led list from sysfsJaroslav Kysela2023-03-241-1/+16
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: Fix alsa-usbstream.tmp testJaroslav Kysela2021-12-031-2/+2
| | | | | Fixes: https://github.com/alsa-project/alsa-utils/issues/115 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: Add jack2 (jackdbus) detectionbengan2021-03-051-0/+8
| | | | | | BugLink: https://github.com/alsa-project/alsa-utils/pull/74 Signed-off-by: bengan <bengan@bag.org> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: Use HTTPS instead of HTTPBruno Vernay2021-03-051-12/+12
| | | | | Signed-off-by: Bruno Vernay <brunovern.a@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: add PipeWire daemon detectionJaroslav Kysela2021-03-051-0/+8
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: bumb version to 0.5.0Jaroslav Kysela2021-03-051-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: add sysfs card info sectionJaroslav Kysela2021-02-221-2/+13
| | | | | | | It may be useful to dump the sysfs tree to gather more runtime information. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: add card number to the ALSA module list sectionJaroslav Kysela2021-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | Previous output: !!Loaded ALSA modules !!------------------- snd_hda_intel snd_usb_audio New output: !!Loaded ALSA modules !!------------------- snd_hda_intel (card 0) snd_usb_audio (card 1) Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: add audio keyword to the dmesg filterJaroslav Kysela2021-01-261-1/+1
| | | | | | | | Example: sof-audio-pci 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info: Add lsusb and stream outputsTakashi Iwai2020-12-091-0/+33
| | | | | | | | We need more detailed information for USB-audio devices, at least the lsusb -v output and the contents of stream* proc files. Let's add them to alsa-info.sh output. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info: provide DMI system skuPierre-Louis Bossart2020-10-061-0/+3
| | | | | | | | | | | | | | | | | | | | | The system sku is used in SOF machine drivers to set specific quirks, expose it in alsa-info to help support users. Example on a SoundWire enabled device: cat /sys/class/dmi/id/product_sku 0A32 dmidecode -s system-sku-number 0A32 Add a variable and expose the results of both methods. Note that the dmidecode support is very recent and might not yet be available in all distros: http://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=d70d5e686148eabe90c89fbf4cdcf5258db5aa05 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: command -v cleanupsJaroslav Kysela2020-07-011-19/+18
| | | | | | Inspired in https://github.com/alsa-project/alsa-utils/pull/29 . Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: declare variables separately from the assign (coverity)Jaroslav Kysela2020-06-091-2/+4
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: increase version to 0.4.65Jaroslav Kysela2020-05-041-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info: initial rpm/deb package infoMichael Shigorin2020-05-011-0/+24
| | | | | | | | | | | | | | | This might become a Pandora's box given the amount of obscure package managers on the planet but these two account for most *nix-like systems with ALSA it seems. Added support for querying ALSA packages installed through rpm and dpkg; tested on ALT (rpm) and OS Elbrus (dpkg). Suggested-by: Anton Farygin <rider@altlinux.org> See-also: http://bugzilla.altlinux.org/38416 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: add ALT to DISTRO listMichael Shigorin2020-05-011-1/+1
| | | | | | Suggested-by: Anton Farygin <rider@altlinux.org> See-also: http://bugzilla.altlinux.org/38416 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info.sh: Warn after actual upload failure; do not ping serverDavid Ward2020-01-071-33/+25
| | | | | | | | | | | Check the return value of wget to determine if the upload actually failed. If so, display the message about upload failure, then exit. Do not ping the web server; the result does not indicate whether a file upload will succeed or not. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Perform test for wget earlierDavid Ward2020-01-071-38/+35
| | | | | | | If wget is not present, do not ask about uploading the information. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Condense nested commands for formatting upload resultDavid Ward2020-01-071-12/+8
| | | | | Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Condense nested commands for file uploadDavid Ward2020-01-071-10/+6
| | | | | Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Remove progress spinner during upload without dialogDavid Ward2020-01-071-10/+1
| | | | | | | | | | The spinner did not actually provide information about the status of the file upload, and caused other problems: it would repeatedly spawn new pgrep processes (without a delay between them), and it blocked the script if any wget process was running on the system. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Replace gauge with infobox for upload dialogDavid Ward2020-01-071-10/+2
| | | | | | | | | | The gauge did not actually show the upload progress; in fact, the dialog did not even appear until after the upload was completed. Use an infobox instead, which will be displayed while wget runs. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Exit script after writing information to stdoutDavid Ward2020-01-071-11/+6
| | | | | | | The '--stdout' option is mutually exclusive with uploading the file. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Use existing function to print ALSA configuration filesDavid Ward2020-01-071-26/+1
| | | | | Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Simplify iteration over cards when calling amixerDavid Ward2020-01-071-5/+5
| | | | | | | | Read card names directly from individual procfs files, and pass them to amixer using the '-c' option. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Read from /proc/modules and sort the resultDavid Ward2020-01-071-5/+4
| | | | | | | | | | | | | | | Sorting the list of loaded modules makes it much easier to compare two alsa-info.txt files, even if they are both from the same system (since the order actually changes after each reboot). lsmod just formats the contents of /proc/modules. After this script calls lsmod, it strips everything but module names from the output. This same result can be obtained just as easily by reading directly from /proc/modules; then there is no need to remove the header line printed by lsmod before sorting the output. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: Consolidate PCI device outputDavid Ward2020-01-071-7/+3
| | | | | | | | Include numeric IDs and subsystem info in the PCI device output, without placing them in a separate section. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: cleanupsJaroslav Kysela2019-03-121-84/+85
| | | | | | | | | - fix awk arguments - backticks/gravemarks removal - some cosmetic and indentation changes - add REQUIRES to check the basic tools Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa-info: add ACPI device statusPierre-Louis Bossart2017-01-101-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BIOS vendors typically reuse the same definitions between different platforms and expose the relevant hardware by changing the value of the _STA method. For example on the Asus T100HA, there are 3 HID values for audio codecs in the DSDT table but two have a zero status and will be ignored by the ACPI subsystem. $ more /sys/bus/acpi/devices/10EC*/status :::::::::::::: /sys/bus/acpi/devices/10EC3270:00/status :::::::::::::: 15 :::::::::::::: /sys/bus/acpi/devices/10EC5640:00/status :::::::::::::: 0 :::::::::::::: /sys/bus/acpi/devices/10EC5648:00/status :::::::::::::: 0 This information is very useful to figure out which HIDs/quirks need to be supported. Add log to alsa-info.sh to only expose non-zero results of the ACPI _STA method, e.g. !!ACPI Device Status Information !!--------------- /sys/bus/acpi/devices/10EC3270:00/status 15 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info: provide more DMI informationPierre-Louis Bossart2017-01-101-0/+6
| | | | | | | | | | | | | | | | | | | | | Some manufacturers don't provide useful information for Manufacturer and Product Name but instead use Board Vendor and Board Name fields, add them to alsa-info log Example on Intel NUC: !!DMI Information !!--------------- Manufacturer: Product Name: Product Version: Firmware Version: KYSKLi70.86A.0042.2016.0929.1933 Board Vendor: Intel Corporation Board Name: NUC6i7KYB Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info: add alsa-info.sh.1 to EXTRA_DISTJaroslav Kysela2016-03-311-1/+1
|
* alsa-info.sh: add man pageJaroslav Kysela2016-01-132-0/+63
|
* alsa-info: Don't try update when wget isn't availableTakashi Iwai2015-04-271-3/+6
| | | | | | | ... otherwise it overwrites a zero size file. Also add a check of zero size file in the update procedure, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info.sh: add script to EXTRA_DIST (automake)Jaroslav Kysela2015-02-261-0/+1
|
* alsa-info: Refactor "withall" logicDavid Henningsson2014-08-221-8/+15
| | | | | | | | | | | | | Previously, using --output, --no-upload, --upload and --pastebin switches implied the withall switch. A more intuitive logic would be that --with-all is disabled if you use another --with* switch, such as --withdmesg, and only then. Also update script version to reflect the behaviour change. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* alsa-info: Make sure all full script is run even with "output" optionDavid Henningsson2014-08-221-0/+1
| | | | | | | | | | For some reason, when the --output option is used, less information is included compared to when no options are used. This is unexpected. Fix this by running "withall" also when the output option is used. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add alsa-info.sh to alsa-utils repoTakashi Iwai2014-07-302-0/+936
Copied the latest version (0.4.63) from alsa-driver repo. Signed-off-by: Takashi Iwai <tiwai@suse.de>