From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Timur Tabi <timur@freescale.com>
Cc: Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH] ALSA: soc - fsl_ssi.c fix audio capture
Date: Mon, 21 Jul 2008 15:15:18 +0400 [thread overview]
Message-ID: <20080721111518.GA17872@polina.dev.rtsoft.ru> (raw)
In-Reply-To: <20080704154313.GA11635@polina.dev.rtsoft.ru>
On Fri, Jul 04, 2008 at 07:43:13PM +0400, Anton Vorontsov wrote:
[...]
> >>> Since we're using SSI in synchronous mode, the STCCR register
> >>> controls
> >>> both the receive and transmit sections. So, when we're trying to
> >>> record
> >>> anything, stccr register does not get initialized, thus the output
> >>> file
> >>> filled with the white noise.
> >>
> >>> Fix this by initializing the STCCR for both playback and capture. If
> >>> TX/RX widths don't match, return that we're busy at the moment.
> >>
> >>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> >>
> >> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> >>
> >> but Timur needs to ack it since I don't have any particular knowledge
> >> of
> >> the hardware.
> >
> > Anton has the right idea, but I'm not sure the fix is the best. I was
> > planning on posting my fix after I got back from vacation.
> >
> > Part of the problem is that STCK and SRCK can be wired together, which
> > means that even though you're not in synchronous mode, the sample rates
> > have to match. For the 8610 HPCD, this isn't a problem, but the SSI
> > driver is supposed to support more than just that board. We need device
> > tree additions to cover all cases.
>
> Ok, we can set both.
>
> > Anton, are you sure returning -EBUSY is the right fix?
>
> Since we're using prepare(), yes. But we probably should use
> hw_params() and return -EINVAL.
>
> > Would this make
> > applications like mplayer detect the problem and automatically pick a
> > matching sample format that does work?
>
> I don't think that anyone tries to negotiate if/when prepare() failed.
> But if hw_params() failed, then yes. Here is updated patch.
>
> Also new patch for the codec used on the HPCD: it seem has the similar
> issue, but wrt sampling rate.
Timur, have you had a chance to look into these two patches?
Thanks,
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-07-21 11:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 14:37 [PATCH] ALSA: soc - fsl_ssi.c fix audio capture Anton Vorontsov
2008-07-03 14:42 ` Mark Brown
2008-07-04 11:02 ` Timur Tabi
2008-07-04 11:01 ` Mark Brown
2008-07-04 11:08 ` Timur Tabi
2008-07-04 14:49 ` Takashi Iwai
2008-07-04 15:43 ` Anton Vorontsov
2008-07-04 15:43 ` [PATCH 1/2] " Anton Vorontsov
2008-07-21 14:56 ` Timur Tabi
2008-07-04 15:44 ` [PATCH 2/2] ALSA: soc - cs4270: fix ADC/DAC rate matching Anton Vorontsov
2008-07-21 14:54 ` Timur Tabi
2008-07-21 11:15 ` Anton Vorontsov [this message]
2008-07-21 14:35 ` [PATCH] ALSA: soc - fsl_ssi.c fix audio capture Timur Tabi
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=20080721111518.GA17872@polina.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=timur@freescale.com \
--cc=tiwai@suse.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 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.