Skip to contentSkip to conversation

AsoC/nuc900: patch for SUBSTREAM_TYPE', 'PCM_TX' and 'PCM_RX' removal

PATCH Applied Wan ZongShun 3 participants 6 messages Jun 2, 2010 – Jun 7, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I am sorry for wrong subject.
It should be [PATCH v2 1/4].

Quoted 7 lines

This patch is to remove the 'SUBSTREAM_TYPE','PCM_TX' and 'PCM_RX' definition.

There is no need to redefine SNDRV_PCM_STREAM_PLAYBACK as PCM_TX, the SUBSTREAM_TYPE(substream) can be deleted too, the playback or record can be judged by 'if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)' directly rather than 'if (PCM_TX == stype)', which makes the codes easy to read.

Quoted 7 lines

---
 sound/soc/nuc900/nuc900-ac97.c  |    6 +++--- sound/soc/nuc900/nuc900-auido.h |    4 ---- sound/soc/nuc900/nuc900-pcm.c   |   18 ++++++++++--------

 3 files changed, 13 insertions(+), 15 deletions(-)

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · Wan ZongShun

This patch is to remove the 'SUBSTREAM_TYPE','PCM_TX' and 'PCM_RX' definition.

There is no need to redefine SNDRV_PCM_STREAM_PLAYBACK as PCM_TX, the SUBSTREAM_TYPE(substream) can be deleted too, the playback or record can be judged by 'if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)' directly rather than 'if (PCM_TX == stype)', which makes the codes easy to read.

All

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Applied
#3 lore raw
Quoted 9 lines · Liam Girdwood
Quoted 8 lines · Wan ZongShun

This patch is to remove the 'SUBSTREAM_TYPE','PCM_TX' and 'PCM_RX' definition.

There is no need to redefine SNDRV_PCM_STREAM_PLAYBACK as PCM_TX, the SUBSTREAM_TYPE(substream) can be deleted too, the playback or record can be judged by 'if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)' directly rather than 'if (PCM_TX == stype)', which makes the codes easy to read.

Note here that you're still missing a space betwen your name and e-mail address.

Quoted 3 lines

All

I've applied all the patches, since I had to fix up the changelogs anyway I updated the ms to us in the changelog for patch 2. Thanks.

#4 lore raw

2010/6/2 Mark Brown <[email protected]>:

Quoted 9 lines · Liam Girdwood
Quoted 8 lines · Wan ZongShun
Quoted 7 lines

This patch is to remove the 'SUBSTREAM_TYPE','PCM_TX' and 'PCM_RX' definition.

There is no need to redefine SNDRV_PCM_STREAM_PLAYBACK as PCM_TX, the SUBSTREAM_TYPE(substream) can be deleted too, the playback or record can be judged by 'if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)' directly rather than 'if (PCM_TX == stype)', which makes the codes easy to read.

Quoted 5 lines
Quoted 1 line
Quoted 1 line

Note here that you're still missing a space betwen your name and e-mail address.

Okay, thank you.
but I use 'scripts/checkpatch.pl' to check my patch, it seems no warning or error.:)

Quoted 11 lines
Quoted 3 lines

All

I've applied all the patches, since I had to fix up the changelogs anyway I updated the ms to us in the changelog for patch 2.  Thanks.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 14 lines
*linux-arm-kernel mailing list
mail addr:[email protected]
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:[email protected]
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
[email protected]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#5 lore raw
In reply to Mark Brown

Hi Mark,

2010/6/2 Mark Brown <[email protected]>:

Quoted 9 lines · Liam Girdwood
Quoted 8 lines · Wan ZongShun
Quoted 7 lines

This patch is to remove the 'SUBSTREAM_TYPE','PCM_TX' and 'PCM_RX' definition.

There is no need to redefine SNDRV_PCM_STREAM_PLAYBACK as PCM_TX, the SUBSTREAM_TYPE(substream) can be deleted too, the playback or record can be judged by 'if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)' directly rather than 'if (PCM_TX == stype)', which makes the codes easy to read.

Quoted 5 lines
Quoted 1 line
Quoted 1 line

Note here that you're still missing a space betwen your name and e-mail address.

Do I need re-sent this patch with the missing space fix?

Quoted 11 lines
Quoted 3 lines

All

I've applied all the patches, since I had to fix up the changelogs anyway I updated the ms to us in the changelog for patch 2.  Thanks.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 14 lines
*linux-arm-kernel mailing list
mail addr:[email protected]
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:[email protected]
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
[email protected]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#6 lore raw
Quoted 1 line · Wan ZongShun

Do I need re-sent this patch with the missing space fix?

Quoted 2 lines · No. Like I
Quoted 2 lines

I've applied all the patches, since I had to fix up the changelogs anyway I updated the ms to us in the changelog for patch 2.  Thanks.