imx-sgtl5000.c (1ac731c529cd4d6adbce134754b51ff7d822b145) | imx-sgtl5000.c (14ec63f678e8beaaa1005ccae6c112bf672ba2b3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5 6#include <linux/module.h> 7#include <linux/of.h> 8#include <linux/of_platform.h> --- 16 unchanged lines hidden (view full) --- 25}; 26 27static int imx_sgtl5000_dai_init(struct snd_soc_pcm_runtime *rtd) 28{ 29 struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(rtd->card); 30 struct device *dev = rtd->card->dev; 31 int ret; 32 | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5 6#include <linux/module.h> 7#include <linux/of.h> 8#include <linux/of_platform.h> --- 16 unchanged lines hidden (view full) --- 25}; 26 27static int imx_sgtl5000_dai_init(struct snd_soc_pcm_runtime *rtd) 28{ 29 struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(rtd->card); 30 struct device *dev = rtd->card->dev; 31 int ret; 32 |
33 ret = snd_soc_dai_set_sysclk(asoc_rtd_to_codec(rtd, 0), SGTL5000_SYSCLK, | 33 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_codec(rtd, 0), SGTL5000_SYSCLK, |
34 data->clk_frequency, SND_SOC_CLOCK_IN); 35 if (ret) { 36 dev_err(dev, "could not set codec driver clock params\n"); 37 return ret; 38 } 39 40 return 0; 41} --- 183 unchanged lines hidden --- | 34 data->clk_frequency, SND_SOC_CLOCK_IN); 35 if (ret) { 36 dev_err(dev, "could not set codec driver clock params\n"); 37 return ret; 38 } 39 40 return 0; 41} --- 183 unchanged lines hidden --- |