aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPar-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com>2010-05-25 16:26:50 +0200
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:28 -0600
commit6e1c56ae839ed44fac5f5183465176af67f7e5c3 (patch)
treebfe0b18d2031d555725db5d2148cf82a03b2682e /include/linux
parent4d1cb924d3e6065e50e2b14e421aac4e18341dff (diff)
Connectivity: Fix errors in CG29XX Audio driver
This commit corrects wrong types in the CG29XX Audio driver API. This commit also adds new commands that will be sent when setting up FM RX and FM TX streams. The new commands were earlier missing from the system design, but have now been added. ST-Ericsson ID: ER 261924 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Ia2eec4adc7c1b3fc8457b6da46adb8f57e93854a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2364 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include/linux')
-rwxr-xr-xinclude/linux/mfd/ste_cg29xx_audio.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/include/linux/mfd/ste_cg29xx_audio.h b/include/linux/mfd/ste_cg29xx_audio.h
index 7d0739f5fb8..ab70cc96bfb 100755
--- a/include/linux/mfd/ste_cg29xx_audio.h
+++ b/include/linux/mfd/ste_cg29xx_audio.h
@@ -167,17 +167,29 @@ enum ste_cg29xx_dai_port_protocol {
};
/**
+ * enum ste_cg29xx_dai_channel_selection - The channel selection alternatives.
+ * @STE_CG29XX_DAI_CHANNEL_SELECTION_RIGHT: Right channel used.
+ * @STE_CG29XX_DAI_CHANNEL_SELECTION_LEFT: Left channel used.
+ * @STE_CG29XX_DAI_CHANNEL_SELECTION_BOTH: Both channels used.
+ */
+enum ste_cg29xx_dai_channel_selection {
+ STE_CG29XX_DAI_CHANNEL_SELECTION_RIGHT = 0x00,
+ STE_CG29XX_DAI_CHANNEL_SELECTION_LEFT = 0x01,
+ STE_CG29XX_DAI_CHANNEL_SELECTION_BOTH = 0x02
+};
+
+/**
* struct ste_cg29xx_dai_port_conf_i2s_pcm - Port configuration structure.
* @mode: Operational mode of the port configured.
* @slot_0_dir: Direction of slot 0.
* @slot_1_dir: Direction of slot 1.
* @slot_2_dir: Direction of slot 2.
* @slot_3_dir: Direction of slot 3.
- * @sco_slots_used: True if SCO slots are used.
- * @a2dp_slots_used: True if A2DP slots are used.
- * @fm_right_slot_used: True if FM right slot is used.
- * @fm_left_slot_used: True if FM left slot is used.
- * @ring_tone_slots_used: True is ring tone slots are used.
+ * @i2s_channel_selection: I2S channels used. Only valid if used in I2S mode.
+ * @sco_slot_0_used: True if SCO slot 0 is used.
+ * @sco_slot_1_used: True if SCO slot 1 is used.
+ * @sco_slot_2_used: True if SCO slot 2 is used.
+ * @sco_slot_3_used: True if SCO slot 3 is used.
* @slot_0_start: Slot 0 start (relative to the PCM frame sync).
* @slot_1_start: Slot 1 start (relative to the PCM frame sync)
* @slot_2_start: Slot 2 start (relative to the PCM frame sync)
@@ -194,11 +206,11 @@ struct ste_cg29xx_dai_port_conf_i2s_pcm {
enum ste_cg29xx_dai_direction slot_1_dir;
enum ste_cg29xx_dai_direction slot_2_dir;
enum ste_cg29xx_dai_direction slot_3_dir;
- bool sco_slots_used;
- bool a2dp_slots_used;
- bool fm_right_slot_used;
- bool fm_left_slot_used;
- bool ring_tone_slots_used;
+ enum ste_cg29xx_dai_channel_selection i2s_channel_selection;
+ bool sco_slot_0_used;
+ bool sco_slot_1_used;
+ bool sco_slot_2_used;
+ bool sco_slot_3_used;
unsigned char slot_0_start;
unsigned char slot_1_start;
unsigned char slot_2_start;
@@ -244,18 +256,6 @@ enum ste_cg29xx_dai_half_period_duration {
};
/**
- * enum ste_cg29xx_dai_channel_selection - The channel selection alternatives.
- * @STE_CG29XX_DAI_CHANNEL_SELECTION_RIGHT: Right channel used.
- * @STE_CG29XX_DAI_CHANNEL_SELECTION_LEFT: Left channel used.
- * @STE_CG29XX_DAI_CHANNEL_SELECTION_BOTH: Both channels used.
- */
-enum ste_cg29xx_dai_channel_selection {
- STE_CG29XX_DAI_CHANNEL_SELECTION_RIGHT = 0x00,
- STE_CG29XX_DAI_CHANNEL_SELECTION_LEFT = 0x01,
- STE_CG29XX_DAI_CHANNEL_SELECTION_BOTH = 0x02
-};
-
-/**
* enum ste_cg29xx_dai_word_width_selection - Word width alternatives.
* @STE_CG29XX_DAI_WORD_WIDTH_SELECTION_16: 16 bits words.
* @STE_CG29XX_DAI_WORD_WIDTH_SELECTION_32: 32 bits words.