alsa-tools.git
3 weeks agohdajacksensetest: add gitcompile to EXTRA_DIST master
Tanu Kaskinen [Mon, 20 Nov 2017 17:05:28 +0000 (19:05 +0200)]
hdajacksensetest: add gitcompile to EXTRA_DIST

The gitcompile script is used from the top-level Makefile, so it needs
to be included in the tarball.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 weeks agoMakefile: fix version file creation
Jaroslav Kysela [Wed, 15 Nov 2017 10:16:48 +0000 (11:16 +0100)]
Makefile: fix version file creation

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohwmixvolume: add .desktop and icon files
Jaroslav Kysela [Wed, 15 Nov 2017 10:13:04 +0000 (11:13 +0100)]
hwmixvolume: add .desktop and icon files

  Resized version of public domain clipart found here:
  http://www.openclipart.org/detail/17428

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agoenvy24control: add .desktop and icon files
Jaroslav Kysela [Wed, 15 Nov 2017 10:09:04 +0000 (11:09 +0100)]
envy24control: add .desktop and icon files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agoechomixer: add .desktop and icon files
Jaroslav Kysela [Wed, 15 Nov 2017 10:05:11 +0000 (11:05 +0100)]
echomixer: add .desktop and icon files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohdspconf: move .desktop and icon files to desktop, use modern destination for icons
Jaroslav Kysela [Wed, 15 Nov 2017 09:43:48 +0000 (10:43 +0100)]
hdspconf: move .desktop and icon files to desktop, use modern destination for icons

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohdspmixer: move .desktop and icon files to desktop, use modern destination for icons
Jaroslav Kysela [Wed, 15 Nov 2017 09:24:14 +0000 (10:24 +0100)]
hdspmixer: move .desktop and icon files to desktop, use modern destination for icons

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohdajackretask: add .desktop and icon files
Jaroslav Kysela [Wed, 15 Nov 2017 08:55:15 +0000 (09:55 +0100)]
hdajackretask: add .desktop and icon files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohdspconf, hdspmixer: validate the .desktop files
Jaroslav Kysela [Tue, 14 Nov 2017 16:37:58 +0000 (17:37 +0100)]
hdspconf, hdspmixer: validate the .desktop files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agoChange FSF address (Franklin Street)
Jaroslav Kysela [Tue, 14 Nov 2017 13:46:35 +0000 (14:46 +0100)]
Change FSF address (Franklin Street)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agohwmixvolume: use python2 directly
Jaroslav Kysela [Tue, 14 Nov 2017 09:52:50 +0000 (10:52 +0100)]
hwmixvolume: use python2 directly

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 weeks agoRelease v1.1.5 v1.1.5
Jaroslav Kysela [Tue, 14 Nov 2017 07:52:10 +0000 (08:52 +0100)]
Release v1.1.5

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 weeks agoechomixer: obsolete usage of dimension information
Takashi Sakamoto [Sat, 4 Nov 2017 02:28:35 +0000 (11:28 +0900)]
echomixer: obsolete usage of dimension information

In current implementation for a series of echoaudio drivers, some control
element set delivers information to use element values for
multi-dimensional array. Essentially, ALSA control interface of asound.h
has no common way to parse the information. As a result, the drivers
forces 'echomixer' application to parse the information by several ways.

This issue was reported by a commit 51db452df07b ('Revert "ALSA: echoaudio:
purge contradictions between dimension matrix members and total number of
members"') to Linux kernel. As a result of discussion at Linux
miniconference 2017, usage of 'dimen' member of 'struct snd_ctl_elem_info'
is going to be deprecated for future removal.

According to the above decision, this commit obsoletes usage of 'dimen'
information in 'echomixer' application. In a series of echoaudio drivers,
a control element set named as 'Channels info' includes duplicated
information of the dimension information on value array. Additionally,
some of dimension information have fixed values. This commit utilizes them
to obsolete usage of dimension information.

This patch is tested with Echo Gina 3G.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 months agoas10k1: Drop superfluous inline prefix
Takashi Iwai [Tue, 22 Aug 2017 12:38:10 +0000 (14:38 +0200)]
as10k1: Drop superfluous inline prefix

output_tram_line() has a superfluous inline prefix and this interferes
the build with clang.  Let's drop it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

11 months agoRelease v1.1.3 v1.1.3
Jaroslav Kysela [Tue, 20 Dec 2016 09:12:29 +0000 (10:12 +0100)]
Release v1.1.3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

17 months agogcc6 narrowing error
Michel Normand [Mon, 20 Jun 2016 13:26:06 +0000 (15:26 +0200)]
gcc6 narrowing error

gcc6 narrowing error compiling for PowerPC archi
===
[   51s] Cus428Midi.cc: At global scope:
[   51s] Cus428Midi.cc:83:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
[   51s]  };
===

proposed patch as suggested in
https://gcc.gnu.org/gcc-6/porting_to.html

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

2 years agoRelease v1.1.0 v1.1.0
Jaroslav Kysela [Tue, 27 Oct 2015 13:34:05 +0000 (14:34 +0100)]
Release v1.1.0

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

2 years agoAdd */compile to .gitignore
Takashi Iwai [Fri, 2 Oct 2015 10:41:02 +0000 (12:41 +0200)]
Add */compile to .gitignore

Recent autotools give more garbages.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

2 years agoAdd some hdajacksensetest/* files to .gitignore
Takashi Iwai [Fri, 2 Oct 2015 10:38:33 +0000 (12:38 +0200)]
Add some hdajacksensetest/* files to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>

2 years agocspctl.1: remove ".LO" macro. This macro don't exist for manpages syntax.
Stéphane Aulery [Wed, 25 Mar 2015 17:38:53 +0000 (18:38 +0100)]
cspctl.1: remove ".LO" macro. This macro don't exist for manpages syntax.

Signed-off-by: Stéphane Aulery <saulery@free.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

2 years agoRelease v1.0.29 v1.0.29
Jaroslav Kysela [Thu, 26 Feb 2015 12:35:49 +0000 (13:35 +0100)]
Release v1.0.29

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

2 years agohdajackretask: Add dock hp/mic/line to simple options
David Henningsson [Tue, 13 Jan 2015 08:12:29 +0000 (09:12 +0100)]
hdajackretask: Add dock hp/mic/line to simple options

This allows for simpler setting of dock headphone, dock mic,
dock line out and dock line in.

Also improve detection a bit so that an existing dock headphone
shows up as such and not as regular headphone.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 years agoAdd a small "hdajacksensetest" helper
David Henningsson [Mon, 6 Oct 2014 13:30:03 +0000 (15:30 +0200)]
Add a small "hdajacksensetest" helper

I previously had a small python script doing the same thing,
but it depended on hda-analyzer, which always breaks when something
new is added to the codec proc file.

I got tired and rewrote it as a small C program instead, which I
hope will be a useful addition to alsa-tools.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 years agohdajackretask: Add "hints" functionality
David Henningsson [Fri, 1 Aug 2014 14:20:30 +0000 (16:20 +0200)]
hdajackretask: Add "hints" functionality

The kernel driver has some hints you can send to it that changes
parser behaviour. This patch exposes that functionality to the user.

(This patch also includes minor fixes for documentation, GTK warnings
and whitespace.)

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 years agold10k1: Fix missing parentheses for functions
Takashi Iwai [Fri, 27 Jun 2014 14:48:33 +0000 (16:48 +0200)]
ld10k1: Fix missing parentheses for functions

The commit a1728250 removes bash-specific "function" but the necessary
parentheses are missing.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 years agoRelease v1.0.28 v1.0.28
Jaroslav Kysela [Fri, 13 Jun 2014 09:28:13 +0000 (11:28 +0200)]
Release v1.0.28

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

3 years agoqlo10k1: packing fix (configure.ac)
Jaroslav Kysela [Fri, 13 Jun 2014 09:26:43 +0000 (11:26 +0200)]
qlo10k1: packing fix (configure.ac)

3 years agoModernize configure.ac
Jaroslav Kysela [Thu, 12 Jun 2014 09:28:22 +0000 (11:28 +0200)]
Modernize configure.ac

3 years agohdajackretask: Make sure codecs do not show up twice under 3.15 kernel
David Henningsson [Tue, 27 May 2014 07:12:36 +0000 (09:12 +0200)]
hdajackretask: Make sure codecs do not show up twice under 3.15 kernel

On a 3.15 based kernel, both "hdaudioC*D*" and "hwC*D*" shows up under
/sys/class/sound, and pointing to the same object. Make sure we only
match on the hwC*D* name to avoid duplicate entries.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

3 years agohdspmixer: Add support for RME AIO AEB boards
Adrian Knoth [Sat, 4 Jan 2014 20:38:23 +0000 (21:38 +0100)]
hdspmixer: Add support for RME AIO AEB boards

AIO allows to connect Analogue Extension Boards (4in/4out).

Provide those channels in hdspmixer, too.

The channel maps were copied from the driver, hence the changed casing
in the comments.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agohdajackretask: Fix killing PulseAudio on newer PulseAudio versions
David Henningsson [Thu, 13 Jun 2013 14:26:43 +0000 (16:26 +0200)]
hdajackretask: Fix killing PulseAudio on newer PulseAudio versions

The standard configuration directory for PulseAudio has changed,
I think since 3.0. Adjust the directory lookup mechanism to match.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 years agoAdd AM_MAINTAINER_MODE([enable]) macro to all configure scripts.
Jordi Mallach [Wed, 15 May 2013 17:19:11 +0000 (19:19 +0200)]
Add AM_MAINTAINER_MODE([enable]) macro to all configure scripts.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agoFix build errors caused by -Werror=format-security.
Jordi Mallach [Wed, 15 May 2013 17:19:09 +0000 (19:19 +0200)]
Fix build errors caused by -Werror=format-security.

When compiled with hardening-flags enabled, ld10k1 fails to build due to
a pair of unsafe printf usages that trigger -Werror=format-security.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agoFix bashisms.
Elimar Riesebieter [Wed, 15 May 2013 17:19:07 +0000 (19:19 +0200)]
Fix bashisms.

The “function” builtin is a bashism that can be simply omitted with
no behaviour change, if parentheses are supplied.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agoFix spelling of “successfully”.
Jordi Mallach [Wed, 15 May 2013 17:19:08 +0000 (19:19 +0200)]
Fix spelling of “successfully”.

[additionally fixed a typo of "Crative" -- tiwai]

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agoAdd a distclean target to example Makefile.
Elimar Riesebieter [Wed, 15 May 2013 17:19:05 +0000 (19:19 +0200)]
Add a distclean target to example Makefile.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agoRelease v1.0.27 v1.0.27
Jaroslav Kysela [Thu, 11 Apr 2013 11:43:07 +0000 (13:43 +0200)]
Release v1.0.27

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 years agoac3dec: Remove the ac3dec tool
Jaroslav Kysela [Tue, 9 Apr 2013 09:10:02 +0000 (11:10 +0200)]
ac3dec: Remove the ac3dec tool

There may be some licencing issues for the name and decoder (it is not
build in the Fedora distro anyway).

Sources will stay in repos, but almost all current players are able
to handle DD AC-3.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

4 years agohdajackretask: Some more UI fixes
David Henningsson [Mon, 4 Mar 2013 14:10:48 +0000 (15:10 +0100)]
hdajackretask: Some more UI fixes

 - don't overwrite a set advanced override unless necessary
 - fix "not present" never selected
 - remove some trailing whitespaces

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

4 years agohdajackretask: Fix "advanced override" bug
David Henningsson [Thu, 28 Feb 2013 21:01:08 +0000 (22:01 +0100)]
hdajackretask: Fix "advanced override" bug

The values were not correctly retreived from the comboboxes.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoAdd foreign automake option to hdajackretask/Makefile.am
Takashi Iwai [Tue, 13 Nov 2012 13:31:13 +0000 (14:31 +0100)]
Add foreign automake option to hdajackretask/Makefile.am

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoFix typos and missing files for hdajackretask to .gitignore
Takashi Iwai [Tue, 13 Nov 2012 13:29:56 +0000 (14:29 +0100)]
Fix typos and missing files for hdajackretask to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoac3dec: Show usage if no parameter is passed
Fabio Estevam [Tue, 13 Nov 2012 12:08:14 +0000 (10:08 -0200)]
ac3dec: Show usage if no parameter is passed

When ac3dec is called without any argument the application hangs forever.

Instead of hanging, print the usage and exit.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoRelease v1.0.26.1 v1.0.26.1
Jaroslav Kysela [Thu, 6 Sep 2012 15:20:39 +0000 (17:20 +0200)]
Release v1.0.26.1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years ago(q)lo10k1: updated INSTALL files
Jaroslav Kysela [Thu, 6 Sep 2012 15:19:56 +0000 (17:19 +0200)]
(q)lo10k1: updated INSTALL files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agohdajackretask: Add missing header files to tar-ball distribution
Jaroslav Kysela [Thu, 6 Sep 2012 15:19:10 +0000 (17:19 +0200)]
hdajackretask: Add missing header files to tar-ball distribution

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agoRelease v1.0.26 v1.0.26
Jaroslav Kysela [Thu, 6 Sep 2012 07:53:16 +0000 (09:53 +0200)]
Release v1.0.26

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agohda-verb: Don't include sys/io.h for PPC
Takashi Iwai [Tue, 31 Jul 2012 08:58:43 +0000 (10:58 +0200)]
hda-verb: Don't include sys/io.h for PPC

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agohda-verb: Add missing MYNAME definition for packaging
Jaroslav Kysela [Tue, 17 Jul 2012 16:48:20 +0000 (18:48 +0200)]
hda-verb: Add missing MYNAME definition for packaging

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agousx2yloader: make fxload work without deprecated usbfs
Karsten Wiese [Wed, 25 Apr 2012 10:25:04 +0000 (12:25 +0200)]
usx2yloader: make fxload work without deprecated usbfs

Use $DEVNAME instead of $DEVICE in script tascam_fw.

Signed-off-by: Karsten Wiese <fzuuzf@googlemail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoUpdate .gitignore for hda-verb
Takashi Iwai [Fri, 20 Apr 2012 13:56:53 +0000 (15:56 +0200)]
Update .gitignore for hda-verb

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoConvert hda-verb to use automake
Takashi Iwai [Fri, 20 Apr 2012 13:54:49 +0000 (15:54 +0200)]
Convert hda-verb to use automake

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoAdd hdajackretask files to .gitignore
Takashi Iwai [Fri, 20 Apr 2012 13:49:35 +0000 (15:49 +0200)]
Add hdajackretask files to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoImport hda-verb 0.4 to alsa-tools repo
Takashi Iwai [Fri, 20 Apr 2012 13:48:01 +0000 (15:48 +0200)]
Import hda-verb 0.4 to alsa-tools repo

Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agohdajackretask: Use autotools
David Henningsson [Fri, 13 Apr 2012 09:49:21 +0000 (11:49 +0200)]
hdajackretask: Use autotools

Start to use autotools as build system, just like the other programs
in the alsa-tools suite.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>

5 years agohdajackretask: Add new program for easy retask of hda pin nodes
David Henningsson [Thu, 22 Mar 2012 16:47:02 +0000 (17:47 +0100)]
hdajackretask: Add new program for easy retask of hda pin nodes

Most HDA Intel soundcards are to some degree retaskable, i e can be
used for more than one thing. This tool is a GUI to make it easy to
retask your jacks - e g, turn your Mic jack into an extra Headphone,
or why not make them both line outs and connect them to your surround
receiver?

Signed-off-by: David Henningsson <david.henningsson@canonical.com>

5 years agoalsa-tools: hwmixvolume - update README for au88x0
Raymond Yau [Sun, 11 Mar 2012 03:37:22 +0000 (11:37 +0800)]
alsa-tools: hwmixvolume - update README for au88x0

- Need to use alsa-driver kernel 3.4 for Aureal sound cards

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

5 years agoRelease v1.0.25 v1.0.25
Jaroslav Kysela [Wed, 25 Jan 2012 07:57:04 +0000 (08:57 +0100)]
Release v1.0.25

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agoRemove configure.in-gtk2 from Makefiles...
Jaroslav Kysela [Mon, 23 Jan 2012 10:45:15 +0000 (11:45 +0100)]
Remove configure.in-gtk2 from Makefiles...

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agoMore build fixes (gtk1 check removal from echomixer), cvscompile removal
Jaroslav Kysela [Mon, 23 Jan 2012 10:40:34 +0000 (11:40 +0100)]
More build fixes (gtk1 check removal from echomixer), cvscompile removal

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agoenvy24control: support gtk1 only in configure.in-gtk1
Jaroslav Kysela [Fri, 20 Jan 2012 11:39:09 +0000 (12:39 +0100)]
envy24control: support gtk1 only in configure.in-gtk1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agohdspmixer: Fix temporary RPM constant
Adrian Knoth [Fri, 29 Jul 2011 15:57:30 +0000 (17:57 +0200)]
hdspmixer: Fix temporary RPM constant

RPM in hdsp.h's HDSP_IO_Type is 4, not 5. This patch isn't exactly
necessary here, because the constant is only used internally, but to
avoid confusion if somebody ever reads the code, let's use the correct
value.

Note that we'll drop it after the next alsa-lib release.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Fix temporary RPM constant
Adrian Knoth [Fri, 29 Jul 2011 15:57:29 +0000 (17:57 +0200)]
hdsploader: Fix temporary RPM constant

RPM in HDSP_IO_Type (enum from hdsp.h) is 4, not 5.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Temporary define for RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:48 +0000 (23:45 +0200)]
hdsploader: Temporary define for RPM

Right now (1.0.24.1), alsa-lib's hdsp.h doesn't know about the RPM. To
avoid a strong dependency on unreleased code, temporary provide the
define here.

It can be dropped as soon as a new version of alsa-lib will be released,
thus effectively making it the required minimum version for alsa-tools.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Add support for RME RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:47 +0000 (23:45 +0200)]
hdsploader: Add support for RME RPM

Augment hdsploader to support the RME RPM devices. The firmware is
already present in alsa-firmware, so we can directly load it.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Add support for RME RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:46 +0000 (23:45 +0200)]
hdspmixer: Add support for RME RPM

This patch adds support for the RME RPM devices. It's mostly based on
Florian Faber's previous patch against hdspmixer 1.0.23,
forwarded-ported to the current hdspmixer code.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Handle preset files used in 1.0.24 and 1.0.24.1
Adrian Knoth [Fri, 8 Apr 2011 17:58:37 +0000 (19:58 +0200)]
hdspmixer: Handle preset files used in 1.0.24 and 1.0.24.1

As an addition to the previous commit, let's also cover the 3rd case
when a preset file was written with hdspmixer v1.0.24 or v1.0.24.1.

In this case, no magic header will be present, but the file size would
differ from the pre 1.0.24 format.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Handle channel count in old (v1.0.23) preset file format
Adrian Knoth [Fri, 8 Apr 2011 17:58:36 +0000 (19:58 +0200)]
hdspmixer: Handle channel count in old (v1.0.23) preset file format

When reading a preset file, v1.0.23 only used 26 channels instead of 64.
Reading 64 channels from a 26 channel file won't work, hence set it
depending on the file format version.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix read/write from/to preset files on MADI-like cards
Adrian Knoth [Fri, 8 Apr 2011 17:58:35 +0000 (19:58 +0200)]
hdspmixer: Fix read/write from/to preset files on MADI-like cards

The old hdspmixer (prior to e24e56795ea57e3dd7da45063ab71f04e231192d,
that is pre-1.0.24) has used the hard-coded value "14" for
reading/storing 14 ints from/to preset files, however, it's actually
HDSP_MAX_DEST that should be used.

HDSP_MAX_DEST was bumped from 14 to 32 to allow for MADI cards (32
stereo pairs equal 64 output channels on MADI cards)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Initialize headphones out in presets
Adrian Knoth [Mon, 4 Apr 2011 12:34:30 +0000 (14:34 +0200)]
hdspmixer: Initialize headphones out in presets

Cards like the multiface/digiface have additional headphones out. Those
were not initialized in the presets due to wrong loop boundaries:
maxdest represents the amount of physical stereo pairs, and chnls is
either equal or less, so the output fader array needs more iterations
than the playback section.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Recall 1st preset on all cards, not just on the first
Adrian Knoth [Mon, 4 Apr 2011 12:34:29 +0000 (14:34 +0200)]
hdspmixer: Recall 1st preset on all cards, not just on the first

With the new "store current settings to the virtual 9th preset" before
switching cards code, one needs to make sure the actual mixer state is
loaded with sane values, either from the preset file or a generic
builtin preset.

Calling preset_change(1) is sufficient, setting all the required data.
However, in case of more than one RME card in the system, one needs to
call this function for each card, otherwise, some of the cards store
uninitialized data to the 9th preset, resulting in a weird mixer state
afterwards.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Save preset before switching cards
Adrian Knoth [Mon, 4 Apr 2011 12:34:28 +0000 (14:34 +0200)]
hdspmixer: Save preset before switching cards

When running with more than one card, switching cards would lose any
changes made to the current card. To avoid this inconvenience, save the
current settings to the virtual 9th preset and restore them when
switching back.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Add a 9th pseudo preset
Adrian Knoth [Mon, 4 Apr 2011 12:34:27 +0000 (14:34 +0200)]
hdspmixer: Add a 9th pseudo preset

When switching cards, all current settings are lost. To have a place
where to store them, let's add a virtual 9th preset which can be used as
a temporary scratch pad.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: fix drawing problems with black background
Tim Blechmann [Sat, 2 Apr 2011 12:44:11 +0000 (14:44 +0200)]
hdspmixer: fix drawing problems with black background

- use foreground color instead of black
- HDSPMixerSelector: set colors before setting labels

Signed-off-by: Tim Blechmann <tim@klingt.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspconf: more string constant fixes
Tim Blechmann [Sun, 27 Mar 2011 11:50:34 +0000 (13:50 +0200)]
hdspconf: more string constant fixes

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspconf: use foreground color instead of black
Tim Blechmann [Sun, 27 Mar 2011 11:34:20 +0000 (13:34 +0200)]
hdspconf: use foreground color instead of black

if the background color of the color scheme is black, black text is hard
to read. using the foreground color fixes this problem

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspconf: fix some string constant conversions
Tim Blechmann [Sun, 27 Mar 2011 11:34:19 +0000 (13:34 +0200)]
hdspconf: fix some string constant conversions

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Update NEWS file.
Adrian Knoth [Tue, 22 Mar 2011 10:53:48 +0000 (11:53 +0100)]
hdspmixer: Update NEWS file.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Save and restore level meter settings
Adrian Knoth [Tue, 22 Mar 2011 10:53:47 +0000 (11:53 +0100)]
hdspmixer: Save and restore level meter settings

Each preset can have a different level meter setting (FS samples for
OVR, release rate, minimum level and so on).

These settings were not saved/restore to/from the on-disk file. This
patch adds the missing functionality.

Unfortunately, the current on-disk format is a 1:1 binary dump from
memory without any header information. In other words, this commit will
break backward compatibility with older hdspmixers, that is, new preset
files cannot be read by older versions of hdspmixer. However, we can
still read the old mix files and save them in the new format.

I hence bumped the version, so users know to re-create their files after
upgrading to 1.11.

Bug discovered by Raphaël Doursenaud from ematech.fr.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Use constant instead of hardcoded number of cards.
Adrian Knoth [Tue, 22 Mar 2011 10:53:46 +0000 (11:53 +0100)]
hdspmixer: Use constant instead of hardcoded number of cards.

Again, use MAX_CARDS instead of "3", just in case MAX_CARDS should
change some day.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Improve pixmaps
Adrian Knoth [Tue, 22 Mar 2011 10:53:45 +0000 (11:53 +0100)]
hdspmixer: Improve pixmaps

- Added tick marks at 4dB intervals
- Small fixes and cleanup to buttons
- Better ALSA branding

All pixmaps provided by Reuben Martin.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix toggle of master mute and solo buttons
Adrian Knoth [Tue, 22 Mar 2011 10:53:44 +0000 (11:53 +0100)]
hdspmixer: Fix toggle of master mute and solo buttons

The sensitive area for master mute and solo buttons was slightly off.
Discovered and fixed by Reuben Martin. Thanks for the patch.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: New pixmaps
Adrian Knoth [Sun, 13 Mar 2011 18:53:36 +0000 (19:53 +0100)]
hdspmixer: New pixmaps

Reuben Martin has provided me with an updated pixmap set to replace
RME's 1998 style no longer in use by the corresponding Win32 tools.

The Linux pixmaps are based on ardour2. Likewise hdspmixer, ardour2 is
GPLv2.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agohdspmixer: Show cardname in window title
Adrian Knoth [Mon, 7 Mar 2011 18:03:09 +0000 (19:03 +0100)]
hdspmixer: Show cardname in window title

When running with more than one card, it isn't obvious which card is
shown.

Store the ALSA cardname in the corresponding class and show it in the
window title upon switching cards.

Also, don't show "(null)" but "(unsaved)" in case the user hasn't
selected a preset file.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: [cosmetics] Break code into logic blocks
Adrian Knoth [Mon, 7 Mar 2011 18:03:08 +0000 (19:03 +0100)]
hdspmixer: [cosmetics] Break code into logic blocks

Convert the if-then-else-if chain into standalone if-then blocks to
improve readability. A switch-case statement would also do the trick,
but it's less readable.

No (intended) semantic change.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix code indentation
Adrian Knoth [Mon, 7 Mar 2011 18:03:07 +0000 (19:03 +0100)]
hdspmixer: Fix code indentation

Only cosmetics, no changed semantics. Indent the whole function to get
rid of a mixture of tabs and spaces.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Provide headphones out on Multiface/Digiface
Adrian Knoth [Mon, 7 Mar 2011 18:03:06 +0000 (19:03 +0100)]
hdspmixer: Provide headphones out on Multiface/Digiface

Both, Multiface and Digiface feature a separate headphone submix, so
reflect this additional pair of channels in the corresponding maps.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Introduce output channel count for all cards.
Adrian Knoth [Mon, 7 Mar 2011 18:03:05 +0000 (19:03 +0100)]
hdspmixer: Introduce output channel count for all cards.

Some cards (like multiface) have more physical output ports than
playback ports, mostly because of additional headphones out.

For those cards, the old abstraction model of channels_input and
channels_output doesn't fit, so let's introduce channels_output.

Of course, channels_output is always 2*max_dest at the given speed_mode
(SS/DS/QS), so one could extend this idea, store all destination
settings in channels_output[3] (one for each speed mode) and rip off the
massive code duplication for setting maxdest or max_dest respectively.

Note that dest_map_whatever_speed_mode's array size indirectly defines
the right value for channels_output (read: even more unwanted
redundancy)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Adjust playback channel count on Multiface.
Adrian Knoth [Mon, 7 Mar 2011 18:03:04 +0000 (19:03 +0100)]
hdspmixer: Adjust playback channel count on Multiface.

The multiface has 18/14 (SS/DS) playback channels, matching the native
18/14 I/O ports. Headphones don't count (only for #destinations).

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix preset activation segfault on AES(32)
Adrian Knoth [Mon, 7 Mar 2011 18:03:03 +0000 (19:03 +0100)]
hdspmixer: Fix preset activation segfault on AES(32)

When selecting preset 6 or 7 on AES(32), hdspmixer has caused a segfault
due to indirect out of bound access on the destination label array.

The amount of destinations is the number of physical stereo
pairs, so it's usually half the channel count, in some cases one more if
there are additional headphone jacks.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Replace hardcoded 3 by MAX_CARDS
Adrian Knoth [Mon, 7 Mar 2011 18:03:02 +0000 (19:03 +0100)]
hdspmixer: Replace hardcoded 3 by MAX_CARDS

We have a define for the number of cards. Use it.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix labels on H9652
Adrian Knoth [Tue, 1 Mar 2011 09:42:27 +0000 (10:42 +0100)]
hdspmixer: Fix labels on H9652

The H9652 uses the same layout as the Digiface, except Digiface features
an additional headphones out. That's why the channel mappings are the
same, but Digiface has mexdest=14 while H9652 has maxdest=13 (12 ADAT
pairs, another pair for S/PDIF and headphone-L/R on Digiface)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Lower nesting depth in label assignment
Adrian Knoth [Tue, 1 Mar 2011 09:42:26 +0000 (10:42 +0100)]
hdspmixer: Lower nesting depth in label assignment

This fix is mostly cosmetic, the long if-then-else-if-chain was rather
confusing. To improve code readability, use simple if-then statements
and leave the function as soon as a match is found.

Clear code would probably use a two-dimensional map, but it seems rather
overengineered.

Last but not least, the non-matching case was augmented by assigning a
generic "1", "2", "3" .. channel naming schema to prevent hdspmixer from
crashing.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Make static destination maps extern
Adrian Knoth [Tue, 1 Mar 2011 09:42:25 +0000 (10:42 +0100)]
hdspmixer: Make static destination maps extern

To prevent multiple inclusion, make the destmaps global and only
reference them via extern.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Don't use hardcoded number of cards.
Adrian Knoth [Mon, 28 Feb 2011 13:56:08 +0000 (14:56 +0100)]
hdspmixer: Don't use hardcoded number of cards.

We have introduced MAX_CARDS before to make the code more safe and
extendable, so it's just sane to use it all over the place.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix compiler warnings.
Adrian Knoth [Mon, 28 Feb 2011 13:56:07 +0000 (14:56 +0100)]
hdspmixer: Fix compiler warnings.

All compiler warnings were caused by a conversion from "foo" to a
char pointer. Given that the string itself really is constant, simply
add the keyword to make g++ happy.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix metering for non-MADI cards
Adrian Knoth [Thu, 24 Feb 2011 20:33:31 +0000 (21:33 +0100)]
hdspmixer: Fix metering for non-MADI cards

Currently, hdsp and hdspm use different ioctls. Consequently, the metering
is wrong. To avoid code duplication, use pointers to the corresponding
struct members.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Fix ALSA snd_ctl_open error when running with three cards.
Adrian Knoth [Thu, 24 Feb 2011 20:33:30 +0000 (21:33 +0100)]
hdspmixer: Fix ALSA snd_ctl_open error when running with three cards.

If three (or more) RME cards are installed in one box, hdspmixer will
try to open a non-existing 4th card, causing an error in snd_ctl_open
and finally terminates itself.

cards[] is a static array, and one must not read beyond the last
element. The solution is far from elegant, however, it's a rather
unintrusive change.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Bump version number to 1.10
Adrian Knoth [Thu, 24 Feb 2011 20:33:29 +0000 (21:33 +0100)]
hdspmixer: Bump version number to 1.10

Florian Faber's last hdspmixer64 version was 1.9, so let's make this the
successor (contains everything that was in 1.9 and also Fredrik's work
on AES(32) support)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Increase height of about window.
Adrian Knoth [Thu, 24 Feb 2011 20:33:28 +0000 (21:33 +0100)]
hdspmixer: Increase height of about window.

The copyright list got longer, so we need more vertical space.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>