1. 08 10月, 2014 1 次提交
    • G
      ASoC: simple-card: Initialize headphone and mic GPIO numbers · 2dbab978
      Geert Uytterhoeven 提交于
      The uninitialized default of 0 for gpio_hp_det and gpio_mic_det doesn't
      play well with asm-generic's gpio_is_valid():
      
      	static inline bool gpio_is_valid(int number)
      	{
      		return number >= 0 && number < ARCH_NR_GPIOS;
      	}
      
      Hence on r8a7740/armadillo-legacy:
      
      	sh-mobile-hdmi sh-mobile-hdmi: SH Mobile HDMI Audio Codec
      	sh-mobile-hdmi sh-mobile-hdmi: ASoC: DAPM unknown pin Headphones
      	sh-mobile-hdmi sh-mobile-hdmi: ASoC: DAPM unknown pin Mic Jack
      
      After that the kernel log is spammed ca. 7 times per second with:
      
      	sh-mobile-hdmi sh-mobile-hdmi: ASoC: DAPM unknown pin Headphones
      
      Initialize the GPIO numbers with a negative number (-ENOENT) to fix this.
      
      Fixes: 3fe24032 ("ASoC: simple-card: Add mic and hp detect gpios.")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      2dbab978
  2. 06 10月, 2014 17 次提交
  3. 05 10月, 2014 3 次提交
  4. 04 10月, 2014 8 次提交
  5. 03 10月, 2014 11 次提交