alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* duplicated test in sound/soc/codecs/sgtl5000.c
@ 2012-01-12 21:13 Julia Lawall
  2012-01-12 22:28 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Julia Lawall @ 2012-01-12 21:13 UTC (permalink / raw)
  To: lrg, broonie, alsa-devel

There is a duplicated test in the function sgtl5000_restore_regs in the 
file sound/soc/codecs/sgtl5000.c:

                /* this regs depends on the others */
                 if (reg == SGTL5000_CHIP_ANA_POWER ||
                         reg == SGTL5000_CHIP_CLK_CTRL ||
                         reg == SGTL5000_CHIP_LINREG_CTRL ||
                         reg == SGTL5000_CHIP_LINE_OUT_CTRL ||
                         reg == SGTL5000_CHIP_CLK_CTRL)
                         continue;

I don't know if some constant other than SGTL5000_CHIP_CLK_CTRL should be 
tested, or if the second test should just be deleted.

julia

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-13  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 21:13 duplicated test in sound/soc/codecs/sgtl5000.c Julia Lawall
2012-01-12 22:28 ` Mark Brown
2012-01-13  6:21   ` Dong Aisheng-B29396
2012-01-13  6:37     ` Mark Brown
2012-01-13  6:49       ` Dong Aisheng-B29396
2012-01-13  8:40     ` Zeng Zhaoming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).