* [PATCH] at91: enable ssc reception on at91sam9g20ek
@ 2009-10-01 8:50 Sedji Gaouaou
2009-10-02 14:08 ` Sedji Gaouaou
0 siblings, 1 reply; 2+ messages in thread
From: Sedji Gaouaou @ 2009-10-01 8:50 UTC (permalink / raw)
To: linux-arm-kernel
This patch enables reception in the ssc driver and therefore adds recording capabilities for the ATMEL AT91SAM9G20EK board.
(patch based on: http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git).
---
arch/arm/mach-at91/board-sam9g20ek.c | 2 +-
sound/soc/atmel/atmel_ssc_dai.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c
index a55398e..f74cefc 100644
--- a/arch/arm/mach-at91/board-sam9g20ek.c
+++ b/arch/arm/mach-at91/board-sam9g20ek.c
@@ -302,7 +302,7 @@ static void __init ek_board_init(void)
/* PCK0 provides MCLK to the WM8731 */
at91_set_B_periph(AT91_PIN_PC1, 0);
/* SSC (for WM8731) */
- at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX);
+ at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX | ATMEL_SSC_RX);
}
MACHINE_START(AT91SAM9G20EK, "Atmel AT91SAM9G20-EK")
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index e588e63..7e78e02 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -427,7 +427,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
| SSC_BF(RCMR_STTDLY, START_DELAY)
| SSC_BF(RCMR_START, SSC_START_FALLING_RF)
| SSC_BF(RCMR_CKI, SSC_CKI_RISING)
- | SSC_BF(RCMR_CKO, SSC_CKO_NONE)
+ | SSC_BF(RCMR_CKO, SSC_CKO_CONTINUOUS)
| SSC_BF(RCMR_CKS, SSC_CKS_DIV);
rfmr = SSC_BF(RFMR_FSEDGE, SSC_FSEDGE_POSITIVE)
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] at91: enable ssc reception on at91sam9g20ek
2009-10-01 8:50 [PATCH] at91: enable ssc reception on at91sam9g20ek Sedji Gaouaou
@ 2009-10-02 14:08 ` Sedji Gaouaou
0 siblings, 0 replies; 2+ messages in thread
From: Sedji Gaouaou @ 2009-10-02 14:08 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
This patch was actually more a tips and tricks than a proper patch.
Indeed there is currently no Mic entry on the at91sam9g20ek board, but
it could be quite easy to add one.
For instance
More informations could be found here:
http://www.linux4sam.org/twiki/bin/view/Linux4SAM/AudioRecordOnAt91sam9g20ek
Regards,
Sedji
Sedji Gaouaou a ?crit :
> This patch enables reception in the ssc driver and therefore adds recording capabilities for the ATMEL AT91SAM9G20EK board.
> (patch based on: http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git).
> ---
> arch/arm/mach-at91/board-sam9g20ek.c | 2 +-
> sound/soc/atmel/atmel_ssc_dai.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c
> index a55398e..f74cefc 100644
> --- a/arch/arm/mach-at91/board-sam9g20ek.c
> +++ b/arch/arm/mach-at91/board-sam9g20ek.c
> @@ -302,7 +302,7 @@ static void __init ek_board_init(void)
> /* PCK0 provides MCLK to the WM8731 */
> at91_set_B_periph(AT91_PIN_PC1, 0);
> /* SSC (for WM8731) */
> - at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX);
> + at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX | ATMEL_SSC_RX);
> }
>
> MACHINE_START(AT91SAM9G20EK, "Atmel AT91SAM9G20-EK")
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index e588e63..7e78e02 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -427,7 +427,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
> | SSC_BF(RCMR_STTDLY, START_DELAY)
> | SSC_BF(RCMR_START, SSC_START_FALLING_RF)
> | SSC_BF(RCMR_CKI, SSC_CKI_RISING)
> - | SSC_BF(RCMR_CKO, SSC_CKO_NONE)
> + | SSC_BF(RCMR_CKO, SSC_CKO_CONTINUOUS)
> | SSC_BF(RCMR_CKS, SSC_CKS_DIV);
>
> rfmr = SSC_BF(RFMR_FSEDGE, SSC_FSEDGE_POSITIVE)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-02 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 8:50 [PATCH] at91: enable ssc reception on at91sam9g20ek Sedji Gaouaou
2009-10-02 14:08 ` Sedji Gaouaou
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.