ASoC: tegra: use DAI's not card's dev for dev_err
[firefly-linux-kernel-4.4.55.git] / sound / soc / tegra / tegra20_spdif.c
index f9b57418bd088c42f83f7e4bfde699dd7407298d..f774a2d5e585169b60b9b8000a5c977bb21d27c5 100644 (file)
@@ -77,7 +77,7 @@ static int tegra20_spdif_hw_params(struct snd_pcm_substream *substream,
                                struct snd_pcm_hw_params *params,
                                struct snd_soc_dai *dai)
 {
-       struct device *dev = substream->pcm->card->dev;
+       struct device *dev = dai->dev;
        struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai);
        int ret, spdifclock;
 
@@ -181,6 +181,7 @@ static struct snd_soc_dai_driver tegra20_spdif_dai = {
        .name = DRV_NAME,
        .probe = tegra20_spdif_probe,
        .playback = {
+               .stream_name = "Playback",
                .channels_min = 2,
                .channels_max = 2,
                .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |