Send buglog mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/buglog
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of buglog digest..."
Today's Topics:
1. Openmoko Bug #2329: arecord -D plughw:0, 0 => oops BUG?
(substream->stream != SNDRV_PCM_STREAM_CAPTURE) (Openmoko Public Trac)
2. Openmoko Bug #2330: recording from usb headset and playing
back audio at the same time prints "frame 0 active: -18"
(Openmoko Public Trac)
--- Begin Message ---
#2329: arecord -D plughw:0,0 => oops BUG? (substream->stream !=
SNDRV_PCM_STREAM_CAPTURE)
-----------------------------+----------------------------------------------
Reporter: lindi | Owner: openmoko-kernel
Type: defect | Status: new
Priority: normal | Milestone:
Component: System Software | Version:
Severity: normal | Keywords:
Haspatch: 0 | Blockedby:
Estimated: | Patchreview:
Blocking: | Reproducible: always
-----------------------------+----------------------------------------------
Steps to reproduce:
1) arecord -D plughw:1,0 -t raw -r 48000 -f S16_LE -c 1 - > /dev/null
2) arecord -D plughw:0,1 -t raw -r 48000 -f S16_LE -c 1 - > /dev/null
3) arecord -D plughw:0,1 -t raw -r 48000 -f S16_LE -c 1 - > /dev/null
4) arecord -D plughw:0,0 -t raw -r 48000 -f S16_LE -c 1 - > /dev/null
Expected results:
4) error message
Actual results:
4) arecord prints
Recording raw data '-' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
arecord: set_params:1041: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: (42666 42667)
PERIOD_SIZE: 2048
PERIOD_BYTES: 4096
PERIODS: (11 12)
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0
and can not be killed. Kernel prints
{{{
asoc: WM8753 Voice <-> Bluetooth No matching rates
snd_pcm_hw_constraints_complete failed
asoc: WM8753 Voice <-> Bluetooth No matching rates
snd_pcm_hw_constraints_complete failed
------------[ cut here ]------------
WARNING: at /local/lindi/neolinux/sound/core/pcm_native.c:2644
snd_pcm_capture_ioctl1+0x58/0x2f4 [snd_pcm]()
BUG? (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
Modules linked in: fuse snd_soc_neo1973_gta02_wm8753 snd_soc_s3c24xx_i2s
snd_soc_s3c24xx g_ether s3c2410_wdt ar6000 snd_soc_wm8753 snd_soc_core
snd_pcm snd_timer snd_page_alloc s3cmci snd
[<c00327a4>] (dump_stack+0x0/0x14) from [<c004e664>]
(warn_slowpath+0x6c/0x88)
[<c004e5f8>] (warn_slowpath+0x0/0x88) from [<bf0346ec>]
(snd_pcm_capture_ioctl1+0x58/0x2f4 [snd_pcm])
r3:bf03a1e4 r2:bf03a114
r7:c03703f0 r6:c0844123 r5:00027ec8 r4:00027ec8
[<bf034694>] (snd_pcm_capture_ioctl1+0x0/0x2f4 [snd_pcm]) from
[<bf0349c0>] (snd_pcm_capture_ioctl+0x38/0x3c [snd_pcm])
r7:c7bc7aa0 r6:c0844123 r5:c0844123 r4:00027ec8
[<bf034988>] (snd_pcm_capture_ioctl+0x0/0x3c [snd_pcm]) from [<c00ac70c>]
(vfs_ioctl+0x38/0x80)
[<c00ac6d4>] (vfs_ioctl+0x0/0x80) from [<c00acde4>]
(do_vfs_ioctl+0x170/0x188)
r5:00027ec8 r4:00027ec8
[<c00acc74>] (do_vfs_ioctl+0x0/0x188) from [<c00ace3c>]
(sys_ioctl+0x40/0x60)
r4:00000004
[<c00acdfc>] (sys_ioctl+0x0/0x60) from [<c002dd60>]
(ret_fast_syscall+0x0/0x2c)
r7:00000036 r6:00027d68 r5:4010727c r4:bea5d6a4
---[ end trace 8e00386b028817b3 ]---
Unable to handle kernel NULL pointer dereference at virtual address
00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 817 [#1]
Modules linked in: fuse snd_soc_neo1973_gta02_wm8753 snd_soc_s3c24xx_i2s
snd_soc_s3c24xx g_ether s3c2410_wdt ar6000 snd_soc_wm8753 snd_soc_core
snd_pcm snd_timer snd_page_alloc s3cmci snd
CPU: 0 Tainted: G W (2.6.29-GTA02_lindi2-andy-tracking-mokodev
#1)
PC is at __mutex_lock_slowpath+0x34/0x9c
LR is at mutex_lock+0x20/0x24
pc : [<c028e464>] lr : [<c028e338>] psr: a0000013
sp : c6d9de58 ip : c6d9de88 fp : c6d9de84
r10: c780ae20 r9 : c6d9c000 r8 : c7bc7aa0
r7 : c7bbef00 r6 : c7bca420 r5 : c7bbf018 r4 : c7bbf018
r3 : c6d9de5c r2 : c7bbf01c r1 : 00000000 r0 : c7bbf018
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 36dac000 DAC: 00000015
Process arecord (pid: 1438, stack limit = 0xc6d9c268)
Stack: (0xc6d9de58 to 0xc6d9e000)
de40: 00000000
c7bbf01c
de60: c6d9de8c c6d9de70 c7bbef00 c7bbf018 c03703f0 c7bbef00 c6d9de94
c6d9de88
de80: c028e338 c028e440 c6d9debc c6d9de98 bf032338 c028e328 00000008
c7bc7aa0
dea0: 00000008 c7bccd24 00000000 c74bd594 c6d9deec c6d9dec0 c00a1718
bf0322f8
dec0: 00000000 00000000 c7bc7aa0 00000000 c784d520 00000000 c784d520
00000000
dee0: c6d9defc c6d9def0 c00a1a78 c00a1644 c6d9df1c c6d9df00 c009e668
c00a1a54
df00: c6d9df08 00000001 00000010 c7bbec00 c6d9df44 c6d9df20 c0050b5c
c009e5fc
df20: c784d520 00000001 00000100 000000f8 c002df08 00000000 c6d9df5c
c6d9df48
df40: c0050bb0 c0050b10 c7bca420 00000001 c6d9df6c c6d9df60 c0050c0c
c0050b88
df60: c6d9df7c c6d9df70 c0051fc4 c0050bf4 c6d9df94 c6d9df80 c0052130
c0051ea8
df80: c0034d5c 00096e40 c6d9dfa4 c6d9df98 c005217c c00520b0 00000000
c6d9dfa8
dfa0: c002dd60 c0052174 00096e40 00096e1c 00000001 00000001 fbad2088
00000008
dfc0: 00096e40 00096e1c 4031d764 000000f8 bea5dda0 bea5dd30 0000bb80
bea5e08c
dfe0: 401ce000 bea5dd20 4022259c 40288310 60000010 00000001 00000000
00000000
Backtrace:
[<c028e430>] (__mutex_lock_slowpath+0x0/0x9c) from [<c028e338>]
(mutex_lock+0x20/0x24)
r7:c7bbef00 r6:c03703f0 r5:c7bbf018 r4:c7bbef00
[<c028e318>] (mutex_lock+0x0/0x24) from [<bf032338>]
(snd_pcm_release+0x50/0xac [snd_pcm])
[<bf0322e8>] (snd_pcm_release+0x0/0xac [snd_pcm]) from [<c00a1718>]
(__fput+0xe4/0x18c)
r8:c74bd594 r7:00000000 r6:c7bccd24 r5:00000008 r4:c7bc7aa0
[<c00a1634>] (__fput+0x0/0x18c) from [<c00a1a78>] (fput+0x34/0x38)
[<c00a1a44>] (fput+0x0/0x38) from [<c009e668>] (filp_close+0x7c/0x88)
[<c009e5ec>] (filp_close+0x0/0x88) from [<c0050b5c>]
(close_files+0x5c/0x78)
r6:c7bbec00 r5:00000010 r4:00000001
[<c0050b00>] (close_files+0x0/0x78) from [<c0050bb0>]
(put_files_struct+0x38/0x6c)
[<c0050b78>] (put_files_struct+0x0/0x6c) from [<c0050c0c>]
(exit_files+0x28/0x2c)
r5:00000001 r4:c7bca420
[<c0050be4>] (exit_files+0x0/0x2c) from [<c0051fc4>] (do_exit+0x12c/0x208)
[<c0051e98>] (do_exit+0x0/0x208) from [<c0052130>]
(do_group_exit+0x90/0xc4)
[<c00520a0>] (do_group_exit+0x0/0xc4) from [<c005217c>]
(sys_exit_group+0x18/0x20)
r4:00096e40
[<c0052164>] (sys_exit_group+0x0/0x20) from [<c002dd60>]
(ret_fast_syscall+0x0/0x2c)
Code: e24b3028 e5823004 e50b2028 e1a04000 (e5813000)
---[ end trace 8e00386b028817b4 ]---
Fixing recursive fault but reboot is needed!
}}}
More info:
1) andy-tracking a3587e4ed77974ad with DEBUG and PREEMPT disabled.
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2329>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
--- End Message ---
--- Begin Message ---
#2330: recording from usb headset and playing back audio at the same time prints
"frame 0 active: -18"
-----------------------------+----------------------------------------------
Reporter: lindi | Owner: openmoko-kernel
Type: defect | Status: new
Priority: normal | Milestone:
Component: System Software | Version: unspecified
Severity: normal | Keywords:
Haspatch: 0 | Blockedby:
Estimated: | Patchreview:
Blocking: | Reproducible: always
-----------------------------+----------------------------------------------
Steps to reproduce:
0) connect usb headset to openmoko
1) alsactl restore -f stereoout.state
2) cat /dev/zero | aplay -D hw:0,0 -t raw -r 8000 -f S16_LE -c 2
3) arecord -D hw:1 -t raw -r 48000 -f S16_LE -c 1 > /dev/null
4) Try to run both at the same time
Expected results:
2) audio is played with speaker
3) audio is recorded from usb headset
4) audio is played with speaker and recorded from usb headset
Actual results:
2) seems to work:
Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz,
Stereo
and vmstat shows almost no load:
{{{
procs -----------memory---------- ---swap-- -----io---- -system--
----cpu----
r b swpd free buff cache si so bi bo in cs us sy id
wa
0 0 108 12952 10016 57468 0 0 0 0 326 244 0 1 99
0
0 0 108 13584 10016 57468 0 0 0 0 323 258 0 1 99
0
0 0 108 13200 10016 57468 0 0 0 0 344 283 0 2 98
0
0 0 108 13172 10024 57468 0 0 0 2 313 253 2 2 95
1
0 0 108 13172 10032 57468 0 0 0 2 311 234 0 0 98
2
0 0 108 13172 10032 57468 0 0 0 0 310 229 0 1 99
0
0 0 108 13172 10032 57468 0 0 0 0 319 237 0 1 99
0
0 0 108 13172 10032 57468 0 0 0 0 348 242 0 1 99
0
0 0 108 13172 10032 57468 0 0 0 0 311 238 0 1 99
0
}}}
3) seems to work
Recording raw data 'stdin' : Signed 16 bit Little Endian, Rate
48000 Hz, Mono
and vmstat again shows almost no load:
{{{
procs -----------memory---------- ---swap-- -----io---- -system--
----cpu----
r b swpd free buff cache si so bi bo in cs us sy id
wa
0 1 108 14148 10084 57472 0 0 0 2 2306 238 0 0 97
3
0 0 108 14120 10084 57472 0 0 0 0 2307 249 2 2 95
2
0 0 108 14120 10092 57472 0 0 0 2 2305 246 0 0 98
1
0 0 108 14120 10092 57472 0 0 0 0 2311 242 0 0
100 0
0 0 108 14120 10092 57472 0 0 0 0 2308 244 0 0 99
0
0 0 108 14120 10092 57472 0 0 0 0 2304 240 0 0
100 0
}}}
4) causes aplay to print
underrun!!! (at least 5.185 ms long)
underrun!!! (at least 0.015 ms long)
underrun!!! (at least 3.817 ms long)
underrun!!! (at least 1.094 ms long)
underrun!!! (at least 9.648 ms long)
underrun!!! (at least 0.540 ms long)
underrun!!! (at least 0.700 ms long)
underrun!!! (at least 5.194 ms long)
underrun!!! (at least 0.013 ms long)
underrun!!! (at least 0.014 ms long)
underrun!!! (at least 0.715 ms long)
underrun!!! (at least 2.273 ms long)
underrun!!! (at least 7.920 ms long)
underrun!!! (at least 3.670 ms long)
underrun!!! (at least 0.069 ms long)
and kernel to print
{{{
[16892.715000] frame 0 active: -18
[16892.725000] frame 0 active: -18
[16892.725000] frame 0 active: -18
[16892.725000] frame 0 active: -18
[16892.725000] frame 0 active: -18
[16892.725000] frame 0 active: -114
[16892.725000] frame 0 active: -18
[16892.725000] frame 0 active: -18
[16892.730000] frame 0 active: -18
[16892.730000] frame 0 active: -114
[16892.730000] frame 0 active: -18
[16892.730000] frame 0 active: -18
[16892.730000] frame 0 active: -18
[16892.730000] frame 0 active: -18
[16892.730000] frame 0 active: -18
[16892.735000] frame 0 active: -18
[16892.735000] frame 0 active: -18
[16892.735000] frame 0 active: -18
[16892.735000] frame 0 active: -18
[16892.735000] frame 0 active: -18
[16892.735000] frame 0 active: -114
[16892.735000] frame 0 active: -18
[16892.740000] frame 0 active: -18
[16892.740000] frame 0 active: -18
[16892.740000] frame 0 active: -114
[16892.740000] frame 0 active: -18
[16892.740000] frame 0 active: -18
[16892.740000] frame 0 active: -18
[16892.740000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
[16892.745000] frame 0 active: -18
}}}
at a very rapid rate.
More info:
1) kernel is andy-tracking a3587e4ed77974ad with DEBUG and PREEMPT
disabled.
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2330>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
--- End Message ---
_______________________________________________
buglog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/buglog