Quantcast
Channel: xda-developers - Galaxy Tab 10.1 Android Development
Viewing all articles
Browse latest Browse all 87

Stock Kernel with Voodoo Sound, No USB Functions, Available if Demand

$
0
0
Kernel Compiled and working: see http://forum.xda-developers.com/show....php?t=1833136

I tried to compile the new 3.1 kernel with voodoo sound in it. I specifically copied and replaced
  • Kconfig.voodoo
  • Makefile
  • wm8994_p3
  • wm8994_samsung.c
  • wm8994_voodoo.c
  • wm8994_voodoo.h
in the directory (source root)/sound/soc/codecs with the ones found in the pershoot git. I also swapped the file (source root)/sound/soc/Kconfig and commented out the line "#source "sound/soc/s3c24xx/Kconfig". When I tried to compile it, I get these compile errors

Code:

CC      sound/soc/codecs/wm8994_samsung.o
sound/soc/codecs/wm8994_samsung.c: In function 'wm899x_outpga_put_volsw_vu':
sound/soc/codecs/wm8994_samsung.c:247:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voip_call':
sound/soc/codecs/wm8994_samsung.c:320:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voip_call':
sound/soc/codecs/wm8994_samsung.c:331:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_loopback_path':
sound/soc/codecs/wm8994_samsung.c:343:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_loopback_path':
sound/soc/codecs/wm8994_samsung.c:354:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:356:6: warning: unused variable 'val'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:400:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:412:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_mic_path':
sound/soc/codecs/wm8994_samsung.c:427:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_mic_path':
sound/soc/codecs/wm8994_samsung.c:438:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_path':
sound/soc/codecs/wm8994_samsung.c:479:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_path':
sound/soc/codecs/wm8994_samsung.c:490:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voice_path':
sound/soc/codecs/wm8994_samsung.c:576:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voice_path':
sound/soc/codecs/wm8994_samsung.c:587:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_input_source':
sound/soc/codecs/wm8994_samsung.c:642:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_input_source':
sound/soc/codecs/wm8994_samsung.c:653:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_headset_analog_vol':
sound/soc/codecs/wm8994_samsung.c:676:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:722:43: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:735:6: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:736:34: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:676:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_controls':
sound/soc/codecs/wm8994_samsung.c:848:13: error: too few arguments to function 'snd_soc_cnew'
include/sound/soc.h:366:22: note: declared here
sound/soc/codecs/wm8994_samsung.c:848:13: warning: passing argument 1 of 'snd_ctl_add' from incompatible pointer type
include/sound/control.h:114:5: note: expected 'struct snd_card *' but argument is of type 'struct snd_soc_card *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_widgets':
sound/soc/codecs/wm8994_samsung.c:863:4: warning: passing argument 1 of 'snd_soc_dapm_new_controls' from incompatible pointer type
include/sound/soc-dapm.h:348:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:865:44: warning: passing argument 1 of 'snd_soc_dapm_add_routes' from incompatible pointer type
include/sound/soc-dapm.h:355:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:867:2: warning: passing argument 1 of 'snd_soc_dapm_new_widgets' from incompatible pointer type
include/sound/soc-dapm.h:353:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c: In function 'configure_clock':
sound/soc/codecs/wm8994_samsung.c:873:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_bias_level':
sound/soc/codecs/wm8994_samsung.c:1050:12: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c:1090:7: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_sysclk':
sound/soc/codecs/wm8994_samsung.c:1099:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_dai_fmt':
sound/soc/codecs/wm8994_samsung.c:1123:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_hw_params':
sound/soc/codecs/wm8994_samsung.c:1225:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_startup':
sound/soc/codecs/wm8994_samsung.c:1385:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1410:13: error: static declaration of 'wm8994_shutdown' follows non-static declaration
sound/soc/codecs/wm8994_samsung.h:249:6: note: previous declaration of 'wm8994_shutdown' was here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_shutdown':
sound/soc/codecs/wm8994_samsung.c:1414:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1522:2: error: unknown field 'playback' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1523:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: warning: initialization makes integer from pointer without a cast
sound/soc/codecs/wm8994_samsung.c:1524:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1529:2: error: unknown field 'capture' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1530:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:1531:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1537:2: error: unknown field 'ops' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3164:5: warning: function declaration isn't a prototype
sound/soc/codecs/wm8994_samsung.c: In function 'Is_call_active':
sound/soc/codecs/wm8994_samsung.c:3168:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_init':
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_i2c_probe':
sound/soc/codecs/wm8994_samsung.c:3263:45: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3275:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3326:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_probe':
sound/soc/codecs/wm8994_samsung.c:3390:16: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3392:23: error: 'struct snd_soc_codec' has no member named 'dapm_widgets'
sound/soc/codecs/wm8994_samsung.c:3393:23: error: 'struct snd_soc_codec' has no member named 'dapm_paths'
sound/soc/codecs/wm8994_samsung.c:3395:7: error: 'struct snd_soc_codec' has no member named 'owner'
sound/soc/codecs/wm8994_samsung.c:3398:27: warning: assignment from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3399:7: error: 'struct snd_soc_codec' has no member named 'reg_cache_size'
sound/soc/codecs/wm8994_samsung.c:3400:7: error: 'struct snd_soc_codec' has no member named 'set_bias_level'
sound/soc/codecs/wm8994_samsung.c:3401:7: error: 'struct snd_soc_codec' has no member named 'dai'
sound/soc/codecs/wm8994_samsung.c:3403:8: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3406:2: error: implicit declaration of function 'snd_soc_new_pcms'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_remove':
sound/soc/codecs/wm8994_samsung.c:3426:2: error: implicit declaration of function 'snd_soc_free_pcms'
sound/soc/codecs/wm8994_samsung.c:3427:2: warning: passing argument 1 of 'snd_soc_dapm_free' from incompatible pointer type
include/sound/soc-dapm.h:354:6: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_device *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_reset_analog_vol_work':
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: type defaults to 'int' in declaration of '__mptr'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3443:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3443:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_suspend':
sound/soc/codecs/wm8994_samsung.c:3466:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_resume':
sound/soc/codecs/wm8994_samsung.c:3489:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:3508:8: error: variable 'soc_codec_dev_wm8994' has initializer but incomplete type
sound/soc/codecs/wm8994_samsung.c:3509:2: error: unknown field 'probe' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3510:2: error: unknown field 'remove' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3512:2: error: unknown field 'suspend' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3513:2: error: unknown field 'resume' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_modinit':
sound/soc/codecs/wm8994_samsung.c:3520:2: warning: passing argument 1 of 'snd_soc_register_dai' from incompatible pointer type
include/sound/soc-dai.h:97:5: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c:3520:2: error: too few arguments to function 'snd_soc_register_dai'
include/sound/soc-dai.h:97:5: note: declared here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_exit':
sound/soc/codecs/wm8994_samsung.c:3531:2: warning: passing argument 1 of 'snd_soc_unregister_dai' from incompatible pointer type
include/sound/soc-dai.h:99:6: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1034:12: warning: 'wm8994_set_bias_level' defined but not used
sound/soc/codecs/wm8994_samsung.c:1354:12: warning: 'wm8994_digital_mute' defined but not used
make[3]: *** [sound/soc/codecs/wm8994_samsung.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
[me@myLaptop p75102]$

Any ideas? Also, under menuconfig I enabled p3 sound and disabled p4 sound to get the voodoo option.

Viewing all articles
Browse latest Browse all 87

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>