Linux bluetooth development
 help / color / mirror / Atom feed
From: Tedd Ho-Jeong An <tedd.an@intel.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH v3] Bluetooth: btusb: Add routine for applying Intel DDC parameters
Date: Tue, 26 May 2015 09:43:22 -0700	[thread overview]
Message-ID: <20150526094322.763b217f@tedd-fedora-vm> (raw)
In-Reply-To: <37510C75-1090-4601-AC8F-AC46800753C1@holtmann.org>

Hi Marcel,

On Mon, 25 May 2015 21:31:47 +0200
Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Tedd,
> 
> > This patch adds the routine to apply the DDC parameter from device
> > specific ddc file.
> > 
> > Once the device is rest to operational mode, optionally, it can
> > download the device specific configration (DDC) parameters before
> > the BlueZ starts the stack initialization.
> > 
> > It opens the DDC file based on HW_VARIANT and send ID/Value with
> > HCI_Intel_Write_DDC command.
> > 
> > Format of DDC file
> > DDC file consists of one or more number of DDC structure that has a
> > 'Length' field of one octet, DDC 'ID' field of two octets followed by
> > the array of DDC 'Value' that gives the value of parameters itself.
> > 'Length' contains the length of DDC 'ID' and DDC 'Value'.
> > 
> > +------------+----------+
> > | Size(byte) |    Name  |
> > +------------+----------+
> > |      1     | Length   |
> > +------------+----------+
> > |      2     | ID       |
> > +------------+----------+
> > | Length - 2 | Value    |
> > +------------+----------+
> 
> I wonder if we should add some sort of header to this file structure.
> 

Could you explain more about the "header"? DDC header is Length and ID.
The DDC file can have more than one DDC. Do you mean the header for all DDC
contents? Then it will be same as HCI plen.

Also, how do you think about saving this file in ASCII format instead of binary?
then I can add some comments that start with # and ignore the line like bash script.


Regards,
Tedd

  reply	other threads:[~2015-05-26 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 21:04 [PATCH v3] Bluetooth: btusb: Add routine for applying Intel DDC parameters Tedd Ho-Jeong An
2015-05-25 19:31 ` Marcel Holtmann
2015-05-26 16:43   ` Tedd Ho-Jeong An [this message]
2015-06-06  5:51     ` Marcel Holtmann

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=20150526094322.763b217f@tedd-fedora-vm \
    --to=tedd.an@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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