ALSA: wss_lib: use wss detection code instead of ad1848 one
Use the wss detection code and kill the ad1848 library. The library is fully assimilated into the new wss library. This required reworking of the AD1848 family code so the code is changed to correctly detect chips from the AD1848 and CS4231 families. I have tested it on following cards: Gallant SC-6600 (codec: AD1848, driver: snd-sc6600) SoundScape VIVO/90 (codec: AD1845, driver: snd-sscape) SG Waverider (codec: CS4231A, driver: Rene Herman's snd-galaxy) Opti930 (codec: built-in - CS4231 compatible, driver: snd-opti93x) Opti931 (codec: built-in - CS4231 compatible, driver: snd-opti93x) Gallant SC-70P (chip/codec: CS4237B, driver: snd-cs4236) Audio Plus 3D (chip/codec: CMI8330A, driver: snd-cmi8330) Dell Latitude CP (chip/codec: cs4236, driver snd-cs4232) Sound playback and recording works on all these cards. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Reviewed-by: Rene Herman <rene.herman@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:

کامیت شده توسط
Jaroslav Kysela

والد
ead893c0de
کامیت
760fc6b838
@@ -28,7 +28,7 @@
|
||||
#include <linux/wait.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <sound/core.h>
|
||||
#include <sound/ad1848.h>
|
||||
#include <sound/wss.h>
|
||||
#include <sound/initval.h>
|
||||
|
||||
#define CRD_NAME "Generic AD1848/AD1847/CS4248"
|
||||
@@ -95,8 +95,9 @@ static int __devinit snd_ad1848_probe(struct device *dev, unsigned int n)
|
||||
if (!card)
|
||||
return -EINVAL;
|
||||
|
||||
error = snd_ad1848_create(card, port[n], irq[n], dma1[n],
|
||||
thinkpad[n] ? WSS_HW_THINKPAD : WSS_HW_DETECT, &chip);
|
||||
error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], -1,
|
||||
thinkpad[n] ? WSS_HW_THINKPAD : WSS_HW_DETECT,
|
||||
0, &chip);
|
||||
if (error < 0)
|
||||
goto out;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user