* [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change.
@ 2006-12-04 18:18 Komal Shah
2006-12-11 22:06 ` tony
0 siblings, 1 reply; 2+ messages in thread
From: Komal Shah @ 2006-12-04 18:18 UTC (permalink / raw)
To: linux-omap-open-source; +Cc: vovan888
[-- Attachment #1: Type: text/plain, Size: 48 bytes --]
--
---Komal Shah
http://komalshah.blogspot.com
[-- Attachment #2: 0001-ARM-OMAP-sx1-alsa-cleanup.-No-code-change.txt --]
[-- Type: text/plain, Size: 5307 bytes --]
From 72f50fac3fb53d0b603ebf9fb3a266c94391c861 Mon Sep 17 00:00:00 2001
From: Komal Shah <komal_shah802003@yahoo.com>
Date: Sun, 3 Dec 2006 23:45:20 +0530
Subject: [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change.
- whitespace removal.
- Remove unnecessary #includes.
Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
---
sound/arm/omap/omap-alsa-sx1-mixer.c | 14 +++++++-------
sound/arm/omap/omap-alsa-sx1-mixer.h | 4 ++--
sound/arm/omap/omap-alsa-sx1.c | 7 ++-----
sound/arm/omap/omap-alsa-sx1.h | 6 ++----
4 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/sound/arm/omap/omap-alsa-sx1-mixer.c b/sound/arm/omap/omap-alsa-sx1-mixer.c
index 0b7f1fe..631b080 100644
--- a/sound/arm/omap/omap-alsa-sx1-mixer.c
+++ b/sound/arm/omap/omap-alsa-sx1-mixer.c
@@ -25,7 +25,7 @@
#include <sound/control.h>
static int current_playback_target = PLAYBACK_TARGET_LOUDSPEAKER;
-static int current_rec_src = REC_SRC_SINGLE_ENDED_MICIN_HED;
+static int current_rec_src = REC_SRC_SINGLE_ENDED_MICIN_HED;
static int current_volume; /* current volume, we cant read it */
static int current_fm_volume; /* current FM radio volume, we cant read it */
@@ -138,10 +138,10 @@ static int pcm_playback_target_put(struc
if (cur_val == PLAYBACK_TARGET_LOUDSPEAKER) {
set_record_source(REC_SRC_SINGLE_ENDED_MICIN_HED);
set_loudspeaker_to_playback_target();
- } else if (cur_val == PLAYBACK_TARGET_HEADPHONE) {
+ } else if (cur_val == PLAYBACK_TARGET_HEADPHONE) {
set_record_source(REC_SRC_SINGLE_ENDED_MICIN_HND);
- set_headphone_to_playback_target();
- } else if (cur_val == PLAYBACK_TARGET_CELLPHONE) {
+ set_headphone_to_playback_target();
+ } else if (cur_val == PLAYBACK_TARGET_CELLPHONE) {
set_telephone_to_record_source();
set_telephone_to_playback_target();
}
@@ -225,7 +225,7 @@ static int headset_playback_volume_put(s
static int headset_playback_switch_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
- uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
+ uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 1;
@@ -283,7 +283,7 @@ static int fmradio_playback_volume_put(s
static int fmradio_playback_switch_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
- uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
+ uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 1;
@@ -340,7 +340,7 @@ static int cellphone_input_switch_put(st
static int buzzer_input_switch_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
- uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
+ uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 1;
diff --git a/sound/arm/omap/omap-alsa-sx1-mixer.h b/sound/arm/omap/omap-alsa-sx1-mixer.h
index 02b8b6a..6efea3a 100644
--- a/sound/arm/omap/omap-alsa-sx1-mixer.h
+++ b/sound/arm/omap/omap-alsa-sx1-mixer.h
@@ -18,8 +18,8 @@
*
*/
-#ifndef OMAPALSATSC2101MIXER_H_
-#define OMAPALSATSC2101MIXER_H_
+#ifndef OMAPALSASX1MIXER_H_
+#define OMAPALSASX1MIXER_H_
#include "omap-alsa-dma.h"
diff --git a/sound/arm/omap/omap-alsa-sx1.c b/sound/arm/omap/omap-alsa-sx1.c
index 7cac810..eadae68 100644
--- a/sound/arm/omap/omap-alsa-sx1.c
+++ b/sound/arm/omap/omap-alsa-sx1.c
@@ -1,6 +1,4 @@
/*
- * arch/arm/mach-omap1/omap-alsa-sx1.c
- *
* Alsa codec Driver for Siemens SX1 board.
* based on omap-alsa-tsc2101.c and cn_test.c example by Evgeniy Polyakov
*
@@ -21,7 +19,6 @@
#include <linux/slab.h>
#include <linux/pm.h>
-#include <asm/mach-types.h>
#include <asm/arch/dma.h>
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
@@ -94,7 +91,7 @@ static snd_pcm_hw_constraint_list_t egol
static snd_pcm_hardware_t egold_snd_omap_alsa_playback = {
.info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
- .formats = (SNDRV_PCM_FMTBIT_S16_LE),
+ .formats = (SNDRV_PCM_FMTBIT_S16_LE),
.rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
SNDRV_PCM_RATE_16000 |
SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 |
@@ -253,7 +250,7 @@ static int __init snd_omap_alsa_egold_pr
static struct platform_driver omap_alsa_driver = {
.probe = snd_omap_alsa_egold_probe,
- .remove = snd_omap_alsa_remove,
+ .remove = snd_omap_alsa_remove,
.suspend = snd_omap_alsa_suspend,
.resume = snd_omap_alsa_resume,
.driver = {
diff --git a/sound/arm/omap/omap-alsa-sx1.h b/sound/arm/omap/omap-alsa-sx1.h
index 82cb717..af7a409 100644
--- a/sound/arm/omap/omap-alsa-sx1.h
+++ b/sound/arm/omap/omap-alsa-sx1.h
@@ -1,7 +1,5 @@
/*
- * arch/arc/mach-omap1/omap-alsa-sx1.h
- *
- * based on omap-alsa-tsc2101.h
+ * Based on omap-alsa-tsc2101.h
*
* Alsa Driver for Siemens SX1.
* Copyright (C) 2006 Vladimir Ananiev (vovan888 at gmail com)
@@ -28,7 +26,7 @@
#define DEFAULT_SAMPLE_RATE 44100
/* fw15: 18356000 */
-#define CODEC_CLOCK 18359000
+#define CODEC_CLOCK 18359000
/* McBSP for playing music */
#define AUDIO_MCBSP OMAP_MCBSP1
/* McBSP for record/play audio from phone and mic */
--
1.4.3.4.g82cc
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change.
2006-12-04 18:18 [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change Komal Shah
@ 2006-12-11 22:06 ` tony
0 siblings, 0 replies; 2+ messages in thread
From: tony @ 2006-12-11 22:06 UTC (permalink / raw)
To: Komal Shah; +Cc: linux-omap-open-source, vovan888
* Komal Shah <komal.shah802003@gmail.com> [061204 10:27]:
> --
> ---Komal Shah
> http://komalshah.blogspot.com
> From 72f50fac3fb53d0b603ebf9fb3a266c94391c861 Mon Sep 17 00:00:00 2001
> From: Komal Shah <komal_shah802003@yahoo.com>
> Date: Sun, 3 Dec 2006 23:45:20 +0530
> Subject: [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change.
>
> - whitespace removal.
> - Remove unnecessary #includes.
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-11 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 18:18 [PATCH] ARM: OMAP: sx1-alsa cleanup. No code change Komal Shah
2006-12-11 22:06 ` tony
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox