diff options
Diffstat (limited to 'sound/soc/omap/n810.c')
-rw-r--r-- | sound/soc/omap/n810.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index fae3ad36e0bf..25593fee9121 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -70,9 +70,13 @@ static void n810_ext_control(struct snd_soc_codec *codec) | |||
70 | 70 | ||
71 | static int n810_startup(struct snd_pcm_substream *substream) | 71 | static int n810_startup(struct snd_pcm_substream *substream) |
72 | { | 72 | { |
73 | struct snd_pcm_runtime *runtime = substream->runtime; | ||
73 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 74 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
74 | struct snd_soc_codec *codec = rtd->socdev->codec; | 75 | struct snd_soc_codec *codec = rtd->socdev->codec; |
75 | 76 | ||
77 | snd_pcm_hw_constraint_minmax(runtime, | ||
78 | SNDRV_PCM_HW_PARAM_CHANNELS, 2, 2); | ||
79 | |||
76 | n810_ext_control(codec); | 80 | n810_ext_control(codec); |
77 | return clk_enable(sys_clkout2); | 81 | return clk_enable(sys_clkout2); |
78 | } | 82 | } |
@@ -282,8 +286,9 @@ static struct snd_soc_dai_link n810_dai = { | |||
282 | }; | 286 | }; |
283 | 287 | ||
284 | /* Audio machine driver */ | 288 | /* Audio machine driver */ |
285 | static struct snd_soc_machine snd_soc_machine_n810 = { | 289 | static struct snd_soc_card snd_soc_n810 = { |
286 | .name = "N810", | 290 | .name = "N810", |
291 | .platform = &omap_soc_platform, | ||
287 | .dai_link = &n810_dai, | 292 | .dai_link = &n810_dai, |
288 | .num_links = 1, | 293 | .num_links = 1, |
289 | }; | 294 | }; |
@@ -298,8 +303,7 @@ static struct aic3x_setup_data n810_aic33_setup = { | |||
298 | 303 | ||
299 | /* Audio subsystem */ | 304 | /* Audio subsystem */ |
300 | static struct snd_soc_device n810_snd_devdata = { | 305 | static struct snd_soc_device n810_snd_devdata = { |
301 | .machine = &snd_soc_machine_n810, | 306 | .card = &snd_soc_n810, |
302 | .platform = &omap_soc_platform, | ||
303 | .codec_dev = &soc_codec_dev_aic3x, | 307 | .codec_dev = &soc_codec_dev_aic3x, |
304 | .codec_data = &n810_aic33_setup, | 308 | .codec_data = &n810_aic33_setup, |
305 | }; | 309 | }; |