Add config knob for mixer channel name (ALSA/Linux only)

In some complex ALSA setups, using PCM or Master is not the right thing
to do, so allow a custom mixer element name to be specified in the config
file for this use case.

Request and initial patch by Kurt Vanderlinden <kurt.vanderlinden@skynet.be>.
This commit is contained in:
Julien BLACHE
2011-07-08 11:18:20 +02:00
parent 77cb2d403b
commit f08c18a5ed
3 changed files with 26 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ static cfg_opt_t sec_audio[] =
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
CFG_STR("card", "/dev/dsp", CFGF_NONE),
#endif
CFG_STR("mixer", NULL, CFGF_NONE),
CFG_END()
};