From: Clemens Ladisch <clemens@ladisch.de>
To: Roman Volkov <v1ron@mail.ru>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/2] snd-oxygen: Changes for oxygen driver to fix the Xonar DG card
Date: Tue, 19 Nov 2013 23:23:41 +0100 [thread overview]
Message-ID: <528BE4ED.4050105@ladisch.de> (raw)
In-Reply-To: <20131119182617.0bbae792@v1ron-desktop>
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.
> +++ linux-3.12-my/sound/pci/oxygen/cs4245.h 2013-11-15 15:46:40.000000000 +0400
> -#define CS4245_SPI_ADDRESS (0x9e << 16)
> -#define CS4245_SPI_WRITE (0 << 16)
> +#define CS4245_SPI_ADDRESS 0x9e
> +#define CS4245_SPI_WRITE 0
> +#define CS4245_SPI_READ 1
This is only part of a logical change; applying this patch alone would
break the driver.
> +++ 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?
> +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?
> +++ 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
next prev parent reply other threads:[~2013-11-19 22:24 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 [this message]
2013-11-20 8:21 ` Roman Volkov
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=528BE4ED.4050105@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=v1ron@mail.ru \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.