From c01b2456238f73964876471452e27d4aad7900fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 17 Apr 2012 14:32:36 +0200 Subject: 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 Signed-off-by: malc --- audio/audio_template.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/audio_template.h') 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); -- cgit v1.2.1