[Gta04-owner] gta04 audio patches
Dr. H. Nikolaus Schaller
hns at goldelico.com
Mon Sep 5 11:36:15 CEST 2011
Hi John,
Am 05.09.2011 um 00:11 schrieb John Ogness:
> On 2011-09-04, Dr. H. Nikolaus Schaller <hns at goldelico.com> wrote:
>> The drivers are called and initialized.
>> But there is still just one sound card in the ALSA device list.
>
> Are the codec devices being created? Let us take gta04-voice as an
> example. You need to create a platform device that uses the
> "gtm601_codec_audio" driver. This is typically done in:
>
> arch/arm/mach-omap2/board-omap3gta04.c
Ah, I see. No, there was no entry.
I have now added one (see last git push) and now the codec is being loaded.
But there is a kernel NULL pointer problem. Most likely by this line from
sound/soc/codec/gtm601.c:
static int gtm601_codec_probe(struct platform_device *pdev)
{
...
socdev->card->codec = codec;
it appears that there is no card assigned to the socdev. I think we have
a different symptom of the same problem.
BR,
Nikolaus
Log file:
[ 10.787048] Advanced Linux Sound Architecture Driver Version 1.0.21.
[ 10.794067] usbcore: registered new interface driver snd-usb-audio
[ 10.800689] twl4030_codec_probe
[ 10.884857] twl4030_codec_probe ok
[ 10.888549] gtm601_codec_probe
[ 10.891632] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[ 10.899810] pgd = c0004000
[ 10.902587] [00000004] *pgd=00000000
[ 10.906188] Internal error: Oops: 5 [#1] PREEMPT
[ 10.910827] last sysfs file:
[ 10.913818] Modules linked in:
[ 10.916900] CPU: 0 Not tainted (2.6.32 #315)
[ 10.921569] PC is at gtm601_codec_probe+0xf4/0x1bc
[ 10.926391] LR is at __mutex_init+0x2c/0x30
[ 10.930603] pc : [<c041a8ec>] lr : [<c008f07c>] psr: a0000013
[ 10.930603] sp : cf823e20 ip : cf823e10 fp : cf823e4c
[ 10.942138] r10: c041a7f8 r9 : c02e9dd8 r8 : 00000100
[ 10.947418] r7 : c069ddec r6 : 00000000 r5 : cfa7ad80 r4 : cf8002c0
[ 10.953979] r3 : 00000000 r2 : c06fbedc r1 : c0605df0 r0 : cfa7ad88
[ 10.960540] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 10.967895] Control: 10c5387d Table: 80004019 DAC: 00000017
[ 10.973663] Process swapper (pid: 1, stack limit = 0xcf8222f0)
[ 10.979553] Stack: (0xcf823e20 to 0xcf824000)
[ 10.983917] 3e20: cf823e3c cf823e30 c0669540 c0669540 c069ddec c069ddec 00000000 00000080
[ 10.992156] 3e40: cf823e5c cf823e50 c02eb830 c041a804 cf823e84 cf823e60 c02ea44c c02eb81c
[ 11.000396] 3e60: cf866d00 cf823e7c c069ddec c0669540 c069ddec c069ddec cf823ea4 cf823e88
[ 11.008636] 3e80: c02ea578 c02ea39c c05c8800 c04cc620 c0669540 c0669574 cf823ec4 cf823ea8
[ 11.016845] 3ea0: c02ea5f4 c02ea530 cf823ec4 00000000 cf823ec8 c02ea588 cf823eec cf823ec8
[ 11.025085] 3ec0: c02e97e4 c02ea594 cf8039f8 cf867e70 00000000 c069ddec cfa8aa40 c068aad0
[ 11.033325] 3ee0: cf823efc cf823ef0 c02ea240 c02e9798 cf823f34 cf823f00 c02e9ef0 c02ea22c
[ 11.041564] 3f00: c05c8800 c04cc620 c06a788c c069ddec c06a788c 00000000 00000000 00000000
[ 11.049774] 3f20: c002a870 00000000 cf823f4c cf823f38 c02eaa80 c02e9dbc c0031d60 c06a788c
[ 11.058013] 3f40: cf823f5c cf823f50 c02ebc9c c02ea9e0 cf823f6c cf823f60 c002a884 c02ebc5c
[ 11.066253] 3f60: cf823fb4 cf823f70 c003c310 c002a87c cf823fb4 cf823f80 c00ad204 00000001
[ 11.074493] 3f80: 0000015f c0147cbc c02ec2b4 c0031d60 c0031e1c 00000000 00000000 00000000
[ 11.082702] 3fa0: 00000000 00000000 cf823fcc cf823fb8 c00086ac c003c2b4 c06a7898 00000000
[ 11.090942] 3fc0: cf823fdc cf823fd0 c00086ec c0008698 cf823ff4 cf823fe0 c0008a90 c00086d0
[ 11.099182] 3fe0: 00000000 00000000 00000000 cf823ff8 c0072ad0 c0008a44 c0120283 01010410
[ 11.107391] Backtrace:
[ 11.109893] [<c041a7f8>] (gtm601_codec_probe+0x0/0x1bc) from [<c02eb830>] (platform_drv_probe+0x20/0x24)
[ 11.119445] [<c02eb810>] (platform_drv_probe+0x0/0x24) from [<c02ea44c>] (really_probe+0xbc/0x194)
[ 11.128448] [<c02ea390>] (really_probe+0x0/0x194) from [<c02ea578>] (driver_probe_device+0x54/0x64)
[ 11.137542] r7:c069ddec r6:c069ddec r5:c0669540 r4:c069ddec
More information about the Gta04-owner
mailing list