Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: sound/soc/imx/imx-ssi.c

Issue 6577007: CHROMIUM: ASoC: Import entire upstream ASoC tree (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sound/soc/imx/eukrea-tlv320.c ('k') | sound/soc/imx/phycore-ac97.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * imx-ssi.c -- ALSA Soc Audio Layer 2 * imx-ssi.c -- ALSA Soc Audio Layer
3 * 3 *
4 * Copyright 2009 Sascha Hauer <s.hauer@pengutronix.de> 4 * Copyright 2009 Sascha Hauer <s.hauer@pengutronix.de>
5 * 5 *
6 * This code is based on code copyrighted by Freescale, 6 * This code is based on code copyrighted by Freescale,
7 * Liam Girdwood, Javier Martin and probably others. 7 * Liam Girdwood, Javier Martin and probably others.
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify it 9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the 10 * under the terms of the GNU General Public License as published by the
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 val = SSI_SFCSR_TFWM0(ssi->dma_params_tx.burstsize) | 449 val = SSI_SFCSR_TFWM0(ssi->dma_params_tx.burstsize) |
450 SSI_SFCSR_RFWM0(ssi->dma_params_rx.burstsize); 450 SSI_SFCSR_RFWM0(ssi->dma_params_rx.burstsize);
451 writel(val, ssi->base + SSI_SFCSR); 451 writel(val, ssi->base + SSI_SFCSR);
452 452
453 return 0; 453 return 0;
454 } 454 }
455 455
456 static struct snd_soc_dai_driver imx_ssi_dai = { 456 static struct snd_soc_dai_driver imx_ssi_dai = {
457 .probe = imx_ssi_dai_probe, 457 .probe = imx_ssi_dai_probe,
458 .playback = { 458 .playback = {
459 » » .channels_min = 2, 459 » » .channels_min = 1,
460 .channels_max = 2, 460 .channels_max = 2,
461 .rates = SNDRV_PCM_RATE_8000_96000, 461 .rates = SNDRV_PCM_RATE_8000_96000,
462 .formats = SNDRV_PCM_FMTBIT_S16_LE, 462 .formats = SNDRV_PCM_FMTBIT_S16_LE,
463 }, 463 },
464 .capture = { 464 .capture = {
465 » » .channels_min = 2, 465 » » .channels_min = 1,
466 .channels_max = 2, 466 .channels_max = 2,
467 .rates = SNDRV_PCM_RATE_8000_96000, 467 .rates = SNDRV_PCM_RATE_8000_96000,
468 .formats = SNDRV_PCM_FMTBIT_S16_LE, 468 .formats = SNDRV_PCM_FMTBIT_S16_LE,
469 }, 469 },
470 .ops = &imx_ssi_pcm_dai_ops, 470 .ops = &imx_ssi_pcm_dai_ops,
471 }; 471 };
472 472
473 static struct snd_soc_dai_driver imx_ac97_dai = { 473 static struct snd_soc_dai_driver imx_ac97_dai = {
474 .probe = imx_ssi_dai_probe, 474 .probe = imx_ssi_dai_probe,
475 .ac97_control = 1, 475 .ac97_control = 1,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 } 771 }
772 772
773 module_init(imx_ssi_init); 773 module_init(imx_ssi_init);
774 module_exit(imx_ssi_exit); 774 module_exit(imx_ssi_exit);
775 775
776 /* Module information */ 776 /* Module information */
777 MODULE_AUTHOR("Sascha Hauer, <s.hauer@pengutronix.de>"); 777 MODULE_AUTHOR("Sascha Hauer, <s.hauer@pengutronix.de>");
778 MODULE_DESCRIPTION("i.MX I2S/ac97 SoC Interface"); 778 MODULE_DESCRIPTION("i.MX I2S/ac97 SoC Interface");
779 MODULE_LICENSE("GPL"); 779 MODULE_LICENSE("GPL");
780 780
OLDNEW
« no previous file with comments | « sound/soc/imx/eukrea-tlv320.c ('k') | sound/soc/imx/phycore-ac97.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698