aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_template.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-04-17 14:32:36 +0200
committermalc <av1474@comtv.ru>2012-04-17 16:57:57 +0400
commitc01b2456238f73964876471452e27d4aad7900fb (patch)
tree828e8798ffc13fac2972657332fdc9bccd7ee965 /audio/audio_template.h
parent6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a (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.h2
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);