kernel: update kernel 4.9 to version 4.9.91
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.9 / 950-0071-iqaudio-dac-Compile-fix-untested.patch
1 From 711f7413d72af6328a3958eecd400bd8911af211 Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Mon, 25 Jul 2016 17:06:50 +0100
4 Subject: [PATCH] iqaudio-dac: Compile fix - untested
5
6 ---
7 sound/soc/bcm/iqaudio-dac.c | 6 +++++-
8 1 file changed, 5 insertions(+), 1 deletion(-)
9
10 --- a/sound/soc/bcm/iqaudio-dac.c
11 +++ b/sound/soc/bcm/iqaudio-dac.c
12 @@ -76,7 +76,11 @@ static void snd_rpi_iqaudio_gpio_unmute(
13 static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card,
14 struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level)
15 {
16 - struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai;
17 + struct snd_soc_pcm_runtime *rtd;
18 + struct snd_soc_dai *codec_dai;
19 +
20 + rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name);
21 + codec_dai = rtd->codec_dai;
22
23 if (dapm->dev != codec_dai->dev)
24 return 0;