[RFC PATCH 04/16] ASoC: Intel: sof-pcm512x: detect Hifiberry DAC+ PRO
    Andy Shevchenko 
    andriy.shevchenko at linux.intel.com
       
    Tue Apr 14 19:20:02 CEST 2020
    
    
  
On Thu, Apr 09, 2020 at 02:58:29PM -0500, Pierre-Louis Bossart wrote:
> Try to detect HifiBerry 44.1 and 48kHz oscillators on codec init
...
> +	ctx->sclk = devm_clk_get(rtd->card->dev, "sclk");
Is this in the bindings?
> +	if (IS_ERR(ctx->sclk)) {
> +		dev_info(dev, "Could not get SCLK, will operate in SOC master mode\n");
Sounds like devm_clk_get_optional().
> +		goto skip_dacpro;
> +	}
-- 
With Best Regards,
Andy Shevchenko
    
    
More information about the Alsa-devel
mailing list