* Juli@-Card and hanging process snd-ak4114/0
@ 2005-03-10 17:03 Sebastian Benoit
2005-03-10 17:11 ` Lee Revell
2005-03-10 17:14 ` Jaroslav Kysela
0 siblings, 2 replies; 6+ messages in thread
From: Sebastian Benoit @ 2005-03-10 17:03 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
Hi,
I already reported this in a note to issue 930 of the ALSA bugtracking
system:
I've a Juli@-Soundcard working with the current CVS-driver.
The main problem is, that a process "snd-ak4114/0" is using 60% of my CPU
time. I would like to solve this problem, and have started reading trough
the code. But it seems I need some pointers where to look ;-)
/Benno
--
Sebastian Benoit <benoit-lists@fb12.de>
My mail is GnuPG signed -- Unsigned ones are bogus -- http://www.gnupg.org/
GnuPG 0xD777DBA7 2003-09-10 D02B D0E0 3790 1AA1 DA3A B508 BF48 87BF D777 DBA7
Democratization of the internet must be opposed at all costs. The
infestation ecommerce was bad enough, but to allow regular people to post
their diaries online -- well, that's simply intolerable.
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Juli@-Card and hanging process snd-ak4114/0
2005-03-10 17:03 Juli@-Card and hanging process snd-ak4114/0 Sebastian Benoit
@ 2005-03-10 17:11 ` Lee Revell
2005-03-10 17:14 ` Jaroslav Kysela
1 sibling, 0 replies; 6+ messages in thread
From: Lee Revell @ 2005-03-10 17:11 UTC (permalink / raw)
To: Sebastian Benoit; +Cc: alsa-devel
On Thu, 2005-03-10 at 18:03 +0100, Sebastian Benoit wrote:
> Hi,
>
> I already reported this in a note to issue 930 of the ALSA bugtracking
> system:
>
> I've a Juli@-Soundcard working with the current CVS-driver.
>
> The main problem is, that a process "snd-ak4114/0" is using 60% of my CPU
> time. I would like to solve this problem, and have started reading trough
> the code. But it seems I need some pointers where to look ;-)
Why don't you use oprofile to find out where all that CPU time is being
spent?
Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Juli@-Card and hanging process snd-ak4114/0
2005-03-10 17:03 Juli@-Card and hanging process snd-ak4114/0 Sebastian Benoit
2005-03-10 17:11 ` Lee Revell
@ 2005-03-10 17:14 ` Jaroslav Kysela
2005-03-15 16:48 ` Sebastian Benoit
1 sibling, 1 reply; 6+ messages in thread
From: Jaroslav Kysela @ 2005-03-10 17:14 UTC (permalink / raw)
To: Sebastian Benoit; +Cc: alsa-devel
On Thu, 10 Mar 2005, Sebastian Benoit wrote:
>
> Hi,
>
> I already reported this in a note to issue 930 of the ALSA bugtracking
> system:
>
> I've a Juli@-Soundcard working with the current CVS-driver.
>
> The main problem is, that a process "snd-ak4114/0" is using 60% of my CPU
> time. I would like to solve this problem, and have started reading trough
> the code. But it seems I need some pointers where to look ;-)
You may try to change queue_delayed_work(chip->workqueue, &chip->work, 1);
to queue_delayed_work(chip->workqueue, &chip->work, 2); (or highter value)
in alsa-kernel/i2c/other/ak4114.c .
It seems that i2c takes too much time. Or it might be, that the scheduler
code for task statistics is somewhat broken.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Juli@-Card and hanging process snd-ak4114/0
2005-03-10 17:14 ` Jaroslav Kysela
@ 2005-03-15 16:48 ` Sebastian Benoit
2005-03-15 16:56 ` Jaroslav Kysela
0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Benoit @ 2005-03-15 16:48 UTC (permalink / raw)
To: alsa-devel; +Cc: perex
[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]
Hi,
Jaroslav Kysela(perex@suse.cz) on 2005.03.10 18:14:12 +0000:
> > The main problem is, that a process "snd-ak4114/0" is using 60% of my CPU
> > time. I would like to solve this problem, and have started reading trough
> > the code. But it seems I need some pointers where to look ;-)
>
> You may try to change queue_delayed_work(chip->workqueue, &chip->work, 1);
> to queue_delayed_work(chip->workqueue, &chip->work, 2); (or highter value)
> in alsa-kernel/i2c/other/ak4114.c .
A value of two gives me 40% CPU time, with 100 the process uses ~2%.
> It seems that i2c takes too much time. Or it might be, that the scheduler
> code for task statistics is somewhat broken.
My other process behave like they dont get enough time, so i think the
scheduler stats are right ;-)
With the value in ak4114.c set to 100 everything is working. I don't know
about spdif, i haven't tried that, am i right that the ak4114.c code manages
digital i/o?
My application is recording and playing (something differen) at the same
time via this card, and that works fine now, except for the output volume.
I am willing to test more. Is someone working on the mixer code?
Thanks for your help.
/B.
--
Sebastian Benoit <benoit-lists@fb12.de>
My mail is GnuPG signed -- Unsigned ones are bogus -- http://www.gnupg.org/
GnuPG 0xD777DBA7 2003-09-10 D02B D0E0 3790 1AA1 DA3A B508 BF48 87BF D777 DBA7
That's so plausible I can't believe it -- Leiyla, Futurama
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Juli@-Card and hanging process snd-ak4114/0
2005-03-15 16:48 ` Sebastian Benoit
@ 2005-03-15 16:56 ` Jaroslav Kysela
2005-03-15 17:24 ` Sebastian Benoit
0 siblings, 1 reply; 6+ messages in thread
From: Jaroslav Kysela @ 2005-03-15 16:56 UTC (permalink / raw)
To: Sebastian Benoit; +Cc: alsa-devel
On Tue, 15 Mar 2005, Sebastian Benoit wrote:
> A value of two gives me 40% CPU time, with 100 the process uses ~2%.
Fine. I put 'HZ / 10' value to CVS sources now.
> > It seems that i2c takes too much time. Or it might be, that the scheduler
> > code for task statistics is somewhat broken.
>
> My other process behave like they dont get enough time, so i think the
> scheduler stats are right ;-)
>
> With the value in ak4114.c set to 100 everything is working. I don't know
> about spdif, i haven't tried that, am i right that the ak4114.c code manages
> digital i/o?
>
> My application is recording and playing (something differen) at the same
> time via this card, and that works fine now, except for the output volume.
>
> I am willing to test more. Is someone working on the mixer code?
And what does not work exactly? You should have volume controls.
Use alsamixer for reference...
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Juli@-Card and hanging process snd-ak4114/0
2005-03-15 16:56 ` Jaroslav Kysela
@ 2005-03-15 17:24 ` Sebastian Benoit
0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Benoit @ 2005-03-15 17:24 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 668 bytes --]
Jaroslav Kysela(perex@suse.cz) on 2005.03.15 17:56:37 +0000:
> > I am willing to test more. Is someone working on the mixer code?
>
> And what does not work exactly? You should have volume controls.
> Use alsamixer for reference...
Okay, should have expected that.
The volume controls don't do anything. Maybe i just don't undestand the way
they should work. I'll look further into this tommorow.
/B.
--
Sebastian Benoit <benoit-lists@fb12.de>
My mail is GnuPG signed -- Unsigned ones are bogus -- http://www.gnupg.org/
GnuPG 0xD777DBA7 2003-09-10 D02B D0E0 3790 1AA1 DA3A B508 BF48 87BF D777 DBA7
Oxymoron #657: Independent Financial Advisor
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-15 17:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 17:03 Juli@-Card and hanging process snd-ak4114/0 Sebastian Benoit
2005-03-10 17:11 ` Lee Revell
2005-03-10 17:14 ` Jaroslav Kysela
2005-03-15 16:48 ` Sebastian Benoit
2005-03-15 16:56 ` Jaroslav Kysela
2005-03-15 17:24 ` Sebastian Benoit
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.