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