From: Takashi Iwai Subject: Re: [PATCH] speaker-test: Allow sampling rates up to 768000 Date: Thu, 07 Jun 2018 12:11:30 +0200 Message-ID: References: <20180607091055.27404-1-julian@jusst.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 0CF42266E77 for ; Thu, 7 Jun 2018 12:11:32 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Michael Nazzareno Trimarchi Cc: Julian Scheel , Linux-ALSA List-Id: alsa-devel@alsa-project.org On Thu, 07 Jun 2018 11:13:33 +0200, Michael Nazzareno Trimarchi wrote: > > Hi > > On Thu, Jun 7, 2018 at 5:10 PM, Julian Scheel wrote: > > There are audio devices around that support up to 768kHz playback, allow > > testing them by increasing the maximum supported sampling rate. > > > > Signed-off-by: Julian Scheel > > --- > > speaker-test/speaker-test.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c > > index 0cdecb3..773af0a 100644 > > --- a/speaker-test/speaker-test.c > > +++ b/speaker-test/speaker-test.c > > @@ -1034,7 +1034,7 @@ int main(int argc, char *argv[]) { > > case 'r': > > rate = atoi(optarg); > > rate = rate < 4000 ? 4000 : rate; > > - rate = rate > 384000 ? 384000 : rate; > > + rate = rate > 768000 ? 768000 : rate; > > Working with dsd and PCM, I'm scared about the ssd or network storage needed ;). > BTW in the past I work even on no-conventional audio device, can we > just add some flag to force any frequency or > read the max rate supported by audio card? This is merely a sanity check, and the program accepts only the rate the system supports, in anyway. Note that you can pass a higher rate than the actual card supports; it may be converted by alsa-lib plugin. Takashi