diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-04-17 14:32:36 +0200 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2012-04-17 16:57:57 +0400 |
commit | c01b2456238f73964876471452e27d4aad7900fb (patch) | |
tree | 828e8798ffc13fac2972657332fdc9bccd7ee965 /audio/audio_template.h | |
parent | 6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a (diff) |
audio: don't apply volume effect if backend has VOICE_VOLUME_CAP
If the audio backend is capable of volume control, don't apply
software volume (mixeng_volume ()), but instead, rely on backend
volume control. This will allow guest to have full range volume
control.
Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com>
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio_template.h')
-rw-r--r-- | audio/audio_template.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h index e62a71345e..519432a7c5 100644 --- a/audio/audio_template.h +++ b/audio/audio_template.h @@ -263,6 +263,8 @@ static HW *glue (audio_pcm_hw_add_new_, TYPE) (struct audsettings *as) } hw->pcm_ops = drv->pcm_ops; + hw->ctl_caps = drv->ctl_caps; + QLIST_INIT (&hw->sw_head); #ifdef DAC QLIST_INIT (&hw->cap_head); |