diff options
author | Christian König <deathsimple@vodafone.de> | 2009-10-08 00:04:01 +0200 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2009-10-08 11:34:23 +0200 |
commit | 422ac06b69cfcbfbaa802fdc916d3b87f40eeb41 (patch) | |
tree | e49fa7b4522b06ab2babacc250b26896c2d77d7d /src/rhd_driver.c | |
parent | 3cef2a6553359b063b760a2f436ce84365c60682 (diff) |
Silence audio stream option.
This patch adds an option to play silence instead of playing no sound at all.
This fixes some issues where a receiver needs 1-2 seconds to adjust to a new audio stream.
This option can be enabled by setting AudioStreamSilence in xorg.conf or by xrandr.
Diffstat (limited to 'src/rhd_driver.c')
-rw-r--r-- | src/rhd_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rhd_driver.c b/src/rhd_driver.c index 649cadb..e502c5f 100644 --- a/src/rhd_driver.c +++ b/src/rhd_driver.c @@ -261,6 +261,7 @@ typedef enum { #endif OPTION_UNVERIFIED_FEAT, OPTION_AUDIO, + OPTION_AUDIO_WORKAROUND, OPTION_HDMI, OPTION_COHERENT, OPTION_FORCE_LOW_POWER, @@ -292,6 +293,7 @@ static const OptionInfoRec RHDOptions[] = { #endif { OPTION_UNVERIFIED_FEAT, "UnverifiedFeatures", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_AUDIO, "Audio", OPTV_BOOLEAN, {0}, FALSE }, + { OPTION_AUDIO_WORKAROUND, "AudioStreamSilence", OPTV_ANYSTR, {0}, FALSE }, { OPTION_HDMI, "HDMI", OPTV_ANYSTR, {0}, FALSE }, { OPTION_COHERENT, "COHERENT", OPTV_ANYSTR, {0}, FALSE }, { OPTION_FORCE_LOW_POWER, "ForceLowPowerMode", OPTV_BOOLEAN, {0}, FALSE }, @@ -2844,6 +2846,8 @@ rhdProcessOptions(ScrnInfoPtr pScrn) &rhdPtr->unverifiedFeatures, FALSE); RhdGetOptValBool (rhdPtr->Options, OPTION_AUDIO, &rhdPtr->audio, TRUE); + RhdGetOptValString (rhdPtr->Options, OPTION_AUDIO_WORKAROUND, + &rhdPtr->audioWorkaround, "none"); RhdGetOptValString (rhdPtr->Options, OPTION_HDMI, &rhdPtr->hdmi, "none"); RhdGetOptValString(rhdPtr->Options, OPTION_COHERENT, |