alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
To: alsa-devel@alsa-project.org
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Martin Michlmayr <tbm@cyrius.com>,
	Saeed Bishara <saeed@marvell.com>,
	Liam Girdwood <lrg@slimlogic.co.uk>
Subject: [patch 3/3] t5325: add audio support
Date: Tue, 12 Oct 2010 11:44:56 +0200	[thread overview]
Message-ID: <20101012100039.492443712@rtp-net.org> (raw)
In-Reply-To: 20101012094453.660938870@rtp-net.org

[-- Attachment #1: t5325-2.patch --]
[-- Type: text/plain, Size: 1533 bytes --]

This patch declares the i2c audio codec and initialise audio.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Index: sound-2.6/arch/arm/mach-kirkwood/t5325-setup.c
===================================================================
--- sound-2.6.orig/arch/arm/mach-kirkwood/t5325-setup.c	2010-09-06 23:35:50.000000000 +0200
+++ sound-2.6/arch/arm/mach-kirkwood/t5325-setup.c	2010-09-06 23:42:21.000000000 +0200
@@ -23,6 +23,7 @@
 #include <linux/gpio.h>
 #include <linux/gpio_keys.h>
 #include <linux/input.h>
+#include <sound/alc5623.h>
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <mach/kirkwood.h>
@@ -134,6 +135,7 @@
 	MPP33_GE1_TXCTL,
 	MPP39_AU_I2SBCLK,
 	MPP40_AU_I2SDO,
+	MPP43_AU_I2SDI,
 	MPP41_AU_I2SLRCLK,
 	MPP42_AU_I2SMCLK,
 	MPP45_GPIO,		/* Power button */
@@ -141,6 +143,18 @@
 	0
 };
 
+static struct alc5623_platform_data alc5621_data = {
+	.add_ctrl = 0x3700,
+	.jack_det_ctrl = 0x4810,
+};
+
+static struct i2c_board_info i2c_board_info[] __initdata = {
+	{
+		I2C_BOARD_INFO("alc5621", 0x1a),
+		.platform_data = &alc5621_data,
+	},
+};
+
 #define HP_T5325_GPIO_POWER_OFF		48
 
 static void hp_t5325_power_off(void)
@@ -166,6 +180,9 @@
 	kirkwood_ehci_init();
 	platform_device_register(&hp_t5325_button_device);
 
+	i2c_register_board_info(0, i2c_board_info, ARRAY_SIZE(i2c_board_info));
+	kirkwood_audio_init();
+
 	if (gpio_request(HP_T5325_GPIO_POWER_OFF, "power-off") == 0 &&
 	    gpio_direction_output(HP_T5325_GPIO_POWER_OFF, 0) == 0)
 		pm_power_off = hp_t5325_power_off;

  parent reply	other threads:[~2010-10-12 10:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-12  9:44 [patch 0/3] ALC562[123] / t5325 sound support - try 2 Arnaud Patard
2010-10-12  9:44 ` [patch 1/3] ASoC: add support for alc562[123] codecs Arnaud Patard
2010-10-12 17:16   ` Mark Brown
2010-10-13 17:58     ` Arnaud Patard
2010-10-13 18:03       ` Mark Brown
2010-10-13 18:22         ` Arnaud Patard
2010-10-12  9:44 ` [patch 2/3] kirkwood: Add audio support to hp t5325 thin clients Arnaud Patard
2010-10-12 17:17   ` Mark Brown
2010-10-12  9:44 ` Arnaud Patard [this message]
2010-10-12 17:18   ` [patch 3/3] t5325: add audio support Mark Brown
2010-10-13 18:01     ` Arnaud Patard
2010-10-13 18:06       ` Mark Brown
2010-10-13 18:25         ` Arnaud Patard
2010-10-13 18:43           ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2010-09-07  7:01 [patch 0/3] ASoC: t5325 " Arnaud Patard
2010-09-07  7:01 ` [patch 3/3] t5325: add " Arnaud Patard
2010-09-07 10:23   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101012100039.492443712@rtp-net.org \
    --to=arnaud.patard@rtp-net.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@slimlogic.co.uk \
    --cc=saeed@marvell.com \
    --cc=tbm@cyrius.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).