From owner-freebsd-usb@FreeBSD.ORG Sun Nov 2 08:16:20 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41F4A1065672 for ; Sun, 2 Nov 2008 08:16:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC568FC0A for ; Sun, 2 Nov 2008 08:16:19 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=ZDOhuv1H6FQA:10 a=Pc5hXlA98aEA:10 a=JaMsEuWvuubvilQL9CAA:9 a=sSyNChuGt7NkCjBf-vgA:7 a=Fh3298Hh6Pj3JnkN0_boygSfooEA:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.186]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1134512479; Sun, 02 Nov 2008 09:16:16 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 2 Nov 2008 09:18:25 +0100 User-Agent: KMail/1.9.7 References: <115856.33908.qm@web30603.mail.mud.yahoo.com> In-Reply-To: <115856.33908.qm@web30603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811020918.26260.hselasky@c2i.net> Cc: Ferry Syafei Sapei Subject: Re: USB speaker does not output any sound even though recognized X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2008 08:16:20 -0000 On Saturday 01 November 2008, Ferry Syafei Sapei wrote: > I have just installed PC-BSD 7.0.1 on my notebook. Having finished the > installation, I deactivated the automatic sound card detection by > commenting snddetect_enable=3D"YES" in /etc/rc.conf. Afterwards I added t= he > line snd_uaudio_load=3D"YES" to /boot/loader.conf to output the sound to = an > external USB speaker. > > After reboot, I could see clearly in the middle of the initialization pha= se > that PC-BSD recognized my USB speaker. However at the end of the > initialization phase, PC-BSD tried to set the value of > dev.pcm.0.play.vchans and I saw an error message as follows: sysctl: > dev.pcm.0.play.vchans : operation not supported by device. > > Then I opened an audio file to test the USB speaker and I did not hear any > sound at all. > > Could someone please help me to solve this problem? > > Below you can find some output from different commands: > > # dmesg > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.1-PRERELEASE #1: Tue Oct 7 09:17:14 EDT 2008 > root@pcbsdx32-7:/usr/obj/pcbsd-build/cvs/7.0.1-src/sys/PCBSD > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (1997.34-MHz 686-cla= ss > CPU) Origin =3D "GenuineIntel" Id =3D 0x6f6 Stepping =3D 6 > =20 > Features=3D0xbfebfbffA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=3D0xe3bd > AMD Features=3D0x20100000 > AMD Features2=3D0x1 > Cores per package: 2 > real memory =3D 2145988608 (2046 MB) > avail memory =3D 2081918976 (1985 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.10.5.6 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, > RF5413, RF2133, RF2425, RF2417) acpi0: on motherboard > acpi0: [ITHREAD] > Timecounter "HPET" frequency 14318180 Hz quality 900 > acpi0: reservation of 0, 9fc00 (3) failed > acpi0: reservation of 100000, 7fd93400 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > acpi_acad0: on acpi0 > battery0: on acpi0 > acpi_lid0: on acpi0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: mem > 0xed000000-0xedffffff,0xd0000000-0xdfffffff,0xee000000-0xeeffffff irq 16 = at > device 0.0 on pci1 nvidia0: on vgapci0 > vgapci0: child nvidia0 requested pci_enable_busmaster > vgapci0: child nvidia0 requested pci_enable_io > nvidia0: [GIANT-LOCKED] > nvidia0: [ITHREAD] > pci0: at device 27.0 (no driver attached) > pcib2: at device 28.0 on pci0 > pci11: on pcib2 > pcib3: at device 28.1 on pci0 > pci12: on pcib3 > wpi0: mem 0xecfff000-0xecffffff irq 17 at > device 0.0 on pci12 wpi0: Ethernet address: 00:19:d2:d5:ec:3e > wpi0: [ITHREAD] > pcib4: at device 28.3 on pci0 > pci13: on pcib4 > uhci0: port 0xbf80-0xbf9f irq 20 at device > 29.0 on pci0 uhci0: [GIANT-LOCKED] > uhci0: [ITHREAD] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xbf60-0xbf7f irq 21 at device > 29.1 on pci0 uhci1: [GIANT-LOCKED] > uhci1: [ITHREAD] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port 0xbf40-0xbf5f irq 22 at device > 29.2 on pci0 uhci2: [GIANT-LOCKED] > uhci2: [ITHREAD] > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > uhci3: port 0xbf20-0xbf3f irq 23 at device > 29.3 on pci0 uhci3: [GIANT-LOCKED] > uhci3: [ITHREAD] > usb3: on uhci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ehci0: mem > 0xffa80000-0xffa803ff irq 20 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb4: EHCI version 1.0 > usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 > usb4: on ehci0 > usb4: USB revision 2.0 > uhub4: on usb4 > uhub4: 8 ports with 8 removable, self powered > pcib5: at device 30.0 on pci0 > pci3: on pcib5 > bfe0: mem 0xecbfe000-0xecbfffff irq 17 > at device 0.0 on pci3 miibus0: on bfe0 > bmtphy0: PHY 1 on miibus0 > bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > bfe0: Ethernet address: 00:18:8b:c9:d0:71 > bfe0: [ITHREAD] > fwohci0: <1394 Open Host Controller Interface> mem 0xecbfd800-0xecbfdfff > irq 19 at device 1.0 on pci3 fwohci0: [FILTER] > fwohci0: OHCI version 1.10 (ROM=3D0) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 39:4f:c0:00:10:ea:ec:50 > fwohci0: Phy 1394a available S400, 1 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 3a:4f:c0:ea:ec:50 > fwe0: Ethernet address: 3a:4f:c0:ea:ec:50 > fwip0: on firewire0 > fwip0: Firewire address: 39:4f:c0:00:10:ea:ec:50 @ 0xfffe00000000, S400, > maxrec 2048 sbp0: on firewire0 > dcons_crom0: on firewire0 > dcons_crom0: bus_addr 0x7d928000 > fwohci0: Initiate bus reset > fwohci0: BUS reset > fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode > pci3: at device 1.1 (no driver attached) > pci3: at device 1.2 (no driver attached) > pci3: at device 1.3 (no driver attached) > pci3: at device 1.4 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf irq 17 at device 31.2 on > pci0 ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > pci0: at device 31.3 (no driver attached) > acpi_tz0: on acpi0 > atkbdc0: port 0x60,0x64,0x62,0x66 irq 1 on > acpi0 atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > psm0: flags 0x1000 irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: [ITHREAD] > psm0: model Generic PS/2 mouse, device ID 0 > cpu0: on acpi0 > est0: on cpu0 > p4tcc0: on cpu0 > cpu1: on acpi0 > est1: on cpu1 > p4tcc1: on cpu1 > pmtimer0 on isa0 > orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 > ppc0: parallel port not found. > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=3D0x300> > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 8250 or not responding > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ums0: on uhub0 > ums0: 16 buttons and Z dir. > uhid0: on uhub0 > ukbd0: 2.00/1.73, addr 3> on uhub0 kbd2 at ukbd0 > uhid1: 2.00/1.73, addr 3> on uhub0 uhub5: 2.00/1.00, addr 2> on uhub1 uhub5: 3 ports with 0 removable, bus powered > ugen0: on uhu= b5 > ukbd1: on > uhub5 kbd3 at ukbd1 > ums1: on > uhub5 ums1: 3 buttons. > uaudio0: > on uhub2 uaudio0: audio rev 1.00 > pcm0: on uaudio0 > uaudio1: 2> on uhub3 uaudio1: audio rev 1.00 > pcm1: on uaudio1 > uhid2: > on uhub3 Timecounters tick every 1.000 msec > ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based > forwarding firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0(me) firewir= e0: > bus manager 0 (me) > disabled, default to accept, logging disabled > ad0: 95396MB at ata0-master SATA150 > acd0: DVDR at ata1-master UDMA33 > GEOM_LABEL: Label for provider ad0s1 is ntfs/Win'XP. > GEOM_LABEL: Label for provider ad0s2 is msdosfs/ . > acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x40= 0x00 > 0x01 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 sks= =3D0x40 > 0x00 0x01 cd0 at ata1 bus 0 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 33.000MB/s transfers > cd0: Attempt to query device size failed: NOT READY, Medium not present > SMP: AP CPU #1 Launched! > Trying to mount root from ufs:/dev/ad0s3a > wpi0: timeout resetting Tx ring 1 > wpi0: timeout resetting Tx ring 3 > wpi0: timeout resetting Tx ring 4 > wpi0: timeout resetting Tx ring 1 > wpi0: timeout resetting Tx ring 3 > wpi0: timeout resetting Tx ring 4 > wpi0: timeout resetting Tx ring 1 > wpi0: timeout resetting Tx ring 3 > wpi0: timeout resetting Tx ring 4 > wpi0: timeout resetting Tx ring 1 > wpi0: timeout resetting Tx ring 3 > wpi0: timeout resetting Tx ring 4 > wpi0: link state changed to UP > pid 15638 (npviewer.bin), uid 1001: exited on signal 11 > GEOM_LABEL: Label msdosfs/ removed. > acd0: WARNING - unknown CMD (0xac) read data overrun 8>0 > acd0: WARNING - unknown CMD (0xac) read data overrun 8>0 > > > # usbdevs -v > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 port 1 addr 2: low speed, power 98 mA, config 1, > USB Receiver(0xc518), Logitech(0x046d), rev 42.04 port 2 addr 3: low spee= d, > power 100 mA, config 1, Natural=EF=BF=BD Ergonomic Keyboard 4000(0x00db), > Microsoft(0x045e), rev 1.73 Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, > BCM2045B2(0x4500), Broadcom(0x0a5c), rev 1.00 port 1 addr 3: full speed, > self powered, config 1, BCM2045(0x8126), Broadcom Corp(0x413c), rev 1.00 > port 2 addr 4: full speed, self powered, config 1, product 0x4502(0x4502), > Broadcom Corp(0x0a5c), rev 1.00 port 3 addr 5: full speed, self powered, > config 1, product 0x4503(0x4503), Broadcom Corp(0x0a5c), rev 1.00 port 2 > powered > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 500 mA, config 1, > product 0x08c6(0x08c6), vendor 0x046d(0x046d), rev 80.05 port 2 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 port 1 powered > port 2 addr 2: full speed, self powered, config 1, Bose USB Audio(0x1020= ), > Bose Corporation(0x05a7), rev 1.00 Controller /dev/usb4: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x0000), rev 1.00 port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > port 7 powered > port 8 powered > > > # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at ? kld snd_uaudio [GIANT] (0p:0v/1r:4v channels > default) mode 3:(input) 1ch, 16/16bit, pcm, 16000Hz > pcm1: at ? kld snd_uaudio [GIANT] (mixer only) > > > # sysctl hw.snd dev.pcm > hw.snd.latency_profile: 1 > hw.snd.latency: 5 > hw.snd.report_soft_formats: 1 > hw.snd.compat_linux_mmap: 0 > hw.snd.feeder_buffersize: 16384 > hw.snd.feeder_rate_round: 25 > hw.snd.feeder_rate_max: 2016000 > hw.snd.feeder_rate_min: 1 > hw.snd.verbose: 1 > hw.snd.maxautovchans: 16 > hw.snd.default_unit: 0 > hw.snd.version: 2007061600/i386 > hw.snd.default_auto: 0 > dev.pcm.0.%desc: USB Audio > dev.pcm.0.%driver: pcm > dev.pcm.0.%parent: uaudio0 > dev.pcm.0.rec.vchans: 4 > dev.pcm.0.rec.vchanrate: 16000 > dev.pcm.0.rec.vchanformat: s16le > dev.pcm.0.buffersize: 16384 > dev.pcm.1.%desc: USB Audio > dev.pcm.1.%driver: pcm > dev.pcm.1.%parent: uaudio1 > dev.pcm.1.buffersize: 16384 > > What does the mixer settings look like ? =2D-HPS