alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* issue with TWL4030
@ 2010-07-02 22:50 Grazvydas Ignotas
  2010-07-03  0:06 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Grazvydas Ignotas @ 2010-07-02 22:50 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: alsa-devel

Hi,

there seems to be a problem with TWL4030 hw_param programming, which
is easy to reproduce over OSS emulation with this simple program:

int oss_dev = open("/dev/dsp", O_WRONLY);
int stereo = 1, bits = 16, rate = 44100;
ioctl(oss_dev, SNDCTL_DSP_SETFMT, &bits);
ioctl(oss_dev, SNDCTL_DSP_SPEED,  &rate);
ioctl(oss_dev, SNDCTL_DSP_STEREO, &stereo);
write(oss_dev, somebuff, sizeof(somebuff));

The above program ends up playing at 8kHz, instead of expected 44kHz.
I did some call tracing and got this:
[ 1092.246032] soc_pcm_hw_params, rate 8000
[ 1092.250122] twl4030_hw_params
[ 1092.253234]   set rate 8000
[ 1092.256103]   configured 1
[ 1092.259368] soc_pcm_hw_params, rate 8000
[ 1092.263427] twl4030_hw_params
[ 1092.266845] soc_pcm_hw_params, rate 44100
[ 1092.270965] twl4030_hw_params
[ 1094.459106] twl4030_shutdown
[ 1094.462036]   configured 0

So it looks like twl4030->configured is the culprit of this, removing
it solves the problem, but I guess that will break something else. Any
ideas how to properly fix this?

Gražvydas
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2010-07-13  8:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02 22:50 issue with TWL4030 Grazvydas Ignotas
2010-07-03  0:06 ` Mark Brown
2010-07-03 14:32   ` Grazvydas Ignotas
2010-07-04  1:28     ` Mark Brown
2010-07-05 21:13     ` peter.ujfalusi
2010-07-05 21:40       ` Liam Girdwood
2010-07-05 22:51         ` Grazvydas Ignotas
2010-07-12 10:12           ` Peter Ujfalusi
2010-07-12 20:26             ` Grazvydas Ignotas
2010-07-13  7:59               ` Peter Ujfalusi
2010-07-05 23:24       ` Raymond Yau
2010-07-13  8:03         ` Peter Ujfalusi

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).