diff options
Diffstat (limited to 'sound/soc/codecs/rt5677-spi.c')
| -rw-r--r-- | sound/soc/codecs/rt5677-spi.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 7bfade8b3d6e..8f3993a4c1cc 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c @@ -112,7 +112,7 @@ static int rt5677_spi_pcm_close(  		struct snd_soc_component *component,  		struct snd_pcm_substream *substream)  { -	struct snd_soc_pcm_runtime *rtd = substream->private_data; +	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);  	struct snd_soc_component *codec_component =  			snd_soc_rtdcom_lookup(rtd, "rt5677");  	struct rt5677_priv *rt5677 = @@ -158,7 +158,7 @@ static int rt5677_spi_prepare(  		struct snd_soc_component *component,  		struct snd_pcm_substream *substream)  { -	struct snd_soc_pcm_runtime *rtd = substream->private_data; +	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);  	struct snd_soc_component *rt5677_component =  			snd_soc_rtdcom_lookup(rtd, "rt5677");  	struct rt5677_priv *rt5677 = @@ -614,11 +614,13 @@ static int rt5677_spi_probe(struct spi_device *spi)  	return ret;  } +#ifdef CONFIG_ACPI  static const struct acpi_device_id rt5677_spi_acpi_id[] = {  	{ "RT5677AA", 0 },  	{ }  };  MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id); +#endif  static struct spi_driver rt5677_spi_driver = {  	.driver = { |