[#3923] reinstallation of snd-ad1981 module will fail
Submitted By: Vivi Li
Open Date
2008-02-20 22:22:51 Close Date
2008-02-28 07:19:56
Priority:
Medium High Assignee:
Cliff Cai
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1-8
App binary format:
N/A
Summary: reinstallation of snd-ad1981 module will fail
Details:
In 08r1 branch bf537, install snd-ad1981 and uninstall it immediately, reinstallation of this module will fail.
--
root:/> modprobe snd-ad1981
ASoC version 0.13.1
AD1980 SoC Audio Codec
asoc: AC97 <-> bf5xx-ac97 mapping ok
ad1980: Found AD1981 - only 2/2 IN/OUT Channels supported
root:/> lsmod
Module Size Used by
snd_ad1981 1188 0
snd_soc_bf5xx 3520 1 snd_ad1981
snd_soc_ad1980 4416 1 snd_ad1981
snd_soc_core 18304 2 snd_soc_bf5xx,snd_soc_ad1980
ac97_bus 1248 1 snd_soc_core
snd_soc_bf5xx_ac97 12428 3 snd_ad1981,snd_soc_bf5xx,snd_soc_ad1980
root:/>
root:/> modprobe -r snd-ad1981
root:/> lsmod
Module Size Used by
root:/>
root:/> modprobe snd-ad1981
ASoC version 0.13.1
Failed to request RX dma 3
root:/>
root:/> lsmod
Module Size Used by
snd_ad1981 1188 0
snd_soc_bf5xx 3520 1 snd_ad1981
snd_soc_ad1980 4416 1 snd_ad1981
snd_soc_core 18304 2 snd_soc_bf5xx,snd_soc_ad1980
ac97_bus 1248 1 snd_soc_core
snd_soc_bf5xx_ac97 12428 3 snd_ad1981,snd_soc_bf5xx,snd_soc_ad1980
root:/>
Follow-ups
--- Cliff Cai 2008-02-20 22:26:35
remove all allocated resources when the module is removed
--- Vivi Li 2008-02-26 02:35:26
It now fails to reinstall ad1981 module in BF548-EZKIT with GPIO error. It's OK
to reinstall ad1980 module in BF537.
--
BusyBox v1.4.1 (2008-02-25 21:31:22 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> modprobe snd-ad1981
ASoC version 0.13.1
AD1980 SoC Audio Codec
asoc: AC97 <-> bf5xx-ac97 mapping ok
root:/> lsmod
Module Size Used by
snd_ad1981 1188 0
snd_soc_bf5xx 3616 1 snd_ad1981
snd_soc_ad1980 4416 1 snd_ad1981
snd_soc_core 18304 2 snd_soc_bf5xx,snd_soc_ad1980
ac97_bus 1248 1 snd_soc_core
snd_soc_bf5xx_ac97 13196 3 snd_ad1981,snd_soc_bf5xx,snd_soc_ad1980
root:/> modprobe -r snd-ad1981
root:/> lsmod
Module Size Used by
root:/> modprobe snd-ad1981
ASoC version 0.13.1
bfin-gpio: GPIO 19 is already reserved by SND_AD198x RESE !
Hardware Trace:
0 Target : <0x000048d8> { _dump_stack + 0x0 }
Source : <0x00005ab4> { _gpio_request + 0x108 }
1 Target : <0x00005ab4> { _gpio_request + 0x108 }
Source : <0x0000d202> { _printk + 0x16 }
2 Target : <0x0000d1fe> { _printk + 0x12 }
Source : <0x0000d0b4> { _vprintk + 0x1b8 }
3 Target : <0x0000d0a8> { _vprintk + 0x1ac }
Source : <0x0000d09a> { _vprintk + 0x19e }
4 Target : <0x0000d096> { _vprintk + 0x19a }
Source : <0x0000cef6> { _wake_up_klogd + 0x36 }
5 Target : <0x0000cef2> { _wake_up_klogd + 0x32 }
Source : <0x00009214> { ___wake_up + 0x2c }
6 Target : <0x0000920e> { ___wake_up + 0x26 }
Source : <0x00009200> { ___wake_up + 0x18 }
7 Target : <0x000091fc> { ___wake_up + 0x14 }
Source : <0x000091e6> { ___wake_up_common + 0x52 }
8 Target : <0x000091d8> { ___wake_up_common + 0x44 }
Source : <0x000091ce> { ___wake_up_common + 0x3a }
9 Target : <0x000091c8> { ___wake_up_common + 0x34 }
Source : <0x0001cf64> { _autoremove_wake_function + 0x2c }
10 Target : <0x0001cf4a> { _autoremove_wake_function + 0x12 }
Source : <0x0000a1ac> { _try_to_wake_up + 0x3c }
11 Target : <0x0000a1a4> { _try_to_wake_up + 0x34 }
Source : <0x0000a196> { _try_to_wake_up + 0x26 }
12 Target : <0x0000a190> { _try_to_wake_up + 0x20 }
Source : <0x0000a1ba> { _try_to_wake_up + 0x4a }
13 Target : <0x0000a1b6> { _try_to_wake_up + 0x46 }
Source : <0x0000a23c> { _try_to_wake_up + 0xcc }
14 Target : <0x0000a23a> { _try_to_wake_up + 0xca }
Source : <0x0000a228> { _try_to_wake_up + 0xb8 }
15 Target : <0x0000a20a> { _try_to_wake_up + 0x9a }
Source : <0x0000944a> { ___activate_task + 0x2e }
Stack from 003c3c9c:
00000000 00005ab8 003c3ce0 00000013 031cac5c 00000013 0058aa90
00378140
031cac5c 00000000 03d90800 00310f74 0006809c 0037ddec 0000a1ff
0004580a
005958f8 80228020 80248023 80278026 84300000 84338432 84368434
00008437
80028000 80048003 80078006 80080000 800b800a 800e800c 0000800f
003d1814
00000000 0049b2b4 031cac5c 00000000 03d90808 003d4488 00000000
003c3e08
000cd9e2 03d90808 003d4488 005977d4 00000000 003c3d8c ffffffac
03d90808
Call Trace:
[<000ccd78>] _bus_for_each_drv+0x48/0x6c
[<000ccd70>] _bus_for_each_drv+0x40/0x6c
[<000cdae4>] ___device_attach+0x0/0x4
[<000081a4>] _bfin_gpio_set_wake+0x10/0x98
[<000cdba0>] _device_attach+0x94/0xb0
[<000cdae4>] ___device_attach+0x0/0x4
[<000ccce6>] _bus_attach_device+0x46/0x90
[<000cbd1a>] _device_add+0x3ae/0x4a0
[<000cbd20>] _device_add+0x3b4/0x4a0
[<00068136>] _sysfs_make_dirent+0x1e/0x38
[<000cf388>] _platform_device_add+0xe4/0x160
[<000cf4c4>] _platform_device_alloc+0x1c/0x68
[<000cf4e6>] _platform_device_alloc+0x3e/0x68
[<032c2506>] _init_module+0x46/0x78 [snd_ad1981]
[<00025ea8>] _sys_init_module+0xd54/0x10c8
[<00025ebe>] _sys_init_module+0xd6a/0x10c8
[<00025214>] _sys_init_module+0xc0/0x10c8
[<00033990>] _do_mmap_pgoff+0x608/0x750
[<00025154>] _sys_init_module+0x0/0x10c8
[<00008000>] _blackfin_dcache_flush_range+0x1c/0x28
Failed to request GPIO_19 for reset
soc-audio: probe of soc-audio failed with error -1
root:/>
--
--- Cliff Cai 2008-02-26 08:13:31
on BF548 ,ad1980 must use one gpio for cold reset,so it must be freed when the
module is removed
--- Vivi Li 2008-02-28 07:19:56
OK now. Close it. Thank you!
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found