summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_via.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-18 10:58:49 +0200
committerTakashi Iwai <tiwai@suse.de>2011-06-20 16:24:03 +0200
commit57307bf24ac78d135c066520234c01bda36ec39a (patch)
tree7940cc799e7ff5a5e080f2606b885d4c784ffbef /sound/pci/hda/patch_via.c
parentf4a7828bc1e85b8de03b628da1cef4e862e0623b (diff)
downloadblackbird-op-linux-57307bf24ac78d135c066520234c01bda36ec39a.tar.gz
blackbird-op-linux-57307bf24ac78d135c066520234c01bda36ec39a.zip
ALSA: hda - Don't create secondary substream when no independent-hp is used
For VIA codecs, we shouldn't create a substream for independent HP mode, when no individual HP DAC is found. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r--sound/pci/hda/patch_via.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index 77ecc778d313..78e679e76ca8 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1557,6 +1557,8 @@ static int via_build_pcms(struct hda_codec *codec)
*(spec->stream_analog_playback);
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid =
spec->multiout.dac_nids[0];
+ if (!spec->multiout.hp_nid)
+ info->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams = 1;
info->stream[SNDRV_PCM_STREAM_CAPTURE] = *(spec->stream_analog_capture);
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0];
OpenPOWER on IntegriCloud