From: Takashi Iwai Subject: Re: Rates for the Revolution 7.1 card (ICE1724 chip) Date: Thu, 06 Oct 2005 12:03:10 +0200 Message-ID: References: <43444909.johana@johana.com> <20051005233447.97628.qmail@web60816.mail.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051005233447.97628.qmail@web60816.mail.yahoo.com> 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: tsw@johana.com Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 5 Oct 2005 16:34:47 -0700 (PDT), Tom Watson wrote: > > --- Takashi Iwai wrote: > > > At Tue, 4 Oct 2005 15:18:36 -0700 (PDT), > > Tom Watson wrote: > > > > > > In my musings, I have found that the M-Audio Revolution 7.1 card seems to > > only > > > support the following rates: > > > 32000, 44100, 48000, 64000, 88200, 96000, 176400, and 19200. > > > These rates are from a small program I wrote using the > > > "snd_pcm_hw_params_test_rate" routine, iterating by one from 1 to 192000. > > > This is in contrast to the mixer control "Multi Track Internal Clock" (as > > > shown on 'alsamixer' that indicates the following additional rates: > > > 8000, 9600, 11025, 12000, 16000, 22050, and 24000. > > > > > > What could be the reason for this mismatch? Shouldn't they be the same? > > > Is this a bug? > > > > Internally ice1724 chip supports all the rates above while the codec > > chip on revo 7.1 supports 32kHz or more. The "Multi Track" control is > > provided for the internal chip control. > > > > It doesn't make sense to the unsupported value, though, except for > > debugging/experimental use. > > > > > > Takashi > > It seems that the codecs support the rates as well. I did some experimenting > and added the rates to the code in the 'revo.c' part of the driver: > > static unsigned int rates[] = { > /* Line added below */ > 8000, 9600, 11025, 12000, 16000, 22050, 24000, > 32000, 44100, 48000, 64000, 88200, 96000, > 176400, 192000, > }; > > This seemed to accomidate my sound file that was sampled (8 bits, but not > revelant here) at 11025. I could very easily use aplay: > $ aplay -D plug:front soundfile.wav > And all worked just fine. Then I tired to make it come out the rear channels > by using: > $ aplay -D plug:rear soundfile.wav > And something "really wierd" happened. The first 1/2 second or so was PERFECT, > then it went into some noise. While I understand that this is obviously not > supported (even the Revolution documentation on their web site says rates start > at 32000), could this be something more serious? You seem right. I took a look at AK4381/4355 datasheet again, and found out that it supports 8-192kHz. Then let's get rid of the restriction. Thanks, Takashi Index: alsa-kernel/pci/ice1712/revo.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ice1712/revo.c,v retrieving revision 1.11 diff -u -r1.11 revo.c --- alsa-kernel/pci/ice1712/revo.c 8 Mar 2005 15:31:58 -0000 1.11 +++ alsa-kernel/pci/ice1712/revo.c 6 Oct 2005 10:02:53 -0000 @@ -128,17 +128,6 @@ .mask_flags = 0, }; -static unsigned int rates[] = { - 32000, 44100, 48000, 64000, 88200, 96000, - 176400, 192000, -}; - -static snd_pcm_hw_constraint_list_t revo_rates = { - .count = ARRAY_SIZE(rates), - .list = rates, - .mask = 0, -}; - static int __devinit revo_init(ice1712_t *ice) { akm4xxx_t *ak; @@ -173,8 +162,6 @@ break; } - ice->hw_rates = &revo_rates; /* AK codecs don't support lower than 32k */ - return 0; } ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl