This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Audio TVP5158 for DM365 (DVSDK4)

Other Parts Discussed in Thread: TVP5158

Hello

I insert driver from http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/118704.aspx info DVSDK4 kernel - video work fine. But the audio driver in this package is  connected to the DM6467 only. I edit davinchi_evm.c for DM365 by analogy with the DM6467, but when booting the kernel can not find ALSA card. Who ever works with audio TVP5158 DM365? Help please.

  • Hi,

    I also do this, and encountered the same problem with you.

    Do you have solve this program?

    Hope to get some help from you。

    Thank you!

  • Hi,

    I was able to make it work. But there is a problem. Works sound OR video. Because both drivers use the same address I2C. Need to rewrite some of the drivers that they were working through a single device I2C

  • Hi,

    I also met  such a problem. I successfully loaded on the drive, but when running the application encountered a problem.

    I2C: ERROR: Couldn't attach I2C_NG (address=5d)

    Do you have the solution or advice to this problem?

  • Hi ,

    I'm working ti DM8148 and i want to port the tvp5158_audio.c to kernel 2.6.37 ..

    but if have problem with the following :

    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_read_reg_cache':
    sound/soc/codecs/tvp5158_audio.c:80: warning: ISO C90 forbids mixed declarations and code
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_write_reg_cache':
    sound/soc/codecs/tvp5158_audio.c:93: warning: ISO C90 forbids mixed declarations and code
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_mute_channel':
    sound/soc/codecs/tvp5158_audio.c:133: warning: unused variable 'i'
    sound/soc/codecs/tvp5158_audio.c:132: warning: unused variable 'val'
    sound/soc/codecs/tvp5158_audio.c: In function 'snd_soc_tvp5158_put_volsw':
    sound/soc/codecs/tvp5158_audio.c:183: warning: suggest parentheses around comparison in operand of |
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_hw_params':
    sound/soc/codecs/tvp5158_audio.c:251: error: 'struct snd_soc_pcm_runtime' has no member named 'socdev'
    sound/soc/codecs/tvp5158_audio.c:252: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c:259: warning: unused variable 'channels'
    sound/soc/codecs/tvp5158_audio.c:254: warning: unused variable 'ret'
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_pcm_prepare':
    sound/soc/codecs/tvp5158_audio.c:302: error: 'struct snd_soc_pcm_runtime' has no member named 'socdev'
    sound/soc/codecs/tvp5158_audio.c:303: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c:303: warning: unused variable 'codec'
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_shutdown':
    sound/soc/codecs/tvp5158_audio.c:312: error: 'struct snd_soc_pcm_runtime' has no member named 'socdev'
    sound/soc/codecs/tvp5158_audio.c:313: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_set_dai_fmt':
    sound/soc/codecs/tvp5158_audio.c:347: warning: unused variable 'iface_reg'
    sound/soc/codecs/tvp5158_audio.c:346: warning: unused variable 'codec'
    sound/soc/codecs/tvp5158_audio.c: At top level:
    sound/soc/codecs/tvp5158_audio.c:380: error: unknown field 'capture' specified in initializer
    sound/soc/codecs/tvp5158_audio.c:380: warning: braces around scalar initializer
    sound/soc/codecs/tvp5158_audio.c:380: warning: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:381: error: field name not in record or union initializer
    sound/soc/codecs/tvp5158_audio.c:381: error: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:381: warning: initialization makes integer from pointer without a cast
    sound/soc/codecs/tvp5158_audio.c:382: error: field name not in record or union initializer
    sound/soc/codecs/tvp5158_audio.c:382: error: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:382: warning: excess elements in scalar initializer
    sound/soc/codecs/tvp5158_audio.c:382: warning: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:383: error: field name not in record or union initializer
    sound/soc/codecs/tvp5158_audio.c:383: error: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:383: warning: excess elements in scalar initializer
    sound/soc/codecs/tvp5158_audio.c:383: warning: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:384: error: field name not in record or union initializer
    sound/soc/codecs/tvp5158_audio.c:384: error: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:384: warning: excess elements in scalar initializer
    sound/soc/codecs/tvp5158_audio.c:384: warning: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:385: error: field name not in record or union initializer
    sound/soc/codecs/tvp5158_audio.c:385: error: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:385: warning: excess elements in scalar initializer
    sound/soc/codecs/tvp5158_audio.c:385: warning: (near initialization for 'tvp5158_audio_dai.id')
    sound/soc/codecs/tvp5158_audio.c:387: error: unknown field 'ops' specified in initializer
    sound/soc/codecs/tvp5158_audio.c:387: warning: initialization from incompatible pointer type
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_init':
    sound/soc/codecs/tvp5158_audio.c:398: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c:405: error: 'struct snd_soc_codec' has no member named 'owner'
    sound/soc/codecs/tvp5158_audio.c:406: error: 'struct snd_soc_codec' has no member named 'read'
    sound/soc/codecs/tvp5158_audio.c:407: error: 'struct snd_soc_codec' has no member named 'write'
    sound/soc/codecs/tvp5158_audio.c:408: error: 'struct snd_soc_codec' has no member named 'dai'
    sound/soc/codecs/tvp5158_audio.c:410: error: 'struct snd_soc_codec' has no member named 'reg_cache_size'
    sound/soc/codecs/tvp5158_audio.c:419: error: implicit declaration of function 'snd_soc_new_pcms'
    sound/soc/codecs/tvp5158_audio.c:430: error: implicit declaration of function 'snd_soc_init_card'
    sound/soc/codecs/tvp5158_audio.c:439: error: implicit declaration of function 'snd_soc_free_pcms'
    sound/soc/codecs/tvp5158_audio.c:440: warning: passing argument 1 of 'snd_soc_dapm_free' from incompatible pointer type
    sound/soc/codecs/tvp5158_audio.c:442: error: implicit declaration of function 'kfree'
    sound/soc/codecs/tvp5158_audio.c:401: warning: unused variable 'data'
    sound/soc/codecs/tvp5158_audio.c:400: warning: unused variable 'reg'
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_codec_probe':
    sound/soc/codecs/tvp5158_audio.c:456: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_probe':
    sound/soc/codecs/tvp5158_audio.c:511: error: implicit declaration of function 'kzalloc'
    sound/soc/codecs/tvp5158_audio.c:511: warning: assignment makes pointer from integer without a cast
    sound/soc/codecs/tvp5158_audio.c:515: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_remove':
    sound/soc/codecs/tvp5158_audio.c:536: error: dereferencing pointer to incomplete type
    sound/soc/codecs/tvp5158_audio.c:540: warning: passing argument 1 of 'snd_soc_dapm_free' from incompatible pointer type
    sound/soc/codecs/tvp5158_audio.c: At top level:
    sound/soc/codecs/tvp5158_audio.c:550: error: variable 'soc_codec_dev_tvp5158_audio' has initializer but incomplete type
    sound/soc/codecs/tvp5158_audio.c:551: error: unknown field 'probe' specified in initializer
    sound/soc/codecs/tvp5158_audio.c:551: warning: excess elements in struct initializer
    sound/soc/codecs/tvp5158_audio.c:551: warning: (near initialization for 'soc_codec_dev_tvp5158_audio')
    sound/soc/codecs/tvp5158_audio.c:552: error: unknown field 'remove' specified in initializer
    sound/soc/codecs/tvp5158_audio.c:552: warning: excess elements in struct initializer
    sound/soc/codecs/tvp5158_audio.c:552: warning: (near initialization for 'soc_codec_dev_tvp5158_audio')
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_modinit':
    sound/soc/codecs/tvp5158_audio.c:558: warning: passing argument 1 of 'snd_soc_register_dai' from incompatible pointer type
    sound/soc/codecs/tvp5158_audio.c:558: error: too few arguments to function 'snd_soc_register_dai'
    sound/soc/codecs/tvp5158_audio.c: In function 'tvp5158_audio_exit':
    sound/soc/codecs/tvp5158_audio.c:564: warning: passing argument 1 of 'snd_soc_unregister_dai' from incompatible pointer type
    make[3]: *** [sound/soc/codecs/tvp5158_audio.o] Error 1
    make[2]: *** [sound/soc/codecs] Error 2
    make[1]: *** [sound/soc] Error 2
    make: *** [sound] Error 2

    please , if somebody have the audio driver for tvp5158 using kernel 2.6.37 

    i would like to have it too .

    my e-mail is : avisdb@gmail.com

    thank you ,

  • Hi

           Problem is ALSA version changes. Need to migrate the source to new ALSA version.

           But me too facing same issue and i'm trying to resolve it, have you complete it.?

    Thanks

    Sangly