projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca4d50
)
iqaudio-dac: Compile fix - untested
author
popcornmix
<popcornmix@gmail.com>
Mon, 25 Jul 2016 16:06:50 +0000
(17:06 +0100)
committer
Raspbian kernel package updater
<root@raspbian.org>
Sun, 8 Oct 2017 00:59:52 +0000
(
00:59
+0000)
sound/soc/bcm/iqaudio-dac.c
patch
|
blob
|
history
diff --git
a/sound/soc/bcm/iqaudio-dac.c
b/sound/soc/bcm/iqaudio-dac.c
index 4e8e6dec14bcf4a1ff286c43742d4097249d6777..aa15bc4b49ca95edec905fddd8fd0a6d839ca627 100644
(file)
--- a/
sound/soc/bcm/iqaudio-dac.c
+++ b/
sound/soc/bcm/iqaudio-dac.c
@@
-76,7
+76,11
@@
static void snd_rpi_iqaudio_gpio_unmute(struct snd_soc_card *card)
static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card,
struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level)
{
- struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai;
+ struct snd_soc_pcm_runtime *rtd;
+ struct snd_soc_dai *codec_dai;
+
+ rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name);
+ codec_dai = rtd->codec_dai;
if (dapm->dev != codec_dai->dev)
return 0;