android_kernel_xiaomi_sm8350/sound/pci
Nicolas Boichat 536319afd1 ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel).
Currently, even if you pass model=intel-mac-v3 as a module parameter to
snd_hda_intel, the function patch_stac922x (patch_sigmatel.c) will still
try to auto-detect the model type. This is a problem on my MacBook Pro 1st
generation, which needs intel-mac-v3, but sometimes incorrectly reports
0x00000100 as subsystem id, which causes the switch in patch_stac922x to
select intel-mac-v4.

To fix this, I added a new model called intel-mac-auto, so in case no
module parameter is passed, and an Intel Mac board is detected, the
model will be automatically detected, while no detection will be done
if the model is forced to intel-mac-v3.

This problem has been around for quite a while, and I used to fix it
by moving the case statement for 0x00000100 in patch_stac922x so that
intel-mac-v3 is chosen.

Another way to fix the problem would be to check if a module parameter
was set directly in patch_stac922x, using something like this:
if (spec->board_config == STAC_INTEL_MAC_V3 &&
	!codec->bus->modelname) {

But I think it is less elegant (if you prefer that way, I can prepare a
patch).

Signed-off-by: Nicolas Boichat <nicolas@boichat.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-07-27 10:22:27 +02:00
..
ac97 ALSA: make snd_ac97_add_vmaster() static 2008-07-27 10:22:26 +02:00
ali5451 [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
au88x0 [ALSA] remove CVS keywords 2008-05-27 15:56:20 +02:00
aw2 ALSA: aw2 - Fix Oops at initialization 2008-06-23 12:06:23 +02:00
ca0106 ALSA: ca0106 - Add entry for another MSI K8N Diamond MB 2008-06-18 09:31:59 +02:00
cs46xx [ALSA] Fix possible races at free_irq in PCI drivers 2008-04-24 12:00:41 +02:00
cs5535audio
echoaudio [ALSA] Fix possible races at free_irq in PCI drivers 2008-04-24 12:00:41 +02:00
emu10k1 ALSA: emu10k1 - simplify the last fix 2008-06-17 16:30:27 +02:00
hda ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel). 2008-07-27 10:22:27 +02:00
ice1712 [ALSA] ice1724: fix MIDI 2008-05-20 14:22:44 +02:00
korg1212 firmware: convert korg1212 driver to use firmware loader exclusively 2008-07-10 14:47:44 +01:00
mixart Fix a const pointer usage warning in the Digigram miXart soundcard driver 2008-07-10 14:29:01 +01:00
nm256 ALSA: correct kcalloc usage 2008-07-14 09:01:09 +02:00
oxygen sound: oxygen: fix NULL pointer dereference when loading snd-oxygen 2008-06-16 15:16:11 +02:00
pcxhr Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
riptide riptide: treat firmware data as const 2008-07-10 14:26:07 +01:00
rme9652 [ALSA] sound/pci/rme9652/hdspm.c: stop inlining largish static functions 2008-04-24 12:00:33 +02:00
trident ALSA: trident - pause s/pdif output 2008-06-26 09:01:38 +02:00
vx222 vx222: treat firmware data as const 2008-07-10 14:26:06 +01:00
ymfpci Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
ad1889.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
ad1889.h
ak4531_codec.c ALSA: Remove duplicate MODULE_AUTHOR/DESCRIPTION/LICENCE from snd-ens1370.ko 2008-06-16 10:39:34 +02:00
als300.c [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
als4000.c
atiixp_modem.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
atiixp.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
azt3328.c ALSA: PCI168 snd-azt3328: some more fixups 2008-06-26 09:01:47 +02:00
azt3328.h ALSA: sound/pci/azt3328.h: no variables for enums 2008-07-27 10:22:25 +02:00
bt87x.c
cmipci.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
cs4281.c
cs5530.c
ens1370.c ALSA: ALSA: ens1370: communicate PCI device to AC97 2008-07-17 14:29:55 +02:00
ens1371.c
es1938.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
es1968.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
fm801.c [ALSA] sound: fm801.c fix shadowed variable warning 2008-04-24 12:00:16 +02:00
intel8x0.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
intel8x0m.c [ALSA] Fix possible races at free_irq in PCI drivers 2008-04-24 12:00:41 +02:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
maestro3.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
Makefile [ALSA] Make ak4531 local to ens1370 driver 2008-05-30 09:26:09 +02:00
rme32.c [ALSA] sound: rme32.c fix integer as NULL pointer warning 2008-04-24 12:00:16 +02:00
rme96.c [ALSA] sound: rme96.c fix integer as NULL pointer warning 2008-04-24 12:00:17 +02:00
sis7019.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
sis7019.h
sonicvibes.c
via82xx_modem.c [ALSA] Fix synchronize_irq() bugs, redundancies 2008-04-24 12:00:40 +02:00
via82xx.c ALSA: via82xx - Add VIA audio device #1841 to ac97_quirk list 2008-07-10 09:31:17 +02:00