From: anish198519851985@gmail.com (anish singh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: custom audio card on beaglebone
Date: Wed, 25 Jan 2017 15:35:44 -0800 [thread overview]
Message-ID: <CAK7N6vqw5b095Rat-dBD-O5O-uMHwahnb8YnV2NSp2XxfXQs2g@mail.gmail.com> (raw)
In-Reply-To: <20170125103030.GA1879@le-cube>
On Wed, Jan 25, 2017 at 2:30 AM, <crazyiop@gmail.com> wrote:
> Hi Anish,
>
> thanks for giving me some thougt.
> Here is what I found:
>
> On Sun, Jan 22, 2017 at 03:47:54PM -0800, anish singh wrote:
> > On Sun, Jan 22, 2017 at 1:38 PM, jo <crazyiop@gmail.com> wrote:
> >
> > > root at beaglebone:~# aplay -v Pom\ Pom.wav
> > > Playing WAVE 'Pom Pom.wav' : Signed 32 bit Little Endian, Rate 44100
> Hz,
> > > Stereo
> > > ALSA <-> PulseAudio PCM I/O Plugin
> > > Its setup is:
> > > stream : PLAYBACK
> > > access : RW_INTERLEAVED
> > > format : S32_LE
> > > subformat : STD
> > > channels : 2
> > > rate : 44100
> > > exact rate : 44100 (44100/1)
> > > msbits : 32
> > > buffer_size : 22050
> > > period_size : 5512
> > > period_time : 125000
> > > tstamp_mode : NONE
> > > period_step : 1
> > > avail_min : 5512
> > > period_event : 0
> > > start_threshold : 22050
> > > stop_threshold : 22050
> > > silence_threshold: 0
> > > silence_size : 0
> > > boundary : 1445068800
> > >
> > > #nothing play and the above stay displayed -as is- until I ctrl-c
> > >
> >
> > Possible that you have not turned on the mixer controls i.e.
> > enabling the volume?
> >
> > Check sw_ptr and hw_ptr and see if those are increasing or not?
> >
> > Probe the I2S lines and see if there is any data?
> >
> >
>
> So first, the above command in fact do finish after the length of the file
> (I
> thought I took a much smaller test sample..)
>
> The mixer control were all on and volume to the max.
> I don't have a scope, but you made me realize that I'm clueless in front
> of my problem without one... So I finnaly found an access to one. The
> measure
> show that the input clock of the pll (mclk) is just non-existant.
> I now know what to look for.
>
> I tried to find a reference to those sw_ptr and hw_ptr somewhere,
> without success, what are they and where can I find/probe them ?
>
# cat /proc/asound/card0/pcm0p/sub0/status
state: RUNNING
owner_pid : 1440
trigger_time: 16024.849105290
tstamp : 16175.605386326
delay : 768
avail : 1280
avail_max : 2048
-----
hw_ptr : 7236608
appl_ptr : 7237376
>
> Thanks!!
> Jonathan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170125/8a6ea81b/attachment.html
prev parent reply other threads:[~2017-01-25 23:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 21:38 custom audio card on beaglebone jo
2017-01-22 23:47 ` anish singh
2017-01-25 10:30 ` crazyiop at gmail.com
2017-01-25 23:35 ` anish singh [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=CAK7N6vqw5b095Rat-dBD-O5O-uMHwahnb8YnV2NSp2XxfXQs2g@mail.gmail.com \
--to=anish198519851985@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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).