From: Stefan Schmidt <stefan@datenfreihafen.org>
To: Jaroslav Kysela <perex@perex.cz>
Cc: Graeme Gregory <gg@slimlogic.co.uk>,
alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Ian Molton <ian@mnementh.co.uk>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH] ascenario: Add scenario support to alsa-lib
Date: Mon, 5 Oct 2009 11:35:02 +0200 [thread overview]
Message-ID: <20091005093502.GC3983@excalibur.local> (raw)
In-Reply-To: <alpine.LNX.2.00.0910051111220.31529@eeebox2.perex-int.cz>
[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]
Hello.
On Mon, 2009-10-05 at 11:14, Jaroslav Kysela wrote:
> On Mon, 5 Oct 2009, Stefan Schmidt wrote:
>
> >On Thu, 2009-10-01 at 17:08, Stefan Schmidt wrote:
> >>
> >>For an updated patch with all your comments inlcuded see below.
> >
> >Here is another update on this patch. Fixed a problem I introduced in the last
> >iteration and changed the config tokens from MasterPlaybackVolume to Master
> >Playback Volume, etc. That's based on a siggestion from Mark which we had
> >offlist. Let me quote it here to explain the good reasoning behind it.
>
> Question: What's the IDs (integers) returned with
> snd_scenario_get_master_playback_volume() etc. functions?
That is part of the code Liam wrote, but let me answer it (and maybe Liam chime
in if it is wrong or needs more explanation).
It's just the numid of an alsa control which should be used as master playback,
etc in this scenario. It aliases the function we can use with ascenario to the
real ones in alsa which can bedifferent for different scenarios.
> Please, include also some test configuration files to review the
> configuration syntax.
Attached. default.conf is the main configuration file located at
/etc/alsa/scenario/default.conf
playback_hs is an example of scenario syntax and playback_hs_sequence is an
example of the sequence syntax. Both file names are referenced from default.conf
and located under
/etc/alsa/scenario/default/
regards
Stefan Schmidt
[-- Attachment #2: default.conf --]
[-- Type: text/plain, Size: 2034 bytes --]
# Test scenario configuration for Machine X
# Author: Joe Bloggs <joe@bloggs.com>
# lines beginning with # are comments
Section "Scenario"
# scenario unique name (mandatory)
Identifier = "playback speaker"
# scenario file name (mandatory)
File = "playback_spk"
# scenario audio quality of service (optional) - HIFI, VOICE or SYSTEM
QoS = HIFI
# alias for master playback volume (optional)
Master Playback Volume = 8
# alias for master playback switch (optional)
Master Playback Switch = 2
# alias for master capture volume (optional)
Master Capture Volume = 3
# alias for master capture switch (optional)
Master Capture Switch = 4
EndSection
Section "Scenario"
# scenario unique name (mandatory)
Identifier = "playback headphones"
# scenario file name (mandatory)
File = "playback_hp"
# scenario audio quality of service (optional) - HIFI, VOICE or SYSTEM
QoS = HIFI
# alias for master playback volume (optional)
Master Playback Volume = 10
# alias for master playback switch (optional)
Master Playback Switch = 20
# alias for master capture volume (optional)
Master Capture Volume = 30
# alias for master capture switch (optional)
Master Capture Switch = 40
# Sequencer to allow pre and post scenario changes (optional)
PreSequenceFile = "playback_hp_sequence"
PostSequenceFile = "playback_hp_sequence"
EndSection
Section "Scenario"
# scenario unique name (mandatory)
Identifier = "playback headset"
# scenario file name (mandatory)
File = "playback_hs"
# scenario audio quality of service (optional) - HIFI, VOICE or SYSTEM
QoS = HIFI
# alias for master playback volume (optional)
Master Playback Volume = 1
# alias for master playback switch (optional)
Master Playback Switch = 2
# alias for master capture volume (optional)
Master Capture Volume = 3
# alias for master capture switch (optional)
Master Capture Switch = 4
# Sequencer to allow pre and post scenario changes (optional)
PreSequenceFile = "playback_hs_sequence"
PostSequenceFile = "playback_hs_sequence"
EndSection
[-- Attachment #3: playback_hs --]
[-- Type: text/plain, Size: 128 bytes --]
1:'Capture Volume':2:65536,65536
2:'Capture Switch':1:1
3:'Master Playback Volume':2:52429,52429
4:'Master Playback Switch':1:1
[-- Attachment #4: playback_hs_sequence --]
[-- Type: text/plain, Size: 158 bytes --]
# comment
kcontrol "Master Playback Volume" = "23"
kcontrol "Master Playback Switch" = "1"
msleep = 1000000 # fofoof
kcontrol "Master Playback Volume" = "42"
[-- Attachment #5: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2009-10-05 9:35 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 9:47 [RFC] Add scenario management Stefan Schmidt
2009-10-01 9:47 ` [PATCH] ascenario: Add scenario support to alsa-lib Stefan Schmidt
2009-10-01 12:28 ` Mark Brown
2009-10-01 12:48 ` Liam Girdwood
2009-10-01 13:02 ` Mark Brown
2009-10-01 14:06 ` Liam Girdwood
2009-10-01 14:18 ` Mark Brown
2009-10-01 13:19 ` Stefan Schmidt
2009-10-01 13:24 ` Mark Brown
2009-10-01 13:38 ` Stefan Schmidt
2009-10-01 13:39 ` pl bossart
2009-10-01 13:54 ` Liam Girdwood
2009-10-01 14:11 ` Stefan Schmidt
2009-10-01 15:08 ` Stefan Schmidt
2009-10-05 8:27 ` Stefan Schmidt
2009-10-05 9:14 ` Jaroslav Kysela
2009-10-05 9:35 ` Stefan Schmidt [this message]
2009-10-06 8:23 ` Jaroslav Kysela
2009-10-06 8:41 ` Takashi Iwai
2009-10-06 9:00 ` Jaroslav Kysela
2009-10-06 9:13 ` Takashi Iwai
2009-10-07 8:10 ` Jaroslav Kysela
2009-10-07 8:52 ` Takashi Iwai
2009-10-07 9:47 ` Jaroslav Kysela
2009-10-07 9:55 ` Takashi Iwai
2009-10-06 9:28 ` Takashi Iwai
2009-10-06 11:05 ` Jaroslav Kysela
2009-10-06 13:33 ` Jaroslav Kysela
2009-10-06 13:46 ` Takashi Iwai
2009-10-07 13:48 ` Stefan Schmidt
2009-10-06 15:12 ` Stefan Schmidt
2009-10-06 15:54 ` [PATCH 0/3] ascenario: Bring it to compile after API changes Stefan Schmidt
2009-10-06 15:54 ` [PATCH 1/3] ascenario: Fix typedef for snd_scenario_t Stefan Schmidt
2009-10-06 16:04 ` Takashi Iwai
2009-10-06 17:08 ` Stefan Schmidt
2009-10-06 17:16 ` Jaroslav Kysela
2009-10-06 17:42 ` Stefan Schmidt
2009-10-06 15:54 ` [PATCH 2/3] ascenario: Fix usage of new typedefed snd_scenario_t Stefan Schmidt
2009-10-06 15:54 ` [PATCH 3/3] ascenario: Catchup with function declaration changes Stefan Schmidt
2009-10-07 13:53 ` [PATCH] ascenario: Add scenario support to alsa-lib Mark Brown
2009-10-06 10:29 ` Stefan Schmidt
2009-10-01 9:47 ` [PATCH] ascenario: Add dump and configure utils for ascneario Stefan Schmidt
2009-10-02 9:12 ` [RFC] Add scenario management Takashi Iwai
2009-10-02 9:55 ` Stefan Schmidt
2009-10-02 9:58 ` Takashi Iwai
2009-10-02 9:58 ` Jaroslav Kysela
2009-10-02 10:12 ` Takashi Iwai
2009-10-02 10:45 ` Liam Girdwood
2009-10-02 11:03 ` Jaroslav Kysela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091005093502.GC3983@excalibur.local \
--to=stefan@datenfreihafen.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=gg@slimlogic.co.uk \
--cc=ian@mnementh.co.uk \
--cc=lrg@slimlogic.co.uk \
--cc=perex@perex.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.