From: Takashi Iwai <tiwai@suse.de>
To: Alexey Bazhin <baz@irc.msk.ru>
Cc: alsa-devel@alsa-project.org
Subject: Re: Backported sbxfi driver (UNTESTED!)
Date: Wed, 15 Oct 2008 11:02:46 +0200 [thread overview]
Message-ID: <s5hk5ca2pu1.wl%tiwai@suse.de> (raw)
In-Reply-To: <20081015122649.65b32ee4.baz@irc.msk.ru>
At Wed, 15 Oct 2008 12:26:49 +0400,
Alexey Bazhin wrote:
>
> On Wed, 15 Oct 2008 08:30:20 +0200
> Takashi Iwai <tiwai@suse.de> wrote:
>
> > At Wed, 15 Oct 2008 00:35:31 +0400,
> > Alexey Bazhin wrote:
> > >
> > > On Tue, 14 Oct 2008 08:45:20 +0200
> > > Takashi Iwai <tiwai@suse.de> wrote:
> > >
> > > > At Mon, 13 Oct 2008 23:21:47 +0400,
> > > > Alexey Bazhin wrote:
> > > > >
> > > > > Now it doesn't hangs :)
> > > >
> > > > Glad to hear. Did you have to use XXX_SYSTEM_TIMER or any
> > > > workaround needed? Or, did it work as is?
> > > >
> > > > > but speakers-test produces crackling sine and
> > > > > fails on test...
> > > >
> > > > Do you mean it aborts some time later after starting the stream?
> > > > Could you show the kernel messages? The default debug level
> > > > should suffice, I guess. If any, try debug=2.
> > >
> > > root@mayonaka:~/linux-2.6# dmesg -c >/dev/null
> > > root@mayonaka:~/linux-2.6# insmod sound/pci/sbxfi/snd-sbxfi.ko
> > > root@mayonaka:~/linux-2.6# dmesg
> > > [ 2957.493602] SBXFI: INIT HW
> > > [ 2957.596133] SBXFI: Setting TLB buffer page 0xc02000
> > > root@mayonaka:~/linux-2.6# speaker-test -c 2 -r 96000 -t sine
> > >
> > > speaker-test 1.0.15
> > >
> > > Playback device is default
> > > Stream parameters are 96000Hz, S16_LE, 2 channels
> > > Sine wave rate is 440.0000Hz
> > > Rate set to 96000Hz (requested 96000Hz)
> > > Buffer size range from 32 to 16384
> > > Period size range from 32 to 16384
> > > Using max buffer size 16384
> > > Periods = 4
> > > was set period_size = 4096
> > > was set buffer_size = 16384
> > > 0 - Front Left
> > >
> > >
> > >
> > > Write error: -5,Input/output error
> > > xrun_recovery failed: -5,Input/output error
> > > Transfer failed: Operation not permitted
> > > root@mayonaka:~/linux-2.6#
> > > root@mayonaka:~/linux-2.6# dmesg
> > > [ 2957.493602] SBXFI: INIT HW
> > > [ 2957.596133] SBXFI: Setting TLB buffer page 0xc02000
> > > [ 2974.854578] SBXFI: Allocate SRC 0
> > > [ 2974.855368] SBXFI: allocated TLB at 0 for 16 pages
> > > [ 2974.855372] SBXFI: filled TLB pages starting at 0xc10000
> > > [ 2974.855393] SBXFI: PLAYBACK PREPARE: rate=96000,
> > > period_size=4096, buffer_size=16384
> > > [ 2974.855396] SBXFI: INIT DAC
> > > [ 2974.855400] SBXFI: RESET DAC
> > > [ 2975.059435] SBXFI: SETUP I2S
> > > [ 2975.059445] SBXFI: Pitch [0:fa6] = 0x1000000
> > > [ 2975.059449] SBXFI: Pitch [80:7a6] = 0x1000000
> > > [ 2975.059453] SBXFI: Pitch [1:fb6] = 0x1000000
> > > [ 2975.059456] SBXFI: Pitch [81:7b6] = 0x1000000
> > > [ 2975.059460] SBXFI: Amp [00:0001] = 0x101c
> > > [ 2975.059465] SBXFI: Amp [80:07a6] = 0x101c
> > > [ 2975.059470] SBXFI: Amp [01:0011] = 0x101c
> > > [ 2975.059474] SBXFI: Amp [81:07b6] = 0x101c
> > > [ 2975.062594] SBXFI: PLAY TRIGGER START
> > > [ 2975.062600] SBXFI: SETUP SRC: ch=0x0, start=0x0, loop=0x10000,
> > > cache=0x100, ctrl=0x1045c
> > > [ 2975.062612] SBXFI: SETUP SRC: ch=0x1, start=0x0, loop=0x10000,
> > > cache=0x100, ctrl=0x5c
> > > [ 2975.062625] SBXFI: PLAY UPDATE TIMER
> > > [ 2995.148059] SBXFI: PLAY TRIGGER STOP
> > > [ 2995.148072] SBXFI: PLAY UPDATE TIMER
> > > [ 2995.148079] SBXFI: release TLB at 0 for 16 pages
> > > [ 2995.148218] SBXFI: Release SRC 0
> >
> > Hmm, then there is no serious error here. Did you build the driver
> > with --with-debug=full or --with-debug=detect option?
> No, i'm just building kernel from git with your tree.
In that case, make sure you having CONFIG_SND_DEBUG=y at least.
CONFIG_SND_DEBUG_VERBOSE=y would give you more, but not mandatory
as sbxfi.c doesn't use snd_printdd() much.
> > Also, run with debug=2. Then it prints the timer/IRQ handling, too.
> >
> > Does this happen with aplay, too?
> >
> > Also, please track via strace to check which syscall it gets an error.
> I'll try it later, sorry...
I guess it's a timer issue. Try to define XXX_SYSTEM_TIMER and rebuild
(and pull the latest GIT before that, since it had a bug).
> > > Two more things:
> > > -speakers-test on 48khz doesn't produce above errors, but frequency
> > > is still not right
> >
> > OK, let's postpone this issue.
> >
> > > -24-bit samples is silent for me too
> >
> > Too? What are other cases that cause silent output?
> I saw that "The Source <thesourcehim@gmail.com>" was trying to play
> only 24-bit 96khz samples and they were silent.
Ah OK. Yes, this seems explaining the symptom (but not the cause :)
thanks,
Takashi
next prev parent reply other threads:[~2008-10-15 9:04 UTC|newest]
Thread overview: 163+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-12 12:53 Backported sbxfi driver (UNTESTED!) Alexey Bazhin
2008-10-13 2:03 ` Takashi Iwai
2008-10-13 12:58 ` Alexey Bazhin
2008-10-13 13:18 ` Takashi Iwai
2008-10-13 14:33 ` The Source
2008-10-13 14:56 ` Takashi Iwai
2008-10-13 15:43 ` Takashi Iwai
2008-10-13 16:02 ` Takashi Iwai
2008-10-13 16:05 ` Takashi Iwai
2008-10-13 19:21 ` Alexey Bazhin
2008-10-14 5:17 ` The Source
2008-10-14 5:41 ` Takashi Iwai
2008-10-14 6:45 ` Takashi Iwai
2008-10-14 7:23 ` The Source
2008-10-14 7:40 ` Takashi Iwai
2008-10-14 7:58 ` The Source
2008-10-14 8:14 ` Takashi Iwai
2008-10-14 8:13 ` Alexey Bazhin
2008-10-14 8:48 ` The Source
2008-10-14 8:55 ` Takashi Iwai
2008-10-14 8:55 ` The Source
2008-10-14 9:07 ` Takashi Iwai
2008-10-14 9:17 ` The Source
2008-10-14 10:52 ` Takashi Iwai
2008-10-14 11:03 ` Takashi Iwai
2008-10-14 14:11 ` The Source
2008-10-14 15:32 ` Takashi Iwai
2008-10-14 16:22 ` Vedran Miletić
2008-10-14 16:25 ` Takashi Iwai
2008-10-14 11:24 ` The Source
2008-10-15 6:38 ` Takashi Iwai
2008-10-15 7:16 ` The Source
2008-10-15 7:36 ` Takashi Iwai
[not found] ` <48F59FF4.20800@gmail.com>
2008-10-15 7:54 ` Takashi Iwai
2008-10-15 8:14 ` The Source
2008-10-15 9:07 ` Takashi Iwai
2008-10-15 12:34 ` Alexey Bazhin
2008-10-14 20:35 ` Alexey Bazhin
2008-10-15 6:30 ` Takashi Iwai
2008-10-15 8:26 ` Alexey Bazhin
2008-10-15 9:02 ` Takashi Iwai [this message]
2008-10-15 18:54 ` Alexey Bazhin
2008-10-16 10:03 ` Takashi Iwai
2008-10-16 10:46 ` Takashi Iwai
2008-10-16 11:09 ` Alexey Bazhin
2008-10-16 11:12 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2008-11-10 0:26 Romain
2008-10-15 21:57 Bjoern Olausson
2008-10-16 8:58 ` Takashi Iwai
[not found] ` <5501535d0810161130i7e3fa4c2hbe267ba2cbb15c00@mail.gmail.com>
2008-10-16 20:07 ` Bjoern Olausson
2008-10-17 6:21 ` Takashi Iwai
2008-10-09 18:02 Takashi Iwai
2008-10-09 18:12 ` Brendan Pike
2008-10-09 18:25 ` Ted T. Logian
2008-10-09 18:25 ` William Pitcock
2008-10-09 18:49 ` Ted T. Logian
2008-10-09 19:50 ` James Courtier-Dutton
2008-10-10 6:02 ` Takashi Iwai
2008-10-09 20:03 ` Ted T. Logian
2008-10-09 20:17 ` Ted T. Logian
2008-10-10 6:01 ` Takashi Iwai
2008-10-10 6:26 ` Ted T. Logian
2008-10-10 6:46 ` Takashi Iwai
2008-10-10 18:17 ` William Pitcock
2008-10-11 16:01 ` Takashi Iwai
2008-10-11 17:36 ` William Pitcock
2008-10-11 17:39 ` William Pitcock
2008-10-11 17:41 ` Takashi Iwai
2008-10-11 17:43 ` Takashi Iwai
2008-10-11 18:04 ` William Pitcock
2008-10-12 19:34 ` Takashi Iwai
[not found] ` <e4b753d00810121816i133141d5te6a4d638044f3875@mail.gmail.com>
2008-10-13 2:08 ` Takashi Iwai
2008-10-13 9:51 ` Takashi Iwai
[not found] ` <6d00fe310810100939h6cd61e0cg7817c7f54f6261f6@mail.gmail.com>
2008-10-11 15:47 ` Takashi Iwai
2008-10-11 16:03 ` Ted T. Logian
2008-10-11 17:32 ` Takashi Iwai
2008-10-12 8:41 ` Vedran Miletić
2008-10-12 8:48 ` James Courtier-Dutton
2008-10-12 9:43 ` The Source
2008-10-12 8:44 ` James Courtier-Dutton
2008-10-13 9:52 ` Takashi Iwai
2008-10-11 16:28 ` The Source
2008-10-11 17:34 ` Takashi Iwai
2008-10-16 12:03 ` Jan Wolf
2008-10-16 12:33 ` Takashi Iwai
2008-10-16 12:56 ` Xarteras
2008-10-16 13:36 ` The Source
2008-10-16 13:48 ` Takashi Iwai
2008-10-16 14:15 ` The Source
2008-10-16 14:18 ` Takashi Iwai
2008-10-16 14:41 ` The Source
2008-10-16 14:42 ` Takashi Iwai
2008-10-16 14:51 ` The Source
2008-10-16 15:00 ` The Source
2008-10-16 15:04 ` Takashi Iwai
[not found] ` <48F75892.8000209@gmail.com>
2008-10-16 15:15 ` Takashi Iwai
2008-10-16 17:53 ` Bjoern Olausson
2008-10-16 18:02 ` The Source
2008-10-16 18:18 ` The Source
2008-10-17 6:17 ` Takashi Iwai
2008-10-17 6:26 ` The Source
2008-10-17 6:39 ` Takashi Iwai
2008-10-17 7:16 ` The Source
2008-10-17 8:17 ` The Source
2008-10-17 9:00 ` Xarteras
2008-10-17 9:17 ` The Source
2008-10-17 9:25 ` Takashi Iwai
2008-10-17 9:23 ` Takashi Iwai
2008-10-17 9:50 ` Xarteras
2008-10-17 10:00 ` Tony Vroon
2008-10-17 10:35 ` Xarteras
2008-10-17 15:33 ` Bjoern Olausson
2008-10-17 7:57 ` The Source
2008-10-17 9:35 ` Takashi Iwai
2008-10-17 9:58 ` The Source
2008-10-17 9:59 ` Takashi Iwai
2008-10-17 10:01 ` The Source
2008-10-17 10:04 ` Takashi Iwai
[not found] ` <48F86606.9070108@gmail.com>
2008-10-17 10:27 ` Takashi Iwai
2008-10-17 20:48 ` William Pitcock
2008-10-18 10:06 ` Xarteras
2008-10-18 15:06 ` Takashi Iwai
2008-10-18 17:10 ` William Pitcock
2008-10-18 17:17 ` William Pitcock
2008-10-19 7:59 ` Takashi Iwai
2008-10-19 18:07 ` Bjoern Olausson
2008-10-19 19:47 ` William Pitcock
2008-10-16 21:29 ` Xarteras
2008-10-17 18:16 ` James Courtier-Dutton
2008-10-22 15:24 ` Bjoern Olausson
2008-10-22 15:26 ` Takashi Iwai
2008-10-22 16:07 ` Bjoern Olausson
2008-10-22 16:24 ` Bjoern Olausson
2008-10-22 19:25 ` The Source
2008-10-23 5:40 ` Takashi Iwai
2008-10-23 11:46 ` Bjoern Olausson
2008-10-23 11:53 ` Jason Harvey
2008-10-23 13:56 ` Takashi Iwai
2008-10-23 12:45 ` Jason Harvey
2008-10-23 13:07 ` Bjoern Olausson
2008-10-23 13:21 ` Jason Harvey
2008-10-23 15:54 ` Takashi Iwai
2008-10-23 14:23 ` Jason Harvey
2008-10-23 17:07 ` Takashi Iwai
2008-10-23 17:15 ` Takashi Iwai
2008-10-23 15:37 ` Jason Harvey
2008-10-23 15:40 ` Bjoern Olausson
2008-10-23 17:44 ` Takashi Iwai
2008-10-23 17:49 ` Takashi Iwai
2008-10-23 16:23 ` Jason Harvey
2008-10-23 19:14 ` Takashi Iwai
2008-10-23 17:32 ` Jason Harvey
2008-10-23 21:30 ` Takashi Iwai
2008-10-23 20:17 ` Jason Harvey
2008-10-24 8:40 ` Takashi Iwai
2008-10-24 7:56 ` Jason Harvey
2008-10-24 10:21 ` Takashi Iwai
2008-10-24 8:50 ` Jason Harvey
2008-10-23 17:26 ` Takashi Iwai
2008-10-23 15:31 ` Jason Harvey
2008-10-23 17:41 ` Takashi Iwai
2008-10-23 14:48 ` Jason Harvey
2008-10-23 13:54 ` Takashi Iwai
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=s5hk5ca2pu1.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=baz@irc.msk.ru \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.