Re: [PATCH v7 5/6] drm/i2c: tda998x: Register ASoC hdmi-codec and add audio DT binding

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

 




Hi Jyri,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.5 next-20160317]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Jyri-Sarha/Implement-generic-ASoC-HDMI-codec-and-use-it-in-tda998x/20160317-180926
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-x019-201611 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i2c/tda998x_drv.c: In function 'tda998x_configure_audio':
>> drivers/gpu/drm/i2c/tda998x_drv.c:720:6: warning: unused variable 'ret' [-Wunused-variable]
     int ret;
         ^

vim +/ret +720 drivers/gpu/drm/i2c/tda998x_drv.c

   704		if (on) {
   705			reg_set(priv, REG_SOFTRESET, SOFTRESET_AUDIO);
   706			reg_clear(priv, REG_SOFTRESET, SOFTRESET_AUDIO);
   707			reg_set(priv, REG_AIP_CNTRL_0, AIP_CNTRL_0_RST_FIFO);
   708		} else {
   709			reg_clear(priv, REG_AIP_CNTRL_0, AIP_CNTRL_0_RST_FIFO);
   710		}
   711	}
   712	
   713	static int
   714	tda998x_configure_audio(struct tda998x_priv *priv,
   715				struct tda998x_audio_params *params,
   716				unsigned mode_clock)
   717	{
   718		u8 buf[6], clksel_aip, clksel_fs, cts_n, adiv;
   719		u32 n;
 > 720		int ret;
   721	
   722		/* Enable audio ports */
   723		reg_write(priv, REG_ENA_AP, params->config);
   724	
   725		/* Set audio input source */
   726		switch (params->format) {
   727		case AFMT_SPDIF:
   728			reg_write(priv, REG_ENA_ACLK, 0);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux