AsoC/nuc900: patch for SUBSTREAM_TYPE', 'PCM_TX' and 'PCM_RX' removal
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_PLAYBACKasPCM_TX, theSUBSTREAM_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
Signed-off-by Wan ZongShun<[email protected]>---
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
Liam Girdwood
Acked-byQuoted 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_PLAYBACKasPCM_TX, theSUBSTREAM_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.Signed-off-by Wan ZongShun<[email protected]>
All
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 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_PLAYBACKasPCM_TX, theSUBSTREAM_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.Signed-off-by Wan ZongShun<[email protected]>
Note here that you're still missing a space betwen your name and e-mail address.
Quoted 3 lines
All
Acked-by Liam Girdwood <[email protected]>
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.
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_PLAYBACKasPCM_TX, theSUBSTREAM_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
Signed-off-by Wan ZongShun<[email protected]>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
Acked-by Liam Girdwood <[email protected]>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
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_PLAYBACKasPCM_TX, theSUBSTREAM_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
Signed-off-by Wan ZongShun<[email protected]>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
Acked-by Liam Girdwood <[email protected]>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
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.