diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-08-25 08:01:41 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-08-25 08:01:41 +0200 |
commit | c4a91e173ac671e81ea6fc9d0951b7527e2ae13d (patch) | |
tree | 69c05b6944911c325db3f9257f325797e81a27bb /sound/pci/hda/hda_codec.c | |
parent | ALSA: hdac: Add snd_hdac_get_hdac_stream() (diff) | |
parent | ALSA: hda - Fix path power activation (diff) | |
download | linux-c4a91e173ac671e81ea6fc9d0951b7527e2ae13d.tar.xz linux-c4a91e173ac671e81ea6fc9d0951b7527e2ae13d.zip |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 00c9a42af656..792948418cf0 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3102,7 +3102,7 @@ static int add_std_chmaps(struct hda_codec *codec) struct snd_pcm_chmap *chmap; const struct snd_pcm_chmap_elem *elem; - if (!pcm || pcm->own_chmap || + if (!pcm || !pcm->pcm || pcm->own_chmap || !hinfo->substreams) continue; elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; |