Module Name: src Committed By: nat Date: Sun Oct 16 18:47:49 UTC 2016
Modified Files: src/sys/dev/usb: usb_quirks.c usbdevs Log Message: Add quirk for C-Media USB Pnp sound card. Without this I was unable to record. The recording volume is still way to low but it's possibly my microphone. OK christos@ To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/dev/usb/usb_quirks.c cvs rdiff -u -r1.718 -r1.719 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usb_quirks.c diff -u src/sys/dev/usb/usb_quirks.c:1.84 src/sys/dev/usb/usb_quirks.c:1.85 --- src/sys/dev/usb/usb_quirks.c:1.84 Sat Apr 23 10:15:32 2016 +++ src/sys/dev/usb/usb_quirks.c Sun Oct 16 18:47:49 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: usb_quirks.c,v 1.84 2016/04/23 10:15:32 skrll Exp $ */ +/* $NetBSD: usb_quirks.c,v 1.85 2016/10/16 18:47:49 nat Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_quirks.c,v 1.30 2003/01/02 04:15:55 imp Exp $ */ /* @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: usb_quirks.c,v 1.84 2016/04/23 10:15:32 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usb_quirks.c,v 1.85 2016/10/16 18:47:49 nat Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -105,6 +105,7 @@ Static const struct usbd_quirk_entry { 0x101, { UQ_AU_INP_ASYNC }}, { USB_VENDOR_PLANTRONICS, USB_PRODUCT_PLANTRONICS_HEADSET, 0x004, { UQ_AU_INP_ASYNC }}, + { USB_VENDOR_CMEDIA, USB_PRODUCT_CMEDIA_USBAUDIO, ANY, { UQ_AU_INP_ASYNC }}, /* XXX These should have a revision number, but I don't know what they are. */ { USB_VENDOR_HP, USB_PRODUCT_HP_895C, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_HP, USB_PRODUCT_HP_880C, ANY, { UQ_BROKEN_BIDIR }}, Index: src/sys/dev/usb/usbdevs diff -u src/sys/dev/usb/usbdevs:1.718 src/sys/dev/usb/usbdevs:1.719 --- src/sys/dev/usb/usbdevs:1.718 Wed Oct 12 03:07:11 2016 +++ src/sys/dev/usb/usbdevs Sun Oct 16 18:47:49 2016 @@ -1,4 +1,4 @@ -$NetBSD: usbdevs,v 1.718 2016/10/12 03:07:11 nat Exp $ +$NetBSD: usbdevs,v 1.719 2016/10/16 18:47:49 nat Exp $ /* * Copyright (c) 1998-2004 The NetBSD Foundation, Inc. @@ -1252,6 +1252,9 @@ product CREATIVE3 OPTICAL_MOUSE 0x0001 N product CSR BLUETOOTH 0x0001 Bluetooth USB Adapter product CSR BLUETOOTH_NF 0xffff Bluetooth USB Adapter +/* C-Media Electronics Inc. products */ +product CMEDIA USBAUDIO 0x013c USB Pnp Sound + /* CTX products */ product CTX EX1300 0x9999 Ex1300 hub