From: Roman Volkov <v1ron@mail.ru> (by way of Roman Volkov <v1ron@mail.ru>)
To: Clemens Ladisch <clemens@ladisch.de>
Subject: Re: [PATCH 1/2] snd-oxygen: Changes for oxygen driver to fix the Xonar DG card
Date: Wed, 20 Nov 2013 12:21:12 +0400 [thread overview]
Message-ID: <20131120122112.41c80d5c@v1ron-desktop> (raw)
In-Reply-To: <528BE4ED.4050105@ladisch.de>
В Tue, 19 Nov 2013 23:23:41 +0100
Clemens Ladisch <clemens@ladisch.de> пишет:
> Many thanks for doing all this work!
> However, there are still a few small problems.
>
> Roman Volkov wrote:
> > This patch does some preparation of existing Oxygen driver.
>
> This patch should be separated into four logical changes.
Okay, will split this and send again, considering all your comments.
>
> > +++ linux-3.12-my/sound/pci/oxygen/oxygen_io.c 2013-11-19
> > 00:56:12.000000000 +0400
> > - wait_event_timeout(chip->ac97_waitqueue,
> > - ({ status |= oxygen_read8(chip,
> > OXYGEN_AC97_INTERRUPT_STATUS);
> > + wait_event_timeout(chip->ac97_waitqueue, ({ status |=
> > oxygen_read8(chip,
> > +
> > OXYGEN_AC97_INTERRUPT_STATUS); status & mask; }),
>
> Why this change?
Just checkpatch.pl popped me a warning (80 columns exceeded),
and I occasionally changed this. Will revert this as this code
is already in the kernel.
> > +int oxygen_wait_spi(struct oxygen *chip)
> > ...
> > - udelay(4);
> > + udelay(1);
>
> Please don't reduce this delay; the CMI8788 has a bug that can crash
> the machine if this register is polled too often.
>
> > +EXPORT_SYMBOL(oxygen_wait_spi);
>
> Why this export?
However yes, when I moved wait call to the end of oxygen_write_spi(),
additional waiting is not necessary. Will be the static function.
> > +++ linux-3.12-my/sound/pci/oxygen/oxygen_mixer.c 2013-11-18
> > 14:03:54.000000000 +0400
>
> > +EXPORT_SYMBOL(oxygen_update_dac_routing);
>
> This should be integrated into the patch that adds the actual call.
>
>
> Regards,
> Clemens
>
Kind regards,
Roman Volkov
v1ron@mail.ru
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
prev parent reply other threads:[~2013-11-20 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 14:26 [PATCH 1/2] snd-oxygen: Changes for oxygen driver to fix the Xonar DG card Roman Volkov
2013-11-19 22:23 ` Clemens Ladisch
2013-11-20 8:21 ` Roman Volkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131120122112.41c80d5c@v1ron-desktop \
--to=v1ron@mail.ru \
--cc=clemens@ladisch.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).