ALSA: ymfpci - Don't create invalid PCM & mixers when AC97 doesn't support
authorRaymond Yau <superquad.vortex2@gmail.com>
Tue, 17 Jan 2012 03:41:47 +0000 (11:41 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Jan 2012 14:28:05 +0000 (15:28 +0100)
commit4d20bb1d5fe1afbdbff951c06cd3d3654fa5ceed
tree4700066adcfd73ed0501841e574334cda30d7a74
parentb4ead019afc201f71c39cd0dfcaafed4a97b3dd2
ALSA: ymfpci - Don't create invalid PCM & mixers when AC97 doesn't support

- check SDAC bit of AC97 primary codec when create "rear" device 3,
  "4ch" device 2 and "4ch Duplication" switch as the card need a four channels
  AC97 codec to support surround40.

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ymfpci/ymfpci.c
sound/pci/ymfpci/ymfpci_main.c