Skip to contentSkip to conversation

Juli@-Card and hanging process snd-ak4114/0

DISCUSSION Sebastian Benoit 3 participants 6 messages Mar 10, 2005 – Mar 15, 2005

lore
Share & tools
lore
#0 lore raw

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

Signature · 7 lines
Sebastian Benoit <[email protected]>
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.
#1 lore raw
Quoted 10 lines · Sebastian Benoit

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

#2 lore raw
In reply to Sebastian Benoit
Quoted 11 lines · Sebastian Benoit

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 <[email protected]>
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

#3 lore raw

Hi,

Jaroslav Kysela([email protected]) on 2005.03.10 18:14:12 +0000:

Quoted 7 lines
Quoted 3 lines

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%.

Quoted 2 lines

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.

Signature · 5 lines
Sebastian Benoit <[email protected]>
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
#4 lore raw
Quoted 1 line · Sebastian Benoit

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.

Quoted 6 lines
Quoted 2 lines

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 ;-)

Quoted 8 lines

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 <[email protected]>
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

#5 lore raw

Jaroslav Kysela([email protected]) on 2005.03.15 17:56:37 +0000:

Quoted 4 lines
Quoted 1 line

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.

Signature · 5 lines
Sebastian Benoit <[email protected]>
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