Skip to content

Commit

Permalink
[ALSA] ice1724 - call snd_ak4114_build() in juli
Browse files Browse the repository at this point in the history
Call snd_ak4114_build() in juli support code to build proper mixer
elements for SPDIF inputs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 11, 2007
1 parent c4116ae commit fdd4bb4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sound/pci/ice1712/juli.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,16 @@ static struct snd_akm4xxx akm_juli_dac __devinitdata = {

static int __devinit juli_add_controls(struct snd_ice1712 *ice)
{
return snd_ice1712_akm4xxx_build_controls(ice);
int err;
err = snd_ice1712_akm4xxx_build_controls(ice);
if (err < 0)
return err;
/* only capture SPDIF over AK4114 */
err = snd_ak4114_build(ice->spec.juli.ak4114, NULL,
ice->pcm_pro->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
if (err < 0)
return err;
return 0;
}

/*
Expand Down

0 comments on commit fdd4bb4

Please sign in to comment.