Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2008 09:18:25 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        Ferry Syafei Sapei <pei7@yahoo.com>
Subject:   Re: USB speaker does not output any sound even though recognized
Message-ID:  <200811020918.26260.hselasky@c2i.net>
In-Reply-To: <115856.33908.qm@web30603.mail.mud.yahoo.com>
References:  <115856.33908.qm@web30603.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MC
>A,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> Features2=3D0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
> AMD Features=3D0x20100000<NX,LM>
>   AMD Features2=3D0x1<LAHF>
>   Cores per package: 2
> real memory  =3D 2145988608 (2046 MB)
> avail memory =3D 2081918976 (1985 MB)
> ACPI APIC Table: <DELL   M07    >
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> ioapic0: Changing APIC ID to 2
> ioapic0 <Version 2.0> 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: <DELL M07    > 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: <AC Adapter> on acpi0
> battery0: <ACPI Control Method Battery> on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_button0: <Power Button> on acpi0
> acpi_button1: <Sleep Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> vgapci0: <VGA-compatible display> mem
> 0xed000000-0xedffffff,0xd0000000-0xdfffffff,0xee000000-0xeeffffff irq 16 =
at
> device 0.0 on pci1 nvidia0: <GeForce Go 7400> on vgapci0
> vgapci0: child nvidia0 requested pci_enable_busmaster
> vgapci0: child nvidia0 requested pci_enable_io
> nvidia0: [GIANT-LOCKED]
> nvidia0: [ITHREAD]
> pci0: <multimedia> at device 27.0 (no driver attached)
> pcib2: <ACPI PCI-PCI bridge> at device 28.0 on pci0
> pci11: <ACPI PCI bus> on pcib2
> pcib3: <ACPI PCI-PCI bridge> at device 28.1 on pci0
> pci12: <ACPI PCI bus> on pcib3
> wpi0: <Intel(R) PRO/Wireless 3945ABG> mem 0xecfff000-0xecffffff irq 17 at
> device 0.0 on pci12 wpi0: Ethernet address: 00:19:d2:d5:ec:3e
> wpi0: [ITHREAD]
> pcib4: <ACPI PCI-PCI bridge> at device 28.3 on pci0
> pci13: <ACPI PCI bus> on pcib4
> uhci0: <UHCI (generic) USB controller> port 0xbf80-0xbf9f irq 20 at device
> 29.0 on pci0 uhci0: [GIANT-LOCKED]
> uhci0: [ITHREAD]
> usb0: <UHCI (generic) USB controller> on uhci0
> usb0: USB revision 1.0
> uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
> uhub0: 2 ports with 2 removable, self powered
> uhci1: <UHCI (generic) USB controller> port 0xbf60-0xbf7f irq 21 at device
> 29.1 on pci0 uhci1: [GIANT-LOCKED]
> uhci1: [ITHREAD]
> usb1: <UHCI (generic) USB controller> on uhci1
> usb1: USB revision 1.0
> uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
> uhub1: 2 ports with 2 removable, self powered
> uhci2: <UHCI (generic) USB controller> port 0xbf40-0xbf5f irq 22 at device
> 29.2 on pci0 uhci2: [GIANT-LOCKED]
> uhci2: [ITHREAD]
> usb2: <UHCI (generic) USB controller> on uhci2
> usb2: USB revision 1.0
> uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
> uhub2: 2 ports with 2 removable, self powered
> uhci3: <UHCI (generic) USB controller> port 0xbf20-0xbf3f irq 23 at device
> 29.3 on pci0 uhci3: [GIANT-LOCKED]
> uhci3: [ITHREAD]
> usb3: <UHCI (generic) USB controller> on uhci3
> usb3: USB revision 1.0
> uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
> uhub3: 2 ports with 2 removable, self powered
> ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> 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: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
> usb4: USB revision 2.0
> uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
> uhub4: 8 ports with 8 removable, self powered
> pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci3: <ACPI PCI bus> on pcib5
> bfe0: <Broadcom BCM4401-B0 Fast Ethernet> mem 0xecbfe000-0xecbfffff irq 17
> at device 0.0 on pci3 miibus0: <MII bus> on bfe0
> bmtphy0: <BCM4401 10/100baseTX PHY> 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: <IEEE1394(FireWire) bus> on fwohci0
> fwe0: <Ethernet over FireWire> on firewire0
> if_fwe0: Fake Ethernet address: 3a:4f:c0:ea:ec:50
> fwe0: Ethernet address: 3a:4f:c0:ea:ec:50
> fwip0: <IP over FireWire> on firewire0
> fwip0: Firewire address: 39:4f:c0:00:10:ea:ec:50 @ 0xfffe00000000, S400,
> maxrec 2048 sbp0: <SBP-2/SCSI over FireWire> on firewire0
> dcons_crom0: <dcons configuration ROM> on firewire0
> dcons_crom0: bus_addr 0x7d928000
> fwohci0: Initiate bus reset
> fwohci0: BUS reset
> fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode
> pci3: <base peripheral> at device 1.1 (no driver attached)
> pci3: <base peripheral> at device 1.2 (no driver attached)
> pci3: <base peripheral> at device 1.3 (no driver attached)
> pci3: <base peripheral> at device 1.4 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH7M SATA300 controller> port
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf irq 17 at device 31.2 on
> pci0 ata0: <ATA channel 0> on atapci0
> ata0: [ITHREAD]
> ata1: <ATA channel 1> on atapci0
> ata1: [ITHREAD]
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> acpi_tz0: <Thermal Zone> on acpi0
> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64,0x62,0x66 irq 1 on
> acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> atkbd0: [ITHREAD]
> psm0: <PS/2 Mouse> flags 0x1000 irq 12 on atkbdc0
> psm0: [GIANT-LOCKED]
> psm0: [ITHREAD]
> psm0: model Generic PS/2 mouse, device ID 0
> cpu0: <ACPI CPU> on acpi0
> est0: <Enhanced SpeedStep Frequency Control> on cpu0
> p4tcc0: <CPU Frequency Thermal Control> on cpu0
> cpu1: <ACPI CPU> on acpi0
> est1: <Enhanced SpeedStep Frequency Control> on cpu1
> p4tcc1: <CPU Frequency Thermal Control> on cpu1
> pmtimer0 on isa0
> orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
> ppc0: parallel port not found.
> sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> ums0: <Logitech USB Receiver, class 0/0, rev 2.00/42.04, addr 2> on uhub0
> ums0: 16 buttons and Z dir.
> uhid0: <Logitech USB Receiver, class 0/0, rev 2.00/42.04, addr 2> on uhub0
> ukbd0: <Microsoft Natural\M-. Ergonomic Keyboard 4000, class 0/0, rev
> 2.00/1.73, addr 3> on uhub0 kbd2 at ukbd0
> uhid1: <Microsoft Natural\M-. Ergonomic Keyboard 4000, class 0/0, rev
> 2.00/1.73, addr 3> on uhub0 uhub5: <Broadcom BCM2045B2, class 9/0, rev
> 2.00/1.00, addr 2> on uhub1 uhub5: 3 ports with 0 removable, bus powered
> ugen0: <Broadcom Corp BCM2045, class 224/1, rev 2.00/1.00, addr 3> on uhu=
b5
> ukbd1: <Broadcom Corp product 0x4502, class 0/0, rev 2.00/1.00, addr 4> on
> uhub5 kbd3 at ukbd1
> ums1: <Broadcom Corp product 0x4503, class 0/0, rev 2.00/1.00, addr 5> on
> uhub5 ums1: 3 buttons.
> uaudio0: <vendor 0x046d product 0x08c6, class 0/0, rev 2.00/80.05, addr 2>
> on uhub2 uaudio0: audio rev 1.00
> pcm0: <USB Audio> on uaudio0
> uaudio1: <Bose Corporation Bose USB Audio, class 0/0, rev 1.00/1.00, addr
> 2> on uhub3 uaudio1: audio rev 1.00
> pcm1: <USB Audio> on uaudio1
> uhid2: <Bose Corporation Bose USB Audio, class 0/0, rev 1.00/1.00, addr 2>
> 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 <Seagate ST910021AS 8.04> at ata0-master SATA150
> acd0: DVDR <HL-DT-ST DVD+/-RW GSA-T11N/A103> 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: <HL-DT-ST DVD+-RW GSA-T11N A103> 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: <USB Audio> at ? kld snd_uaudio [GIANT] (0p:0v/1r:4v channels
> default) mode 3:(input) 1ch, 16/16bit, pcm, 16000Hz
> pcm1: <USB Audio> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811020918.26260.hselasky>