Skip to contentSkip to conversation

omap3: alsa-soc: Remove restrictive checks for cpu type

PATCH In review Sanjeev Premi 2 participants 2 messages Apr 12, 2011 – Apr 13, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 omap3: alsa-soc: Remove restrictive checks for cpu type

Current checks for cpu type were too restrictive leading to failures for other silicons in same family.

The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well.

---
Changes in v3::
None. Reposting[1] after subscribing to alsa-devel list

Changes in v2:
1) Added one more check to the changes.
2) Updated commit message to use plurals.

[1] http://marc.info/?l=linux-omap&m=130026430110592&w=2

 sound/soc/omap/omap-mcbsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/omap/omap-mcbsp.c +2 -2
index 2175f09..a88a0bf 100644
@@ -146,7 +146,7 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
 	 * 2 channels (stereo): size is 128 / 2 = 64 frames (2 * 64 words)
 	 * 4 channels: size is 128 / 4 = 32 frames (4 * 32 words)
 	 */
-	if (cpu_is_omap343x() || cpu_is_omap44xx()) {
+	if (cpu_is_omap34xx() || cpu_is_omap44xx()) {
 		/*
 		* Rule for the buffer size. We should not allow
 		* smaller buffer than the FIFO size to avoid underruns
@@ -258,7 +258,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
 	default:
 		return -EINVAL;
 	}
-	if (cpu_is_omap343x()) {
+	if (cpu_is_omap34xx()) {
 		dma_data->set_threshold = omap_mcbsp_set_threshold;
 		/* TODO: Currently, MODE_ELEMENT == MODE_FRAME */
 		if (omap_mcbsp_get_dma_op_mode(bus_id) ==
Signature · 1 line
1.7.2.2
Acked-by on v3 1/1
#1 lore raw
Quoted 17 lines · On Wed, 13 Apr 2011 02:03:13 +0530 Sanjeev Premi <[email protected]> wrote:

Current checks for cpu type were too restrictive leading to failures for other silicons in same family.

The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well.

---
Changes in v3::
None. Reposting[1] after subscribing to alsa-devel list

Changes in v2:
1) Added one more check to the changes.
2) Updated commit message to use plurals.

Quoted 5 lines

[1] http://marc.info/?l=linux-omap&m=130026430110592&w=2

 sound/soc/omap/omap-mcbsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)