From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001942]: [PATCH] added support uncommon "rate" Date: Fri, 24 Mar 2006 14:35:27 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 5E9F6189 for ; Fri, 24 Mar 2006 14:35:27 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: os-bebas Assigned To: Clemens Ladisch ====================================================================== Project: ALSA - driver Issue ID: 1942 Category: USB - usb-audio Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: UBuntu Dapper Drake Kernel Version: 2.6.15.6 ====================================================================== Date Submitted: 03-18-2006 23:48 CET Last Modified: 03-24-2006 14:35 CET ====================================================================== Summary: [PATCH] added support uncommon "rate" Description: attached you can find a simple patch to match "uncommon" rate in some USB speaker to the fixed conv_rates in usbaudio.c. Signed-off-by: S. Effendi ====================================================================== ---------------------------------------------------------------------- os-bebas - 03-23-06 23:47 ---------------------------------------------------------------------- I hope this will help. best regards. --- root@d1:~# time ( dd if=/dev/zero bs=1000 count=4000 | aplay -D hw:1 -t raw -f cd - ) Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 4000+0 records in 4000+0 records out 4000000 bytes (4.0 MB) copied, 22.1492 seconds, 181 kB/s real 0m23.171s user 0m0.013s sys 0m0.014s --- ---------------------------------------------------------------------- Clemens Ladisch - 03-24-06 14:35 ---------------------------------------------------------------------- >From your computer's POV, the device runs at about 45148 Hz. You might try "count=40000" for a more precise measurement. Anyway, mpg123 shouldn't complain, the OSS emulation is able to resample from any frequency. Please try to use the ALSA interface instead of OSS. Issue History Date Modified Username Field Change ====================================================================== 03-18-06 23:48 os-bebas New Issue 03-18-06 23:48 os-bebas File Added: alsa_usbaudio_conv_rates_fixed.patch 03-18-06 23:48 os-bebas Distribution => UBuntu Dapper Drake 03-18-06 23:48 os-bebas Kernel Version => 2.6.15.6 03-20-06 09:09 Clemens LadischNote Added: 0008712 03-23-06 18:30 os-bebas Note Added: 0008900 03-23-06 19:09 Clemens LadischNote Added: 0008901 03-23-06 23:47 os-bebas Note Added: 0008906 03-24-06 14:35 Clemens LadischNote Added: 0008917 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642