Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332136
b: refs/heads/master
c: f05cc9d
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 22, 2012
1 parent 48c4938 commit 18619a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: 04564e3258304df607d4536de42603b4c8e21e1a
refs/heads/master: f05cc9dac99ac6403d057d2cccb3c754714d2f32
3 changes: 1 addition & 2 deletions trunk/sound/soc/omap/omap-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <sound/asoundef.h>
#include <video/omapdss.h>

#include <plat/dma.h>
#include "omap-pcm.h"
#include "omap-hdmi.h"

Expand Down Expand Up @@ -100,7 +99,7 @@ static int omap_hdmi_dai_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}

priv->dma_params.data_type = OMAP_DMA_DATA_TYPE_S32;
priv->dma_params.data_type = 32;

snd_soc_dai_set_dma_data(dai, substream,
&priv->dma_params);
Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/soc/omap/omap-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ static int omap_pcm_prepare(struct snd_pcm_substream *substream)
memset(&dma_params, 0, sizeof(dma_params));

if (dma_data->data_type)
dma_params.data_type = dma_data->data_type;
dma_params.data_type = omap_pcm_get_dma_type(
dma_data->data_type);
else
dma_params.data_type = omap_pcm_get_dma_type(
snd_pcm_format_physical_width(runtime->format));
Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/soc/omap/omap-pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ struct omap_pcm_dma_data {
int dma_req; /* DMA request line */
unsigned long port_addr; /* transmit/receive register */
void (*set_threshold)(struct snd_pcm_substream *substream);
int data_type; /* data type 8,16,32 */
int data_type; /* 8, 16, 32 (bits) or 0 to let omap-pcm
* to decide the sDMA data type */
int packet_size; /* packet size only in PACKET mode */
};

Expand Down

0 comments on commit 18619a9

Please sign in to comment.