On Sun, Aug 15, 2010 at 8:10 PM, Mark Brown broonie@opensource.wolfsonmicro.com wrote:
On Sun, Aug 15, 2010 at 06:21:08PM +0900, Seungwhan Youn wrote:
o Capture test ; it doesn't work, even after capture, playback also doesn't work.
This doesn't match up with my testing at all, especially the impact on playback. What revision of the SMDK hardware are you using?
Test Environments
SMDK6410 board - CPU board Rev. 1.0 - Base board Rev. 1.0 (2008.07.23)
Board switch settings - CPU board ; CFG6 - 1111 (all on) - Base board - CFG1 - 0000 (all off) - CFG2 - 1000 (only 1 pin is on, others off) - CFG5 - set I2SMULTI_CDCLK (pin 1-2 connected)
Kernel - repos ; git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git - branch ; for-2.6.37 - pull time ; 2010-08-16 17:36 - config ; Add I2S driver and ALSA as a static into kernel(not a module), and remove AC97.
Test Process and Log capture... -- Starting kernel ...
Uncompressing Linux... done, booting the kernel. Linux version 2.6.35-rc1-81021-gec62dbd (claude@starstone) (gcc version 4.4.1 (Sourcery G++ Lite 2000 CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: SMDK6410 Ignoring unrecognised tag 0x41001099 Memory policy: ECC disabled, Data cache writeback CPU S3C6410 (id 0x36410101) S3C24XX Clocks, Copyright 2004 Simtec Electronics ... mmc0: Minimum clock frequency too high for identification mode s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004100, 3=80808080 asoc: wm8580-hifi-playback <-> s3c64xx-iis-v4 mapping ok asoc: wm8580-hifi-capture <-> s3c64xx-iis-v4 mapping ok ALSA device list: #0: smdk64xx VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) ... Samsung SMDK Board on a armv6l Samsung login: root login[981]: root login on 'ttySAC0' [root@Samsung ~]# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: smdk64xx [smdk64xx], device 0: Playback wm8580-hifi-playback-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 [root@Samsung ~]# speaker-test -tsine
speaker-test 1.0.15
Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Sine wave rate is 440.0000Hz Rate set to 48000Hz (requested 48000Hz) Buffer size range from 2048 to 32768 Period size range from 1024 to 2048 Using max buffer size 32768 Periods = 4 was set period_size = 2048 was set buffer_size = 32768 0 - Front Left Time per period = 2.326402 0 - Front Left Time per period = 2.986289 0 - Front Left
--> In this point, I can hear clear sound of sine wave so I pushed 'ctrl+c' to stop it.
[root@Samsung ~]# arecord -Dhw:0 -d5 -fS16_LE -r48000 -c2 > /tmp/tmp.wav arecord: main:546: audio open error: No such device [root@Samsung ~]# arecord -Dhw:0,1 -d5 -fS16_LE -r48000 -c2 > /tmp/tmp.wav Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo s3c2412_snd_lrsync: timeout s3c64xx-iis-v4 s3c64xx-iis-v4: RXDIS: Invalid MODE 0 in IISMOD arecord: pcm_read:1347: read error: Connection timed out [root@Samsung ~]# arecord -Dhw:0,1 -d5 -fS16_LE -r8000 -c2 > /tmp/tmp.wav Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo [root@Samsung ~]# aplay /tmp/tmp.wav Playing WAVE '/tmp/tmp.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo [root@Samsung ~]# arecord -Dhw:0,1 -d5 -fS16_LE -r48000 -c2 > /tmp/tmp.wav Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo s3c2412_snd_lrsync: timeout s3c64xx-iis-v4 s3c64xx-iis-v4: RXDIS: Invalid MODE 0 in IISMOD arecord: pcm_read:1347: read error: Connection timed out [root@Samsung ~]# speaker-test -tsine
speaker-test 1.0.15
Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Sine wave rate is 440.0000Hz Rate set to 48000Hz (requested 48000Hz) Buffer size range from 2048 to 32768 Period size range from 1024 to 2048 Using max buffer size 32768 Periods = 4 was set period_size = 2048 was set buffer_size = 32768 0 - Front Left s3c2412_snd_lrsync: timeout s3c64xx_dma_stop: channel still active Write error: -110,Connection timed out xrun_recovery failed: -110,Connection timed out Transfer failed: Operation not permitted
--> I didn't do anything, but stopped with noise...
[root@Samsung ~]# --
Best Regards, Claude