From 351d4f5ebb358605fb818846300b841e542345f8 Mon Sep 17 00:00:00 2001 From: macallan Date: Thu, 14 Jan 2010 02:20:07 +0000 Subject: [PATCH] set a delta value for the master channel so volume control via PMF works --- sys/dev/sbus/dbri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/sbus/dbri.c b/sys/dev/sbus/dbri.c index bdb0fcc14372..6fb1f7561357 100644 --- a/sys/dev/sbus/dbri.c +++ b/sys/dev/sbus/dbri.c @@ -1,4 +1,4 @@ -/* $NetBSD: dbri.c,v 1.28 2010/01/08 20:01:21 dyoung Exp $ */ +/* $NetBSD: dbri.c,v 1.29 2010/01/14 02:20:07 macallan Exp $ */ /* * Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.28 2010/01/08 20:01:21 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.29 2010/01/14 02:20:07 macallan Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -1864,6 +1864,7 @@ dbri_query_devinfo(void *hdl, mixer_devinfo_t *di) strcpy(di->label.name, AudioNmaster); di->type = AUDIO_MIXER_VALUE; di->un.v.num_channels = 2; + di->un.v.delta = 16; strcpy(di->un.v.units.name, AudioNvolume); return (0); case DBRI_INPUT_GAIN: /* input gain */