Date: Thu, 7 Aug 2014 12:47:25 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269664 - head/sys/dev/usb/gadget Message-ID: <53e3755d.5d70.7ff8a911@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Aug 7 12:47:25 2014 New Revision: 269664 URL: http://svnweb.freebsd.org/changeset/base/269664 Log: Make sure the USB audio level residue is non-zero. Modified: head/sys/dev/usb/gadget/g_audio.c Modified: head/sys/dev/usb/gadget/g_audio.c ============================================================================== --- head/sys/dev/usb/gadget/g_audio.c Thu Aug 7 12:19:42 2014 (r269663) +++ head/sys/dev/usb/gadget/g_audio.c Thu Aug 7 12:47:25 2014 (r269664) @@ -580,7 +580,7 @@ g_audio_handle_request(device_t dev, (req->bRequest == 0x84 /* get residue */ )) { if (offset == 0) { - USETW(sc->sc_volume_limit, 0); + USETW(sc->sc_volume_limit, 1); *plen = 2; *pptr = &sc->sc_volume_limit; } else { @@ -591,6 +591,7 @@ g_audio_handle_request(device_t dev, (req->bRequest == 0x81 /* get value */ )) { if (offset == 0) { + USETW(sc->sc_volume_setting, 0x2000); *plen = sizeof(sc->sc_volume_setting); *pptr = &sc->sc_volume_setting; } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e3755d.5d70.7ff8a911>