Re: Re: Atheros pcm driver

From: Mori Hiroki <yamori813_at_yahoo.co.jp>
Date: Sat, 21 Jun 2025 20:42:53 UTC
Hi

> ----- Original Message -----
> 
> From: "Adrian Chadd" <adrian@freebsd.org>
> To: "や もり" <yamori813@yahoo.co.jp>
> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> Date: 2025/06/22 日 04:12
> Subject: Re: Atheros pcm driver
> 
> 
> 
> 
> On Wed, 23 Apr 2025 at 02:13, Mori Hiroki <yamori813@yahoo.co.jp> wrote:
> Hi
>  
>  I small talk about atheros pcm diver at small ABC. 
>  
>  This repository have it.
>  
>  https://github.com/ZRouter/freebsd-src/tree/zrouter_yamori813
>  
>  I listen this stream every day by mpg123.
>  
>  http://kathy.torontocast.com:3330/stream
>  .
>  I like takeshi shibuya. He is jazz pianist.
> 
> Heh, nice! I worked on the PCM driver at my previous job too, it worked pretty well!
> 
> 
> 
> -adrian
>  
> 

This is hints. I use gpio pin mux.

# pcm
hint.pcm.0.at="apb0"
hint.pcm.0.maddr=0x180b0000
hint.pcm.0.msize=0x1000
hint.pcm.0.irq=7

# I2S
hint.gpio.0.func.1.gpiofunc=15
hint.gpio.0.func.1.gpiomode=1
hint.gpio.0.func.2.gpiofunc=14
hint.gpio.0.func.2.gpiomode=1
hint.gpio.0.func.3.gpiofunc=13
hint.gpio.0.func.3.gpiomode=1
hint.gpio.0.func.4.gpiofunc=12
hint.gpio.0.func.4.gpiomode=1

Atheros I2S is very good. Becase of Ralink and almost other SOC's I2S 
don't have master clock.

I checked atheros master clock by frequency counter. It's very stable.
Almost high end audio.

Hiroki Mori