From: "thomas.luo" Subject: Re: alsa driver problem Date: Mon, 15 Jan 2007 08:55:07 +0800 Message-ID: <009201c7383f$d1cfcc60$0a01000a@Thomas> References: <00e101c73622$7e988060$0e96a8c0@Thomas> <1168611833.10120.36.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1223563211==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Liam Girdwood Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --===============1223563211== Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original Content-Transfer-Encoding: 7bit ----- Original Message ----- From: "Liam Girdwood" To: "thomas.luo" Cc: Sent: Friday, January 12, 2007 10:23 PM Subject: Re: [Alsa-devel] alsa driver problem > On Fri, 2007-01-12 at 16:06 +0800, thomas.luo wrote: > >> >> when i force the avail_min to 4096, the whole system work well. >> who can tell me any idea? > > This may be related to a compiler optimisation bug for ARM that caused > PCM refinement to fail. > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27363 > > More info can be found by searching the archives. > > Liam > Dear Liam: i have apply this patch, but it is same. this is my code in the aplay. sleep(1); snd_pcm_hw_params_dump(params, log); sleep(1); error(_("chunk_size:%x\n"),chunk_size); snd_pcm_hw_params_get_period_size(params, &chunk_size, 0); //chunk_size =4096; error(_("chunk_size:%x\n"),chunk_size); sleep(1); snd_pcm_hw_params_dump(params, log); sleep(1); and the output. Rule 1 [bf00713c]: SAMPLE_BITS = [16 16] -> [16 16] Rule 2 [bf0072a4]: SAMPLE_BITS = [16 16] -> [16 16] Rule 3 [bf007240]: FRAME_BITS = [32 32] -> [32 32] Rule 4 [bf007370]: FRAME_BITS = [32 32] -> [32 32] Rule 5 [bf007370]: FRAME_BITS = [32 32] -> [32 32] Rule 6 [bf0072a4]: CHANNELS = [2 2] -> [2 2] Rule 7 [bf007370]: RATE = [44100 44100] -> [44100 44100] Rule 8 [bf007370]: RATE = [44100 44100] -> [44100 44100] Rule 9 [bf0072a4]: PERIODS = [4 4] -> [4 4] Rule 10 [bf0072a4]: PERIOD_SIZE = [4096 4096] -> [4096 4096] Rule 11 [bf007370]: PERIOD_SIZE = [4096 4096] -> [4096 4096] Rule 12 [bf007308]: PERIOD_SIZE = [4096 4096] -> [4096 4096] Rule 13 [bf007240]: BUFFER_SIZE = [16384 16384] -> [16384 16384] Rule 14 [bf007370]: BUFFER_SIZE = [16384 16384] -> [16384 16384] Rule 15 [bf007308]: BUFFER_SIZE = [16384 16384] -> [16384 16384] Rule 16 [bf007308]: PERIOD_BYTES = [16384 16384] -> [16384 16384] Rule 17 [bf007308]: BUFFER_BYTES = [65536 65536] -> [65536 65536] Rule 18 [bf007370]: PERIOD_TIME = (92879 92880) -> (92879 92880) Rule 19 [bf007370]: BUFFER_TIME = (371519 371520) -> (371519 371520) Rule 20 [bf033c00]: CHANNELS = [2 2] -> [2 2] Rule 21 [bf033e74]: RATE = [44100 44100]s->codec_idx:0x0,s->rate_idx:0x0 -> [44100 44100] Rule 22 [bf0062ec]: BUFFER_BYTES = [65536 65536] -> [65536 65536] ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 44100 PERIOD_TIME: (92879 92880) PERIOD_SIZE: 4096 PERIOD_BYTES: 16384 PERIODS: 4 BUFFER_TIME: (371519 371520) BUFFER_SIZE: 16384 BUFFER_BYTES: 65536 TICK_TIME: 10000 aplay: set_params:968: chunk_size:400 aplay: set_params:971: chunk_size:0 ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 44100 PERIOD_TIME: (92879 92880) PERIOD_SIZE: 4096 PERIOD_BYTES: 16384 PERIODS: 4 BUFFER_TIME: (371519 371520) BUFFER_SIZE: 16384 BUFFER_BYTES: 65536 TICK_TIME: 10000 start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 1 sleep_min: 0 avail_min: 4096 xfer_align: 4096 silence_threshold: 0 silence_size: 0 boundary: 1073741824 aplay: set_params:1024: snd_pcm_sw_params ALSA lib pcm.c:873:(snd_pcm_sw_params) params->avail_min is 0 aplay: set_params:1028: unable to install sw params: start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 1 sleep_min: 0 avail_min: 0 xfer_align: 114112 silence_threshold: 0 silence_size: 0 boundary: 1073741824 --===============1223563211== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1223563211== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel --===============1223563211==--