2009-07-24 02:46:11 tone application hangs in 2009R1-RC1
Hari Prasad (INDIA)
Message: 77986
Hi,
I had slightly changed the file user/play/tone.c to close the DAC after sometime. We hear the tone sound but I observe a hang on the call close(ofd).
I have attached the modified tone.c file for your reference.
We had made the necessary changes in make menuconfig to enable /dev/dsp.
Also, the same modified tone application works fine in 2009R1pre SVN trunk kernel.
Kindly let me know why the hang happens in this kernel version.
TIA.
tone.c
QuoteReplyEditDelete
2009-07-24 03:17:39 Re: tone application hangs in 2009R1-RC1
Barry Song (CHINA)
Message: 77987
What's the codec you are using?
QuoteReplyEditDelete
2009-07-24 03:45:01 Re: tone application hangs in 2009R1-RC1
Yi Li (CHINA)
Message: 77988
Also what is your blackfin part? Please give more information to make it easy to reproduce.
QuoteReplyEditDelete
2009-07-24 05:38:09 Re: tone application hangs in 2009R1-RC1
Hari Prasad (INDIA)
Message: 77997
Hi,
We are using BF527-EZkit and built-in codec SSM2602.
Configuration changes hasbeen done as per the following link
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:ssm2602
Thanks.
QuoteReplyEditDelete
2009-07-27 08:51:29 Re: tone application hangs in 2009R1-RC1
Hari Prasad (INDIA)
Message: 78086
Hi Barry/Yi,
Any updates on this?
QuoteReplyEditDelete
2009-07-27 22:16:25 Re: tone application hangs in 2009R1-RC1
Barry Song (CHINA)
Message: 78105
I noticed the only difference you made is you playback, then close it normally after some time
for (count=0;count<10000;count++)
We used the for (;;) to play until the application gets a signal to stop.
There should be something wrong if you really hang only because of the normal close() call, we need to fix it.
"We had made the necessary changes in make menuconfig to enable /dev/dsp.
Also, the same modified tone application works fine in 2009R1pre SVN trunk kernel.
Kindly let me know why the hang happens in this kernel version.
TIA."
What source code version will you hang? We hope to repeat it if you can give a clear description.
-Barry.
QuoteReplyEditDelete
2009-07-28 00:24:57 Re: tone application hangs in 2009R1-RC1
Hari Prasad (INDIA)
Message: 78107
Hi Barry,
We are using uClinux-dist-2009R1-RC1.tar.bz2 source version with following changes in make menuconfig,
Linux Kernel Configuration
Device Drivers --->
Sound card support --->
<*> Advanced Linux Sound Architecture --->
< > Sequencer support
x x <*> OSS Mixer API
x x <*> OSS PCM (digital audio) API
x x [*] OSS PCM (digital audio) API - Include plugin system
x x [ ] Dynamic device file minor numbers
x x [*] Support old ALSA API
x x [*] Verbose procfs contents
x x [ ] Verbose printk
x x [ ] Debug
x x [*] Generic sound devices --->
x x [*] SPI sound devices --->
x x ALSA Blackfin devices --->
x x [*] USB sound devices --->
x x <*> ALSA for SoC audio support --->
--- ALSA for SoC audio support
x x <*> SoC I2S Audio for the ADI BF5xx chip
x x <*> SoC SSM2602 Audio support for BF52x ezkit
x x < > SoC AD73311 Audio support for Blackfin
x x < > SoC AC97 Audio for the ADI BF5xx chip
x x (0) Set a SPORT for Sound chip
xx < > Build all ASoC CODEC drivers
Linux Kernel Configuration
Device Drivers --->
<*> I2C support --->
--- I2C support
x x < > I2C device interface
x x [*] Autoselect pertinent helper modules
x x I2C Hardware Bus support --->
/** I2C system bus drivers (mostly embedded / system-on-chip) ***
x x <*> Blackfin TWI I2C support
x x (50) Blackfin TWI I2C clock (kHz)
Kindly do the above changes in your make menuconfig, use the modified tone.c that we have submitted and let us know if you too observe the hang on your side.
Thanks.