[#5247] sound/soc/blackfin/bf5xx-{ad1938,tdm}.c build fail after linux-2.6.30 upgrade

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5247] sound/soc/blackfin/bf5xx-{ad1938,tdm}.c build fail after linux-2.6.30 upgrade

Submitted By: Mike Frysinger

Open Date

2009-06-11 21:05:14     Close Date

2009-06-29 15:19:04

Priority:

Medium     Assignee:

Barry Song

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

trunk

App binary format:

N/A     

Summary: sound/soc/blackfin/bf5xx-{ad1938,tdm}.c build fail after linux-2.6.30 upgrade

Details:

 

  CC      sound/soc/blackfin/bf5xx-ad1938.o

sound/soc/blackfin/bf5xx-ad1938.c: In function ‘bf5xx_ad1938_hw_params’:

sound/soc/blackfin/bf5xx-ad1938.c:81: error: ‘struct snd_soc_dai’ has no member named ‘dai_ops’

sound/soc/blackfin/bf5xx-ad1938.c: At top level:

sound/soc/blackfin/bf5xx-ad1938.c:108: error: variable ‘bf5xx_ad1938’ has initializer but incomplete type

sound/soc/blackfin/bf5xx-ad1938.c:109: error: unknown field ‘name’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:109: warning: excess elements in struct initializer

sound/soc/blackfin/bf5xx-ad1938.c:109: warning: (near initialization for ‘bf5xx_ad1938’)

sound/soc/blackfin/bf5xx-ad1938.c:110: error: unknown field ‘probe’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:110: warning: excess elements in struct initializer

sound/soc/blackfin/bf5xx-ad1938.c:110: warning: (near initialization for ‘bf5xx_ad1938’)

sound/soc/blackfin/bf5xx-ad1938.c:111: error: unknown field ‘dai_link’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:111: warning: excess elements in struct initializer

sound/soc/blackfin/bf5xx-ad1938.c:111: warning: (near initialization for ‘bf5xx_ad1938’)

sound/soc/blackfin/bf5xx-ad1938.c:112: error: unknown field ‘num_links’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:112: warning: excess elements in struct initializer

sound/soc/blackfin/bf5xx-ad1938.c:112: warning: (near initialization for ‘bf5xx_ad1938’)

sound/soc/blackfin/bf5xx-ad1938.c:116: error: unknown field ‘machine’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:116: warning: initialization from incompatible pointer type

sound/soc/blackfin/bf5xx-ad1938.c:117: error: unknown field ‘platform’ specified in initializer

sound/soc/blackfin/bf5xx-ad1938.c:117: warning: initialization from incompatible pointer type

make[1]: *** [sound/soc/blackfin/bf5xx-ad1938.o] Error 1

 

 

 

  CC      sound/soc/blackfin/bf5xx-tdm.o

sound/soc/blackfin/bf5xx-tdm.c:258: error: unknown field ‘type’ specified in initializer

sound/soc/blackfin/bf5xx-tdm.c:258: error: ‘SND_SOC_DAI_PCM’ undeclared here (not in a function)

sound/soc/blackfin/bf5xx-tdm.c:273: warning: braces around scalar initializer

sound/soc/blackfin/bf5xx-tdm.c:273: warning: (near initialization for ‘bf5xx_tdm_dai.ops’)

sound/soc/blackfin/bf5xx-tdm.c:274: error: field name not in record or union initializer

sound/soc/blackfin/bf5xx-tdm.c:274: error: (near initialization for ‘bf5xx_tdm_dai.ops’)

sound/soc/blackfin/bf5xx-tdm.c:274: warning: initialization from incompatible pointer type

sound/soc/blackfin/bf5xx-tdm.c:275: error: unknown field ‘dai_ops’ specified in initializer

sound/soc/blackfin/bf5xx-tdm.c:276: error: unknown field ‘set_fmt’ specified in initializer

sound/soc/blackfin/bf5xx-tdm.c:276: warning: initialization from incompatible pointer type

make[1]: *** [sound/soc/blackfin/bf5xx-tdm.o] Error 1

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-11 21:06:11

and the codec:

 

  CC      sound/soc/codecs/ad1938.o

sound/soc/codecs/ad1938.c: In function ‘ad1938_pcm_prepare’:

sound/soc/codecs/ad1938.c:170: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c: In function ‘ad1938_pcm_shutdown’:

sound/soc/codecs/ad1938.c:192: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c: In function ‘ad1938_spi_probe’:

sound/soc/codecs/ad1938.c:274: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c: At top level:

sound/soc/codecs/ad1938.c:319: warning: braces around scalar initializer

sound/soc/codecs/ad1938.c:319: warning: (near initialization for

‘ad1938_dai.ops’)

sound/soc/codecs/ad1938.c:320: error: field name not in record or union

initializer

sound/soc/codecs/ad1938.c:320: error: (near initialization for

‘ad1938_dai.ops’)

sound/soc/codecs/ad1938.c:320: warning: initialization from incompatible

pointer type

sound/soc/codecs/ad1938.c:321: error: field name not in record or union

initializer

sound/soc/codecs/ad1938.c:321: error: (near initialization for

‘ad1938_dai.ops’)

sound/soc/codecs/ad1938.c:321: warning: excess elements in scalar initializer

sound/soc/codecs/ad1938.c:321: warning: (near initialization for

‘ad1938_dai.ops’)

sound/soc/codecs/ad1938.c:323: error: unknown field ‘dai_ops’ specified in

initializer

sound/soc/codecs/ad1938.c:324: error: unknown field ‘digital_mute’

specified in initializer

sound/soc/codecs/ad1938.c:324: warning: initialization from incompatible

pointer type

sound/soc/codecs/ad1938.c:325: error: unknown field ‘set_pll’ specified in

initializer

sound/soc/codecs/ad1938.c:325: warning: initialization makes integer from

pointer without a cast

sound/soc/codecs/ad1938.c:325: error: initializer element is not computable at

load time

sound/soc/codecs/ad1938.c:325: error: (near initialization for

‘ad1938_dai.capture.formats’)

sound/soc/codecs/ad1938.c: In function ‘ad1938_soc_probe’:

sound/soc/codecs/ad1938.c:347: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c:367: error: implicit declaration of function

‘snd_soc_register_card’

sound/soc/codecs/ad1938.c:395: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c:396: error: ‘struct snd_soc_device’ has no member

named ‘codec’

sound/soc/codecs/ad1938.c: In function ‘ad1938_soc_remove’:

sound/soc/codecs/ad1938.c:403: error: ‘struct snd_soc_device’ has no member

named ‘codec’

make[1]: *** [sound/soc/codecs/ad1938.o] Error 1

 

--- Barry Song                                               2009-06-11 23:28:09

Some data structs are changed in mainline. I will update according to the

mainline and send patch for review.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes