brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0244-boomberry-dac-Adjust-for-ALSA-API-change.patch
1 From 1fc5799ca5f6f2cc31f5b076d780e111de011cc3 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 15 Apr 2016 10:48:39 +0100
4 Subject: [PATCH 244/381] boomberry-dac: Adjust for ALSA API change
5
6 As of 4.4, snd_soc_limit_volume now takes a struct snd_soc_card *
7 rather than a struct snd_soc_codec *.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 sound/soc/bcm/boomberry-dac.c | 3 +--
12 1 file changed, 1 insertion(+), 2 deletions(-)
13
14 --- a/sound/soc/bcm/boomberry-dac.c
15 +++ b/sound/soc/bcm/boomberry-dac.c
16 @@ -40,9 +40,8 @@ static int snd_rpi_boomberry_dac_init(st
17 {
18 int ret;
19 struct snd_soc_card *card = rtd->card;
20 - struct snd_soc_codec *codec = rtd->codec;
21
22 - ret = snd_soc_limit_volume(codec, "Digital Playback Volume", 207);
23 + ret = snd_soc_limit_volume(card, "Digital Playback Volume", 207);
24 if (ret < 0)
25 dev_warn(card->dev, "Failed to set volume limit: %d\n", ret);
26 }