Re: Audio support on Mini6410 board [was Re: Hi again]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

thank you both for REing :)

I made some changes following your instructions and also looking at
the diff between a clean 2.6.38 kernel and FriendlyARM's 2.6.38
kernel.
This is my diff so far: http://pastie.org/5669444
Also, I created a new file for the mini6410 (it's pretty much a copy
of the smdk_wm9713.c in sound/soc/samsung/): http://pastie.org/5669453

So, booting this kernel (3.7 from Sylwester's media/testing branch,
which is just 3.7 with a patch for the OV9650)
gives me this output:

samsung-ac97 samsung-ac97: cfg_gpio callback not provided!
samsung-ac97: probe of samsung-ac97 failed with error -22
soc-audio soc-audio: ASoC machine MINI6410 should use snd_soc_register_card()
soc-audio soc-audio: CPU DAI samsung-ac97 not registered
platform soc-audio: Driver soc-audio requests probe deferral
soc-audio: probe of soc-audio failed with error -22
ALSA device list:
  No soundcards found.

If I uncomment the line 56 in my diff (
//s3c64xx_ac97_setup_gpio(S3C64XX_AC97_GPD); ) I get
errors about the function not being defined. I do know that it's in
arch/arm/mach-s3c64xx/dev-audio.c
and include/linux/platform_data/asoc-s3c.h but I can't see any other
board-specific code using it.

Also S3C64XX_AC97_GPD not being defined, (but present in both files).
What include am I missing? I mean, of course I could include
asoc-s3c.h, but that's not how other boards are
doing it and they do have audio support. How is that done?

@Andrey One more thing, what do you mean by filter all writes to reg 0x0?
Literally something like:

void s3c_ac97_write(*ac97, reg, val){
  if(reg == 0x0)
    return;

  ...code here..
  ...
}

If so, yeah, it looks kind of ugly, but I'll try :)   (as soon as I
can get the "include" problem fixed)

Regards!

--
alexandernst
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux