Commit graph

202 commits

Author SHA1 Message Date
Takashi Iwai
13e913bf85 Add missing CMI8788.conf to Makefile.am 2007-08-22 13:12:21 +02:00
Clemens Ladisch
9749c31fa7 cmi8788: add alsa-lib config
Add a .conf file to enable dmix/dsnoop and softvol for CMI8788.

Using dmix helps mask the bug that all audio is forced to 48 kHz. :-)
2007-08-22 09:42:13 +02:00
Jaroslav Kysela
e0d7bfcea6 mixer simple basic abstraction - added python binding
reasons:
- rapid development
- class-like code structure
- more readable code
features:
- hcontrol binding is managed from python (opportunity to create
  virtual mixer without driver or join multiple cards to behave as one)
2007-07-11 10:10:12 +02:00
Takashi Iwai
7f0beceb7d Added PS3 configuration
Added PS3 configuration.
No iec958 PCM at this stage since it doesn't support passthru yet.
2007-07-05 12:58:10 +02:00
Takashi Iwai
e4c80614e9 Use S16_BE as dmix format for PPC drivers
PPC drivers should use S16_BE as the base format of dmix/dsnoop.
This avoid confusion of format endianess via CPU emulation.
2007-07-03 19:55:57 +02:00
Takashi Iwai
971ec92b8b Specify subdevice number for Maestor3 dmix setting
The subdevice number of a dmix slave PCM has to be specified explicitly
for the device with multiple substreams such as Maestro3.
2007-05-22 18:38:58 +02:00
Steve Longerbeam
63e4c591f9 Add support for gain in softvol plugin
This patch allows for gain in the softvol plugin, in addition to attenuation.
The plugin now has a "max_dB" parameter (up to 50 dB) as well as the
original "min_dB" parameter (down to -51 dB). max_dB defaults to 0 dB, so
unless max_dB is specified in a device conf, the behavior of the plugin will
be the same as before (attenuation only).

HDA-Intel.conf is also modified to use softvol for its default capture.
So now, capture is filtered through softvol (range -30 to +30 dB) before
being passed on to dsnoop as before.

The softvol plugin allows a range of -51 to +50 dB, so max_dB could be
increased to 50. But eventually samples are going to get clipped. At 40
dB I was beginning to get clipping when recording a sample sound at a
"reasonably soft" volume using a digital mic on the stac9205 HDA codec.

The motivation for this work is that some HDA codecs have no hardware gain
control for some paths. For instance, the stac9205 has support for digital
mics, but there is no gain control widget for this signal before it is placed
on the Azalia link (only a mute). Therefore gain can only be accomplished
via software.

Signed-off-by: Steve Longerbeam <stevel@embeddedalley.com>
2007-05-18 15:04:12 +02:00
Takashi Iwai
21888c5f50 Add config and plugin directory options to configure
Added --with-configdir and --with-plugindir options to configure
which specify the directories for config files and plugin objects
respectively.  The default paths when these options are not
specified are unchanged.
2007-05-03 20:55:54 +02:00
Takashi Iwai
41dfdba7fb Add missing smixer.conf for installation 2007-04-05 17:19:40 +02:00
Rene Herman
9a75eec664 Fix alsa-devel ML address
This replaces all occurences of alsa-devel@lists.s[ource]f[orge].net
that a simple recursive grep found in the current HG ALSA repos by
alsa-devel@alsa-project.org.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
2007-03-21 12:21:38 +01:00
Clemens Ladisch
98f8b6c9a8 add USB-Audio.conf to Makefile.am 2007-02-13 14:03:30 +01:00
Clemens Ladisch
09eb800771 enable dmix-ing and proper 5.1 routing for USB audio devices
add a configuration file for USB audio devices
2007-02-13 09:01:31 +01:00
Takashi Iwai
70c20571e1 Fix CS46xx.conf default capture
Fix the capture slave to hw for CS46xx default PCM since dsnoop
seems not working with this hardware well.
2006-11-24 16:29:45 +01:00
Clemens Ladisch
125b22189e fix a typo
fix a typo introduced in changeset d14ade7ede2a
2006-11-16 07:49:24 +01:00
Takashi Iwai
21207351a8 Revert dmix.conf and dsnoop.conf
Revert dmix.conf and dsnoop.conf.
The ipc key offset had been already modified to be unique for
each card, stream, device and subdevice interanally in dmix &
co plugins.
2006-10-20 17:57:16 +02:00
Jaroslav Kysela
d7916981bf pcm config files cleanups and name hint extension
- remove device 0/subdevice 0 from configuration files (it's default)
- name_hint
  - fixed parsing slaves
  - obtain device numbers directly from 'type hw' configurations to
    avoid poluting of configurations scripts with hint.device lines
2006-10-12 16:27:23 +02:00
Jaroslav Kysela
1300e70573 more name hint interace updates
- add long card name to device description
- create empty PCM plugin to allow right hint description parsing
- reorder devices in alsa.conf
- make namehint more configurable (using default.namehint.showall switch)
- add two levels basic and exteded for hints to default configuration files
- do not show direct device aliases
- removed all known memory leaks
2006-10-12 14:34:23 +02:00
Jaroslav Kysela
aa7a0dd70b add card number to ipc key for dmix / dsnoop PCM definitions
See ALSA bug#1573
Also add card_inum, iadd, imul functions to configuration files.
2006-10-11 15:59:19 +02:00
Jaroslav Kysela
13fdc41785 add snd_device_name_hint() function and initial implementation
- add snd_device_name_hint() and snd_device_name_free_hint() functions
- add snd_ctl_iface_conf_name() functions
- do not accept parameters for the plugin definition without @args section
- add defaults.pcm.dmix.card/device and dsnoop.card/device definitions
- add hints for HDA-Intel.conf, pcm/dmix.conf, pcm/dsnoop.conf and alsa.conf
- add test/namehint test utility
- doxygen related cleanups
2006-10-11 13:18:57 +02:00
Takashi Iwai
1a87651393 Use dmix/dsnoop for maestro3 boards
Use dmix/dsnoop for maestro3 boards.  Although maestro3 has multiple
playback capability, it supports only two streams (with the currently
available firmware).
2006-10-04 17:33:25 +02:00
Takashi Iwai
612216db0d Add --disable-alisp configure option
Added --disable-alisp configure option to disable alsip support.
2006-09-06 14:39:01 +02:00
Takashi Iwai
408697bfe2 Add config for new snd-aoa driver
Add a new config for new snd-aoa driver, aliased to PMacToonie.
2006-06-30 11:34:30 +02:00
Takashi Iwai
67ff9b7bf0 Fixed driver alias of Aureon 7.1 Universe
Fixed driver alias of Aureon 7.1 Universe.  Aureon71Universe was too long
as the driver name.  The corrected name is Aureon71Univ.
2006-06-29 16:43:56 +02:00
Takashi Iwai
bbbb06bc8f Turn on iec958 capture of iec1724 boards with spdif PCM
Automatically turn on iec958 capture of iec1724 boards
with spdif PCM via hooks plugin.
2006-06-23 14:42:59 +02:00
Takashi Iwai
da17b50892 Add default dmix rate and format definitions in alsa.conf
Added defaults.pcm.dmix_format and dmix_rate definitions to
alsa.conf.  They are referred as the default values of standard
dmix/dsnoop PCM.
2006-06-16 19:27:35 +02:00
Takashi Iwai
daed233936 Fix surround40 config for ens1370
Fixed surround40 config for ens1370.  Added missing interface for
the hook control.
2006-05-18 11:26:00 +02:00
Takashi Iwai
c445fddab6 Fix device number of ICH4 iec958 controls
Fix device number of control emenets in ICH4 iec958 PCM hooks.
2006-05-02 14:30:33 +02:00
Takashi Iwai
04a5f529db Add PCM definitions dpl and dpl2
Add PCM definitions "dpl" and "dpl2" in pcm/dpl.conf.
Include the file via
	<confdir:pcm/dpl.conf>
for use.
2006-04-06 19:08:27 +02:00
Takashi Iwai
1128efc7d4 Fix buffer size handling of direct plugins
Introduce "max_periods" option to specify the max number of periods
per buffer to each plugin.

- When max_periods = -1, the fixed buffer size as the slave size is
  used (old behavior).
- When max_periods = 0 (or 1), the number of periods is variable
  between 2 and the slave buffer size.
- When max_periods greater than 2 is given, it specifies the max
  periods of that pcm explicitly.

When no option is given in the PCM defintion, the value
"defaults.pcm.dmix_max_periods" is referred as default.
The default value is 0, as defined in alsa.conf.
You can override this in ~/.asoundrc or /etc/asound.conf as you like.
2006-04-06 18:49:11 +02:00
Takashi Iwai
7e6c920836 dmix - Allow more flexible buffer sizes
With the patch, dmix allows apps to use more flexible buffer sizes.
The max buffer size is unlimited, and the minimal buffer size is
(period size * 2).  The buffer size is aligned to period size.

The period size is still bound to the period size of slave PCM.

To back to the old behavior (the fixed buffer size), you can set

   defaults.pcm.dmix_variable_buffer false

in your configuration.
2006-03-21 10:27:35 +00:00
Takashi Iwai
eecfed7569 Add channels parameter to surround40/51 definitions
Add channels parameter to surround40/51 definitions for drivers
using a single device.
2006-03-17 18:14:23 +00:00
Takashi Iwai
67868a886f Fix check of nonblock option
Fix the check of nonblock option for all hw layer.
Instead of passing in asound.conf, check the option in snd_pcm_hw_open()
so that the nonblock option is referred in the case of "type hw ..." style
definition, too.
2006-02-17 20:49:21 +00:00
Takashi Iwai
7eff603576 Support multi-card/device for direct plugins
- Support multi-card/device for dmix/dsnoop/dshare plugins
  The unique ipc key is calculated based on card/device/sub index

- Clean up and share the code among all d* plugins

- Refer the defaults.pcm.* configuration
  The base ipc_key number, ipc_gid and ipc_perm are referred.
2006-01-16 13:15:32 +00:00
Clemens Ladisch
a0dcf5f8d1 remove duplicate parameter
Remove the duplicate SUBDEV argument definition that got accidentally
added in the last patch.
2006-01-13 15:57:00 +00:00
Takashi Iwai
559deb4d95 Fix configuration for Aureon and Prodigy71 boards
Fixed the default configuration of Aureon and Prodigy71 boards
to use dmix/dsnoop.  Added a new alias for Prodigy71LT.
2006-01-13 13:52:31 +00:00
Takashi Iwai
1a9695af4d Add missing alias entries
Added the missing alias entries.
2006-01-13 11:53:08 +00:00
Takashi Iwai
3d0e3e2517 Add "nonblock" option for hw layer
Added a new "nonblock" option for hw layer.  This controls the non-blocking
"open" mode as default.

This option is set to TRUE as the default configuration.  If the old behavior
is preferred, set "defaults.pcm.nonblock" to 0 in /etc/asound.conf.
2006-01-13 11:52:01 +00:00
Takashi Iwai
5bdd7f6b9b Make dmix/dsnoop as default for ICE1712
Make dmix/dsnoop as default for ICE1712 (bug#1659).
2006-01-04 16:05:36 +00:00
James Courtier-Dutton
46f81f994b snd-ca0106: update mixer controls names from SPDIF to IEC958 2005-12-16 22:04:10 +00:00
Takashi Iwai
46df7083c9 Make dmix/dsnoop as default PCM for ICE1724
Make dmix/dsnoop as default PCM for ICE1724.
2005-12-14 13:14:45 +00:00
James Courtier-Dutton
01892b78fa snd-ca0106 Fixed SPDIF output.
Example failure error message before fix:

speaker-test 0.0.8

Playback device is spdif
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib setup.c:549:(add_elem) Cannot obtain info for CTL elem (MIXER,'SPDIF Front',0,0,0): No such file or directory
Playback open error: -2,No such file or directory
2005-12-13 10:42:32 +00:00
Takashi Iwai
74fcf774da Fix a missing line in PMacToonie.conf
Add a missing line "playback.pcm {" in PMacToonie.conf (bug#1594).
2005-12-02 13:44:13 +00:00
Lee Revell
477325ddfb use dmix/dsnoop for default PCM on ca0106
This chipset lacks hardware mixing so needs to use dmix/dsnoop by
default.

Signed-off-by: Lee Revell <rlrevell@joe-job.com>
2005-09-29 12:32:41 +00:00
Takashi Iwai
841ca34917 Fix endianess of PMac driver
Fix endianess of PMac driver for the latest change of dmix.
Now need to specify the (big-endian) format explicitly.
2005-09-19 12:40:02 +00:00
Takashi Iwai
dee6f010b7 Use S16_LE as default for dmix
Use S16_LE as default format for dmix, instead of S16.
2005-09-19 12:38:14 +00:00
Mikael Magnusson
148c2b8e7c emu10k1: Front channels via fxbus 8 and 9
Routes front channels via fxbus 8 and 9 instead of fxbus 0 and 1. This
makes the front and default devices independent of each other, and
"Wave Surround", "Wave Center" and "Wave LFE" don't have to be muted
during 5.1 playback.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2005-09-13 10:36:16 +00:00
Takashi Iwai
7ba8d5c307 Add modem pcm definition for hda-intel driver
Add modem pcm definition for hda-intel driver.
2005-09-12 10:44:53 +00:00
Sasha Khapyorsky
dba82373c6 modem's pcm "two device" config
This defines two modem related pcm devices: "phoneline" is driver's pcm
reference, with "modem" the line will be "Hook-Off"ed automatically.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
2005-09-12 10:37:22 +00:00
Jaroslav Kysela
af6544a274 dmix and dsnoop configuration - added ipc_perm 0660 (to handle all users with audio group) 2005-09-08 06:36:00 +00:00
Takashi Iwai
0eac0a983a Fix configuration for ICE1724
- Fix surround40 channel numbers
- Fix rear/center_lfe channel assignment

This configuration is based on the channel order on Revo 7.1,
Front/CLFE/Surr/Side

If the other ice1724-based boards have a different order, we need
to rename the driver's id to distinguish the difference.
2005-09-02 16:40:40 +00:00