Re: [linux-audio-user] JACK samplerate stuck at 48000

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [linux-audio-user] JACK samplerate stuck at 48000

Lee Revell
On Tue, 2006-06-20 at 10:24 -0700, Mark Knecht wrote:
> Many built-in/inexpensive sound cards are stuck at 48K. Possibly this
> one is also?
>

It's still a bug for JACK not to report any error.

Does aplay report any errors with a 44100Hz file?

> - Mark
>
> On 6/20/06, Link Swanson <[hidden email]> wrote:
> > After removing my Multiface II and switching back to my nVidia onboard
> > audio, qjackctl will not run at 44100. I can set it in the setup window
> > and it reports starting 44100 in the messages:
> >
> > 11:07:46.232 Patchbay deactivated.
> > 11:07:46.322 Statistics reset.
> > 11:07:46.498 MIDI connection graph change.
> > 11:07:46.528 MIDI connection change.
> > 11:07:47.580 Startup script...
> > 11:07:47.580 artsshell -q terminate
> > 11:07:47.861 Startup script terminated with exit status=256.
> > 11:07:47.861 JACK is starting...
> > 11:07:47.862 jackd -R -dalsa -dhw:1,0 -r44100 -p512 -n2 -S
> > 11:07:47.870 JACK was started with PID=3071 (0xbff).
> > jackd 0.101.0
> > Copyright 2001-2005 Paul Davis and others.
> > jackd comes with ABSOLUTELY NO WARRANTY
> > This is free software, and you are welcome to redistribute it
> > under certain conditions; see the file COPYING for details
> > JACK compiled with System V SHM support.
> > loading driver ..
> > Enhanced3DNow! detected
> > SSE2 detected
> > apparent rate = 44100
> > creating alsa driver ... hw:1,0|hw:1,0|512|2|44100|0|0|nomon|swmeter|-|16bit
> > control device hw:1
> > configuring for 44100Hz, period = 512 frames, buffer = 2 periods
> > nperiods = 2 for capture
> > nperiods = 2 for playback
> > 11:07:49.953 Server configuration saved to "/home/bozone/.jackdrc".
> > 11:07:49.954 Statistics reset.
> > 11:07:49.979 Client activated.
> > 11:07:49.980 Audio connection change.
> > 11:07:49.981 Audio connection graph change.
> > Enhanced3DNow! detected
> > SSE2 detected
> > 11:10:21.095 MIDI connection graph change.
> > 11:10:21.123 Audio connection graph change.
> > 11:10:26.482 Audio connection graph change.
> > 11:10:26.504 MIDI connection graph change.
> >
> > But then both qjackctl and Ardour report 48000 as the samplerate.
> >
> > All help is appreciated.
> >
> > Link
> >
> >
> > --
> > e-mail is . . .
> >
>



_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: [linux-audio-user] JACK samplerate stuck at 48000

Florian Paul Schmidt-2
On Tue, 20 Jun 2006 13:29:18 -0400
Lee Revell <[hidden email]> wrote:

> On Tue, 2006-06-20 at 10:24 -0700, Mark Knecht wrote:
> > Many built-in/inexpensive sound cards are stuck at 48K. Possibly this
> > one is also?
> >
>
> It's still a bug for JACK not to report any error.
>
> Does aplay report any errors with a 44100Hz file?

Hmm, is this it:

Index: drivers/alsa/alsa_driver.c
===================================================================
--- drivers/alsa/alsa_driver.c  (revision 976)
+++ drivers/alsa/alsa_driver.c  (working copy)
@@ -445,13 +445,13 @@
        frame_rate = driver->frame_rate ;
        err = snd_pcm_hw_params_set_rate_near (handle, hw_params,
                                               &frame_rate, NULL) ;
-       driver->frame_rate = frame_rate ;
-       if (err < 0) {
+       if (err < 0 || (driver->frame_rate != frame_rate)) {
                jack_error ("ALSA: cannot set sample/frame rate to %"
                            PRIu32 " for %s", driver->frame_rate,
                            stream_name);
                return -1;
        }
+       driver->frame_rate = frame_rate ;
        if (!*nchns) {
                /*if not user-specified, try to find the maximum
                 * number of channels */


--
Palimm Palimm!
http://tapas.affenbande.org


_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: [linux-audio-user] JACK samplerate stuck at 48000

Paul Davis
On Tue, 2006-06-20 at 20:27 +0200, Florian Paul Schmidt wrote:

> On Tue, 20 Jun 2006 13:29:18 -0400
> Lee Revell <[hidden email]> wrote:
>
> > On Tue, 2006-06-20 at 10:24 -0700, Mark Knecht wrote:
> > > Many built-in/inexpensive sound cards are stuck at 48K. Possibly this
> > > one is also?
> > >
> >
> > It's still a bug for JACK not to report any error.
> >
> > Does aplay report any errors with a 44100Hz file?
>
> Hmm, is this it:
>
> Index: drivers/alsa/alsa_driver.c
> ===================================================================
> --- drivers/alsa/alsa_driver.c  (revision 976)
> +++ drivers/alsa/alsa_driver.c  (working copy)
> @@ -445,13 +445,13 @@
>         frame_rate = driver->frame_rate ;
>         err = snd_pcm_hw_params_set_rate_near (handle, hw_params,
>                                                &frame_rate, NULL) ;
> -       driver->frame_rate = frame_rate ;
> -       if (err < 0) {
> +       if (err < 0 || (driver->frame_rate != frame_rate)) {

no, that doesn't work.

the lack of any "retval != requested_val" test was changed a year or two
back, on purpose. if we want to test this, the test has to be flexible:
some h/w will report as real rate of 44099 rather than 44100.




_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel