Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: alsa-devel@alsa-project.org
Cc: gordon.dilan@gmail.com
Subject: Re: Usb audio - unsuported sampling rates
Date: Tue, 10 Jul 2012 08:53:54 +0200	[thread overview]
Message-ID: <4FFBD182.9040503@gmail.com> (raw)
In-Reply-To: <CADPOxSii6AGmyBmEYkBSs24Zd7fwasutf=HxTrB0xNqo4vuhXg@mail.gmail.com>

Hi,

On 10.07.2012 07:25, Gordon Dilan wrote:
> I'm using an usb mic which(according to it's producer should support up to
> 48kHz sampling rate). The problem is ALSA allows me to use only 16 kHz for
> this device. I do not want to resample the data, I want to sample it at
> 48kHz in order to be able to record some high pitch sounds 18-20kHz.
> 
> I would want to try to do any modifications necessary in order to try
> support 48kHz, but I'm not sure where to start.

[...]

> Some more information:
> lsusb
> Bus 001 Device 007: ID 1415:2000 Nam Tai E&E Products Ltd. or OmniVision
> Technologies, Inc. Sony Playstation Eye
> 
> lsusb -t

Please also provide the output of 'lsusb -v'.

> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
>     |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M
>         |__ Port 2: Dev 7, If 0, Class=vend., Driver=ov534, 480M
>         |__ Port 2: Dev 7, If 1, Class=audio, Driver=snd-usb-audio, 480M
>         |__ Port 2: Dev 7, If 2, Class=audio, Driver=snd-usb-audio, 480M
> 
> 
> At the moment I'm looking inside ALSA's source code to try to see from
> where this limitation of 16000kHz for my device appears, but I have to
> admit that I'm kind of lost.
> Any pointers on what direction should I go to try make my desired rate
> supported would be greatly appreciated!

The device is queried for its supported sample rates during probe using
class-specific commands. If it doesn't return all rates that are
actually supported, we need to add a quirk and override this list.

The list of known sample rates is included in
/proc/asound/card1/stream0. What does that show for you?



Daniel

  reply	other threads:[~2012-07-10  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10  5:25 Usb audio - unsuported sampling rates Gordon Dilan
2012-07-10  6:53 ` Daniel Mack [this message]
2012-07-10 18:57   ` Gordon Dilan
2012-07-10 21:33     ` Daniel Mack
2012-07-12  7:44       ` Daniel Mack
2012-07-14  9:01         ` Gordon Dilan
2016-02-12 13:59           ` Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFBD182.9040503@gmail.com \
    --to=zonque@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=gordon.dilan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox