lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 0477/1039] ASoC: SOF: Intel: fix build issue related to CODEC_PROBE_ENTRIES
    Date
    From: Kai Vehmanen <kai.vehmanen@linux.intel.com>

    [ Upstream commit 9a83dfcc5ae8230fbf12b63e281d5bb8450ec0e7 ]

    Fix following error:
    sound/soc/sof/intel/hda-codec.c:132:35: error: use of undeclared identifier 'CODEC_PROBE_RETRIES'

    Found with config: i386-randconfig-r033-20211202
    (https://download.01.org/0day-ci/archive/20211203/202112031943.Twg19fWT-lkp@intel.com/config)

    Fixes: 046aede2f847 ("ASoC: SOF: Intel: Retry codec probing if it fails")
    Reported-by: kernel test robot <lkp@intel.com>
    Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
    Link: https://lore.kernel.org/r/20211203154721.923496-1-kai.vehmanen@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    sound/soc/sof/intel/hda-codec.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c
    index 13cd96e6724a4..2f3f4a733d9e6 100644
    --- a/sound/soc/sof/intel/hda-codec.c
    +++ b/sound/soc/sof/intel/hda-codec.c
    @@ -20,9 +20,10 @@
    #include "../../codecs/hdac_hda.h"
    #endif /* CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC */

    +#define CODEC_PROBE_RETRIES 3
    +
    #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
    #define IDISP_VID_INTEL 0x80860000
    -#define CODEC_PROBE_RETRIES 3

    /* load the legacy HDA codec driver */
    static int request_codec_module(struct hda_codec *codec)
    --
    2.34.1


    \
     
     \ /
      Last update: 2022-01-25 01:11    [W:5.066 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site