From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moise Gergaud Subject: Re: [PATCH 2/2] ASoC: sti: correction for HBRA support Date: Tue, 1 Dec 2015 10:52:14 +0100 Message-ID: <565D6DCE.50906@st.com> References: <1448370996-30224-1-git-send-email-moise.gergaud@st.com> <1448370996-30224-3-git-send-email-moise.gergaud@st.com> <20151130163057.GA1929@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by alsa0.perex.cz (Postfix) with ESMTP id B1C93265A78 for ; Tue, 1 Dec 2015 10:52:22 +0100 (CET) In-Reply-To: <20151130163057.GA1929@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: tiwai@suse.de, alsa-devel@alsa-project.org, arnaud.pouliquen@st.com, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org On 11/30/2015 05:30 PM, Mark Brown wrote: > On Tue, Nov 24, 2015 at 02:16:36PM +0100, Moise Gergaud wrote: >> Detect HBRA based on rate and channels used in the pcm session >> In case of HBRA: >> - CH_STS repeat is disabled >> - channel status sampling freq is not set if already set (because it can >> be a multiple of the runtime rate) > > You might want to expand HBRA... you mean in term of frequency? > >> switch (runtime->rate) { >> case 22050: >> - player->stream_settings.iec958.status[3] = >> - IEC958_AES3_CON_FS_22050; >> + *aes3 |= IEC958_AES3_CON_FS_22050; >> break; > > This feels like someting we could have as a generic function for other > drivers to use - can you add a core function and then call it from your > driver please? > yes, I will add something like snd_pcm_update_iec958_consumer to update fs and ws.