Commit 2ce53a20 authored by Dirk Behme's avatar Dirk Behme Committed by Tony Lindgren

ARM: OMAP: Convert omap-alsa-sx1.c to new struct format

Convert omap-alsa-sx1.c to new struct format to make this file compile
again.
Signed-off-by: default avatarDirk Behme <dirk.behme@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ef71bf87
...@@ -82,13 +82,13 @@ static unsigned int rates[] = { ...@@ -82,13 +82,13 @@ static unsigned int rates[] = {
32000, 44100, 48000, 32000, 44100, 48000,
}; };
static snd_pcm_hw_constraint_list_t egold_hw_constraints_rates = { static struct snd_pcm_hw_constraint_list egold_hw_constraints_rates = {
.count = ARRAY_SIZE(rates), .count = ARRAY_SIZE(rates),
.list = rates, .list = rates,
.mask = 0, .mask = 0,
}; };
static snd_pcm_hardware_t egold_snd_omap_alsa_playback = { static struct snd_pcm_hardware egold_snd_omap_alsa_playback = {
.info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
.formats = (SNDRV_PCM_FMTBIT_S16_LE), .formats = (SNDRV_PCM_FMTBIT_S16_LE),
...@@ -109,7 +109,7 @@ static snd_pcm_hardware_t egold_snd_omap_alsa_playback = { ...@@ -109,7 +109,7 @@ static snd_pcm_hardware_t egold_snd_omap_alsa_playback = {
.fifo_size = 0, .fifo_size = 0,
}; };
static snd_pcm_hardware_t egold_snd_omap_alsa_capture = { static struct snd_pcm_hardware egold_snd_omap_alsa_capture = {
.info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
.formats = (SNDRV_PCM_FMTBIT_S16_LE), .formats = (SNDRV_PCM_FMTBIT_S16_LE),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment