[ALSA - driver 0001823]: surround40 memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1823> 
======================================================================
Reported By:                darkbrain
Assigned To:                
======================================================================
Project:                    ALSA - driver
Issue ID:                   1823
Category:                   PCI - cs46xx
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             02-05-2006 22:59 CET
Last Modified:              07-25-2006 02:41 CEST
======================================================================
Summary:                    surround40 memory leak
Description: 
It seems that surround40 has a memory leak or somthing similar, playing a
game in surround40 mode the game result unplayable after some minutes. 
And there is a problem in CS46xx.conf file, i need to remove the hook on
the rear pcm to permit multiple surround40 subdevices to be opened.
======================================================================

----------------------------------------------------------------------
 bitmage2 - 07-24-06 21:25 
----------------------------------------------------------------------
Raymond, in case that you still need information about the "value return by
snd_pcm_info_get_subdevices_count()", I did a small test program (see
below):


chris@bjork:~> /opt/SVN/branches/3.5/kdemultimedia/kmix/a.out
snd_pcm_open() = 0
snd_pcm_info_get_subdevices_count() = 0 ; sizeof= 288


----------------------------------------------------
#include <alsa/asoundlib.h>

main()
{
    snd_pcm_t *pcm;
    int ret;
    const snd_pcm_info_t *obj;

    ret = snd_pcm_open(&pcm, "surround40", SND_PCM_STREAM_PLAYBACK,
SND_PCM_NONBLOCK) ;
    printf ( "snd_pcm_open() = %i\n", ret);
    ret = snd_pcm_info_get_subdevices_count(obj);
    printf ( "snd_pcm_info_get_subdevices_count() = %i ; sizeof= %i\n",
ret, snd_pcm_info_sizeof() );
}

----------------------------------------------------------------------
 Raymond - 07-25-06 02:41 
----------------------------------------------------------------------
I am just a reporter and do not have any cs46xx card too.

Whether cs46xx support multiple instances of multi-channels seem depend on
DSP firmware 

Can you run multiple instances of surround40 and surround51 concurrently
(speaker-test or 5.1 movie) by removing the lock in CS46xx.conf


I want to find out a feasible solution (period_size, period and
buffer_size calculation by snd_pcm_set_params() ) for my au8830 sound card
in https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724 by comparing
au8830 (device 0 support 1, 2, 4 channels) with
cs46xx (multi pluginn of device front, rear and center_lfe).

Can you try alsa-lib example (i.e. alsa-lib/test/pcm_min.c) ? 

I will upload a modifed version which test difference devices (hw:0,
front, surround40, surround51) with  1, 2, 4, 6 channels and format S16_LE
in snd_pcm_set_params() and print out the values of period_size and
buffer_size returned by snd_pcm_get_params()

BTW, you forget to call snd_pcm_info(pcm, obj) in your program

Issue History
Date Modified  Username       Field                    Change              
======================================================================
02-05-06 22:59 darkbrain      New Issue                                    
02-06-06 06:32 Raymond        Note Added: 0007943                          
02-06-06 07:10 Raymond        Note Edited: 0007943                         
02-06-06 07:31 Raymond        Note Edited: 0007943                         
02-06-06 07:32 Raymond        Note Edited: 0007943                         
02-06-06 10:46 darkbrain      Note Added: 0007945                          
02-06-06 10:46 darkbrain      Note Added: 0007946                          
02-06-06 10:47 darkbrain      Note Deleted: 0007946                        
02-06-06 18:37 darkbrain      Note Added: 0007950                          
02-11-06 15:01 darkbrain      Note Added: 0008018                          
02-12-06 05:09 Raymond        Note Added: 0008025                          
02-15-06 06:21 Raymond        Note Added: 0008076                          
02-21-06 07:56 Raymond        Note Added: 0008152                          
03-27-06 04:42 Raymond        Note Added: 0008987                          
06-02-06 09:33 Raymond        Note Deleted: 0008152                        
06-02-06 09:33 Raymond        Note Deleted: 0008987                        
06-02-06 09:34 Raymond        Note Deleted: 0008076                        
07-11-06 13:28 Raymond        Note Added: 0010970                          
07-24-06 21:21 bitmage2       Note Added: 0011215                          
07-24-06 21:25 bitmage2       Note Added: 0011216                          
07-25-06 02:41 Raymond        Note Added: 0011222                          
======================================================================



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux