Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110867
b: refs/heads/master
c: ead893c
h: refs/heads/master
i:
  110865: 50299eb
  110863: 8dd7f9a
v: v3
  • Loading branch information
Krzysztof Helt authored and Jaroslav Kysela committed Aug 6, 2008
1 parent e8f6c47 commit 91fff10
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 582 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5664daa1c1fa250dd7f6b336278b0402638e8edc
refs/heads/master: ead893c0deeec165524cc8a06e7e739d7d84b4c4
8 changes: 0 additions & 8 deletions trunk/include/sound/ad1848.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@
#define AD1848_CALIB_IN_PROGRESS 0x20 /* auto calibrate in progress */
#define AD1848_DMA_REQUEST 0x10 /* DMA request in progress */

/* IBM Thinkpad specific stuff */
#define AD1848_THINKPAD_CTL_PORT1 0x15e8
#define AD1848_THINKPAD_CTL_PORT2 0x15e9
#define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02

/* exported functions */

void snd_ad1848_out(struct snd_wss *chip, unsigned char reg,
Expand All @@ -113,7 +108,4 @@ int snd_ad1848_create(struct snd_card *card,
unsigned short hardware,
struct snd_wss **chip);

int snd_ad1848_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm);
const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction);

#endif /* __SOUND_AD1848_H */
7 changes: 7 additions & 0 deletions trunk/include/sound/wss.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
#define WSS_HWSHARE_DMA1 (1<<1)
#define WSS_HWSHARE_DMA2 (1<<2)

/* IBM Thinkpad specific stuff */
#define AD1848_THINKPAD_CTL_PORT1 0x15e8
#define AD1848_THINKPAD_CTL_PORT2 0x15e9
#define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02

struct snd_wss {
unsigned long port; /* base i/o port */
struct resource *res_port;
Expand Down Expand Up @@ -153,6 +158,8 @@ int snd_wss_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm);
int snd_wss_timer(struct snd_wss *chip, int device, struct snd_timer **rtimer);
int snd_wss_mixer(struct snd_wss *chip);

const struct snd_pcm_ops *snd_wss_get_pcm_ops(int direction);

int snd_cs4236_create(struct snd_card *card,
unsigned long port,
unsigned long cport,
Expand Down
5 changes: 3 additions & 2 deletions trunk/sound/isa/Kconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# ALSA ISA drivers

config SND_AD1848_LIB
config SND_WSS_LIB
tristate
select SND_PCM

config SND_WSS_LIB
config SND_AD1848_LIB
tristate
select SND_PCM
select SND_WSS_LIB

config SND_SB_COMMON
tristate
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/isa/ad1848/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int __devinit snd_ad1848_probe(struct device *dev, unsigned int n)

card->private_data = chip;

error = snd_ad1848_pcm(chip, 0, &pcm);
error = snd_wss_pcm(chip, 0, &pcm);
if (error < 0)
goto out;

Expand Down
Loading

0 comments on commit 91fff10

Please sign in to comment.