Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
852fd9e5
Commit
852fd9e5
authored
Mar 16, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Each PXA AC97 DAI needs a separate ops
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
f2a5d6a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-ac97.c
+12
-4
No files found.
sound/soc/pxa/pxa2xx-ac97.c
View file @
852fd9e5
...
...
@@ -164,10 +164,18 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream,
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \
SNDRV_PCM_RATE_48000)
static
struct
snd_soc_dai_ops
pxa_ac97_dai_ops
=
{
static
struct
snd_soc_dai_ops
pxa_ac97_
hifi_
dai_ops
=
{
.
hw_params
=
pxa2xx_ac97_hw_params
,
};
static
struct
snd_soc_dai_ops
pxa_ac97_aux_dai_ops
=
{
.
hw_params
=
pxa2xx_ac97_hw_aux_params
,
};
static
struct
snd_soc_dai_ops
pxa_ac97_mic_dai_ops
=
{
.
hw_params
=
pxa2xx_ac97_hw_mic_params
,
};
/*
* There is only 1 physical AC97 interface for pxa2xx, but it
* has extra fifo's that can be used for aux DACs and ADCs.
...
...
@@ -193,7 +201,7 @@ struct snd_soc_dai pxa_ac97_dai[] = {
.
channels_max
=
2
,
.
rates
=
PXA2XX_AC97_RATES
,
.
formats
=
SNDRV_PCM_FMTBIT_S16_LE
,},
.
ops
=
&
pxa_ac97_dai_ops
,
.
ops
=
&
pxa_ac97_
hifi_
dai_ops
,
},
{
.
name
=
"pxa2xx-ac97-aux"
,
...
...
@@ -211,7 +219,7 @@ struct snd_soc_dai pxa_ac97_dai[] = {
.
channels_max
=
1
,
.
rates
=
PXA2XX_AC97_RATES
,
.
formats
=
SNDRV_PCM_FMTBIT_S16_LE
,},
.
ops
=
&
pxa_ac97_dai_ops
,
.
ops
=
&
pxa_ac97_
aux_
dai_ops
,
},
{
.
name
=
"pxa2xx-ac97-mic"
,
...
...
@@ -223,7 +231,7 @@ struct snd_soc_dai pxa_ac97_dai[] = {
.
channels_max
=
1
,
.
rates
=
PXA2XX_AC97_RATES
,
.
formats
=
SNDRV_PCM_FMTBIT_S16_LE
,},
.
ops
=
&
pxa_ac97_dai_ops
,
.
ops
=
&
pxa_ac97_
mic_
dai_ops
,
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment