soc: codecs: rt5639: Implement i2c shutdown
[linux-2.6.git] / sound / soc / tegra / tegra_pcm.c
index 387444d..4f19bd4 100644 (file)
@@ -48,7 +48,10 @@ static const struct snd_pcm_hardware tegra_pcm_hardware = {
                                  SNDRV_PCM_INFO_PAUSE |
                                  SNDRV_PCM_INFO_RESUME |
                                  SNDRV_PCM_INFO_INTERLEAVED,
-       .formats                = SNDRV_PCM_FMTBIT_S16_LE,
+       .formats                = SNDRV_PCM_FMTBIT_S8 |
+                                 SNDRV_PCM_FMTBIT_S16_LE |
+                                 SNDRV_PCM_FMTBIT_S24_LE |
+                                 SNDRV_PCM_FMTBIT_S32_LE,
        .channels_min           = 1,
        .channels_max           = 2,
        .period_bytes_min       = 128,
@@ -122,7 +125,7 @@ static void setup_dma_tx_request(struct tegra_dma_req *req,
        req->dest_bus_width = dmap->width;
        req->req_sel = dmap->req_sel;
        req->use_smmu = false;
-#ifdef TEGRA30_USE_SMMU
+#if TEGRA30_USE_SMMU
        req->use_smmu = true;
 #endif
 }
@@ -139,7 +142,7 @@ static void setup_dma_rx_request(struct tegra_dma_req *req,
        req->dest_bus_width = 32;
        req->req_sel = dmap->req_sel;
        req->use_smmu = false;
-#ifdef TEGRA30_USE_SMMU
+#if TEGRA30_USE_SMMU
        req->use_smmu = true;
 #endif
 }
@@ -363,7 +366,7 @@ static int tegra_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
 {
        struct snd_pcm_substream *substream = pcm->streams[stream].substream;
        struct snd_dma_buffer *buf = &substream->dma_buffer;
-#ifdef TEGRA30_USE_SMMU
+#if TEGRA30_USE_SMMU
        unsigned char *vaddr;
        phys_addr_t paddr;
        struct tegra_smmu_data *ptsd;
@@ -399,7 +402,7 @@ void tegra_pcm_deallocate_dma_buffer(struct snd_pcm *pcm, int stream)
 {
        struct snd_pcm_substream *substream;
        struct snd_dma_buffer *buf;
-#ifdef TEGRA30_USE_SMMU
+#if TEGRA30_USE_SMMU
        struct tegra_smmu_data *ptsd;
 #endif
 
@@ -411,7 +414,7 @@ void tegra_pcm_deallocate_dma_buffer(struct snd_pcm *pcm, int stream)
        if (!buf->area)
                return;
 
-#ifdef TEGRA30_USE_SMMU
+#if TEGRA30_USE_SMMU
        if (!buf->private_data)
                return;
        ptsd = (struct tegra_smmu_data *)buf->private_data;
@@ -478,9 +481,7 @@ void tegra_pcm_free(struct snd_pcm *pcm)
 
 static int tegra_pcm_probe(struct snd_soc_platform *platform)
 {
-       if(machine_is_kai() || machine_is_tegra_enterprise())
-               platform->dapm.idle_bias_off = 1;
-
+       platform->dapm.idle_bias_off = 1;
        return 0;
 }