2012/1/31 Tanu Kaskinen <tanuk at iki.fi>: > On Tue, 2012-01-31 at 09:43 +0800, Feng Wei wrote: >> 2012/1/30 Tanu Kaskinen <tanuk at iki.fi>: >> > On Mon, 2012-01-30 at 11:08 +0800, Feng Wei wrote: >> >> I just want something to be default sink out of the box before any >> >> default sink is specified. >> > >> > Would "set-default-sink foo" in /etc/pulse/default.pa be a suitable >> > solution for you? >> I'm not sure because that way will always set a certain sink as >> default every time booting up, even if some user update the default >> sink. IMO, if someone change the default sink, PA will take the new >> sink as default sink next time startup. > > I see. One solution would be to add a "factory_settings" module argument > to module-default-device-restore: if no database file exists when the > module is loaded, it would read the initial database from the factory > settings file. > > I'd like that solution (I'm sure there are many alternatives), because I > think such functionality is really needed for the various restore > modules. In Maemo we needed that for module-stream-restore, so there's > now the fallback_table module argument. I don't like the implementation > details too much, though - I think "factory_settings" would be a more > descriptive argument name, and the file format could be better (there > are several things that module-stream-restore handles, but the fallback > table can only configure volumes). The ini-style format of the general > configuration parser could probably be used. Reasonable. Thank your answer very much, Tanu. > > -- > Tanu > > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss -- Wei.Feng (irc wei_feng) Linaro Multimedia Team Linaro.org???Open source software for ARM SoCs Follow?Linaro:?Facebook?|?Twitter?|?Blog