Skip to content
Permalink
Browse files

boomberry-dac: Adjust for ALSA API change

As of 4.4, snd_soc_limit_volume now takes a struct snd_soc_card *
rather than a struct snd_soc_codec *.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information...
pelwell authored and popcornmix committed Apr 15, 2016
1 parent e20cde6 commit 2555245a151416fb89297589eba541d1204ada55
Showing with 1 addition and 2 deletions.
  1. +1 −2 sound/soc/bcm/boomberry-dac.c
@@ -40,9 +40,8 @@ static int snd_rpi_boomberry_dac_init(struct snd_soc_pcm_runtime *rtd)
{
int ret;
struct snd_soc_card *card = rtd->card;
struct snd_soc_codec *codec = rtd->codec;

ret = snd_soc_limit_volume(codec, "Digital Playback Volume", 207);
ret = snd_soc_limit_volume(card, "Digital Playback Volume", 207);
if (ret < 0)
dev_warn(card->dev, "Failed to set volume limit: %d\n", ret);
}

0 comments on commit 2555245

Please sign in to comment.
You can’t perform that action at this time.