Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47222
b: refs/heads/master
c: a8f5d0a
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Johnson authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 3dec283 commit e307e97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 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: 596ce32b74dccf53ef59cc9ba2e95a2a34ba921c
refs/heads/master: a8f5d0a5d02cda0183c6e68d6a66d4c6641149a9
11 changes: 10 additions & 1 deletion trunk/sound/soc/pxa/pxa2xx-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,18 @@ static int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_runtime *runtime = substream->runtime;
struct pxa2xx_runtime_data *prtd = runtime->private_data;
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct pxa2xx_pcm_dma_params *dma = rtd->cpu_dai->dma_data;
struct pxa2xx_pcm_dma_params *dma = rtd->dai->cpu_dai->dma_data;
size_t totsize = params_buffer_bytes(params);
size_t period = params_period_bytes(params);
pxa_dma_desc *dma_desc;
dma_addr_t dma_buff_phys, next_desc_phys;
int ret;

/* return if this is a bufferless transfer e.g.
* codec <--> BT codec or GSM modem -- lg FIXME */
if (!dma)
return 0;

/* this may get called several times by oss emulation
* with different params */
if (prtd->params == NULL) {
Expand Down Expand Up @@ -227,6 +232,10 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
if (ret)
goto out;

ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
if (ret < 0)
goto out;

prtd = kzalloc(sizeof(struct pxa2xx_runtime_data), GFP_KERNEL);
if (prtd == NULL) {
ret = -ENOMEM;
Expand Down
14 changes: 0 additions & 14 deletions trunk/sound/soc/pxa/pxa2xx-pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,7 @@ struct pxa2xx_gpio {
u32 frm;
};

/* pxa2xx DAI ID's */
#define PXA2XX_DAI_AC97_HIFI 0
#define PXA2XX_DAI_AC97_AUX 1
#define PXA2XX_DAI_AC97_MIC 2
#define PXA2XX_DAI_I2S 0
#define PXA2XX_DAI_SSP1 0
#define PXA2XX_DAI_SSP2 1
#define PXA2XX_DAI_SSP3 2

extern struct snd_soc_cpu_dai pxa_ac97_dai[3];
extern struct snd_soc_cpu_dai pxa_i2s_dai;
extern struct snd_soc_cpu_dai pxa_ssp_dai[3];

/* platform data */
extern struct snd_soc_platform pxa2xx_soc_platform;
extern struct snd_ac97_bus_ops pxa2xx_ac97_ops;

#endif

0 comments on commit e307e97

Please sign in to comment.